Solved

External function dosn't work with (user.exe) file

Posted on 2004-03-27
12
1,219 Views
Last Modified: 2013-12-26
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
0
Comment
Question by:ahmos_m
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 6
12 Comments
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 10694098
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
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 10694157
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
 

Author Comment

by:ahmos_m
ID: 10694541
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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:ahmos_m
ID: 10694626
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
 
LVL 14

Accepted Solution

by:
sandeep_patel earned 50 total points
ID: 10694770
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
 

Author Comment

by:ahmos_m
ID: 10694929
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
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 10694991
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
 

Author Comment

by:ahmos_m
ID: 10698373
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
 

Author Comment

by:ahmos_m
ID: 10698379
so from where i download it
0
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 10701313
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
 

Author Comment

by:ahmos_m
ID: 10713802
if i want to use TAPI32.dll
which function included in this file can i use it ?
and what it is parameter ?
0
 
LVL 14

Expert Comment

by:sandeep_patel
ID: 10714471
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In our object-oriented world the class is a minimal unit, a brick for constructing our applications. It is an abstraction and we know well how to use it. In well-designed software we are not usually interested in knowing how objects look in memory. …
Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create new code templates in NetBeans IDE 8.0 for Windows.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question