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
ahmos_mAsked:
Who is Participating?
 
sandeep_patelConnect With a Mentor Commented:
hi,
i don't know for what u r using this functions. i assume that u r working on TAPI, so visit following link that might help u

http://support.microsoft.com/?kbid=148857

following is the link for the declaration of function in kernel32.dll

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/writefile.asp

following may also help

http://www.experts-exchange.com/Programming/Wireless_Programming/Q_20333413.html

i worked with activeX related to TAPI, if u want to know for that reply

-sandeep

0
 
sandeep_patelCommented:
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
0
 
sandeep_patelCommented:
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 ?
0
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
ahmos_mAuthor Commented:
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
0
 
ahmos_mAuthor Commented:
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
0
 
ahmos_mAuthor Commented:
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
0
 
sandeep_patelCommented:
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
0
 
ahmos_mAuthor Commented:
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
0
 
ahmos_mAuthor Commented:
so from where i download it
0
 
sandeep_patelCommented:
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
0
 
ahmos_mAuthor Commented:
if i want to use TAPI32.dll
which function included in this file can i use it ?
and what it is parameter ?
0
 
sandeep_patelCommented:
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
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.