Solved

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

Posted on 2004-03-27
12
1,183 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
  • 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
 

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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

707 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now