ahmos_m
asked on
External function dosn't work with (user.exe) file
when i use External function using any external DLL files it works normally in PB8 but when i use an External EXE file it dosn't work
i need to use (user.exe) file to use All of OpenComm , CloseComm, WriteComm and FlushComm as External Functions to use Modem Dialing in PowerBuilder 8 or any solution to using Modem in PB8
Notes: these functions work normally in any Previous version Of PowerBuilder
i need to use (user.exe) file to use All of OpenComm , CloseComm, WriteComm and FlushComm as External Functions to use Modem Dialing in PowerBuilder 8 or any solution to using Modem in PB8
Notes: these functions work normally in any Previous version Of PowerBuilder
oh....ya i understood your problem u r calling functions from exe not from dll...sorry i was confused...:)
well, is there any error message while declaration or calling the function from exe in pb8 ? is your exe in the path where the application can find ?
well, is there any error message while declaration or calling the function from exe in pb8 ? is your exe in the path where the application can find ?
ASKER
Hi Dears
thanks for your reply
but from few minutes i discovered from web that ( openComm ) and all functions in User.exe file are 16 bits and it dosn't work in PowerBuilder 8
SO i should to use WriteFile (this is external function in Kernel32.dll ) to write in modem
so what is the declartion ? and what i write in application to dialup
thanks for your reply
but from few minutes i discovered from web that ( openComm ) and all functions in User.exe file are 16 bits and it dosn't work in PowerBuilder 8
SO i should to use WriteFile (this is external function in Kernel32.dll ) to write in modem
so what is the declartion ? and what i write in application to dialup
ASKER
the external function decleration is
Function int OpenComm (string lpComName, uint wInQueue, uint wOutQueue) Library "user.exe"
Function int CloseComm (int nCid) Library "user.exe"
Function int WriteComm (int nCid, string lpBuf, int nsize) Library "user.exe"
Function int FlushComm (int nCid, int nQueue) Library "user.exe"
it is only for 16 bit as written in http://www.geocities.com/SiliconValley/2926/tpsrc/msdn_opencomm.html
this page said to use Writefile() function which in Kernel32.dll
so i want to decleration of External function and code written to dialling
Function int OpenComm (string lpComName, uint wInQueue, uint wOutQueue) Library "user.exe"
Function int CloseComm (int nCid) Library "user.exe"
Function int WriteComm (int nCid, string lpBuf, int nsize) Library "user.exe"
Function int FlushComm (int nCid, int nQueue) Library "user.exe"
it is only for 16 bit as written in http://www.geocities.com/SiliconValley/2926/tpsrc/msdn_opencomm.html
this page said to use Writefile() function which in Kernel32.dll
so i want to decleration of External function and code written to dialling
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm thankful for your reply and helping me
i'm thankful also
if you tell me how to use TAPI ActiveX to make dialling by PowerBuilder8
i'm thankful also
if you tell me how to use TAPI ActiveX to make dialling by PowerBuilder8
hi,
i worked with two different activeX one is from allen-martin and another is from excele-tele. but i found excele-tele more flexible and with lots of functionality. here is the link for both of them
Allen-martin
http://allen-martin-inc.com/download.htm
Excele-Tele
http://www.exceletel.com/products/teletools.htm
in the excele-tele eveluation download u will get the example of PB with source code....
have a nice day.
-sandeep
i worked with two different activeX one is from allen-martin and another is from excele-tele. but i found excele-tele more flexible and with lots of functionality. here is the link for both of them
Allen-martin
http://allen-martin-inc.com/download.htm
Excele-Tele
http://www.exceletel.com/products/teletools.htm
in the excele-tele eveluation download u will get the example of PB with source code....
have a nice day.
-sandeep
ASKER
many thanks for you but when i download PB source
it dosn't work
i read in source code it work with etLine.ocx
but i couldn't download
can you help me
it dosn't work
i read in source code it work with etLine.ocx
but i couldn't download
can you help me
ASKER
so from where i download it
Following is the link for the download
http://www.exceletel.com/products/TeleTools/PremiumTrialRequest.htm
in this request form there is one option for development environment : select powerbuilder from that. then they will send u and password to your email account for the installation of the product....in this installation u will get four ocx...etLine, etPhone, etPlay and etRecord....all r for different usage...after installation in the installation directory u will found example pbl(s) for the powerbuilder....i don't remember the exact path and location of that directory as i worked with it 2 years back....
let me know if any problem is there
http://www.exceletel.com/products/TeleTools/PremiumTrialRequest.htm
in this request form there is one option for development environment : select powerbuilder from that. then they will send u and password to your email account for the installation of the product....in this installation u will get four ocx...etLine, etPhone, etPlay and etRecord....all r for different usage...after installation in the installation directory u will found example pbl(s) for the powerbuilder....i don't remember the exact path and location of that directory as i worked with it 2 years back....
let me know if any problem is there
ASKER
if i want to use TAPI32.dll
which function included in this file can i use it ?
and what it is parameter ?
which function included in this file can i use it ?
and what it is parameter ?
i never used these dll and i also read that it's very difficult and tedious to do the programming with that compared to ocx
but u can get information of all tapi functions from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tapi/tapi2/tapi_functions.asp
but u can get information of all tapi functions from
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tapi/tapi2/tapi_functions.asp
what is user.exe and external exe ?
in pb8 there is no any inbuilt facility to user modem.
i think all the functions u mentioned are in your dll. and u r saying that u r able to use dll..then what's ur problem ? can u post your function declaration ?
regds,
-sandeep