Link to home
Start Free TrialLog in
Avatar of ahmos_m
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
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

hi,
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
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 ?
Avatar of ahmos_m
ahmos_m

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
Avatar of ahmos_m

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
ASKER CERTIFIED SOLUTION
Avatar of sandeep_patel
sandeep_patel
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ahmos_m

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
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
Avatar of ahmos_m

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
Avatar of ahmos_m

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
Avatar of ahmos_m

ASKER

if i want to use TAPI32.dll
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