Changing 16 bit API calls to 32 bit API calls.
I have an application which i am migrating from 16 Bit PB4 to 32 bit PB5. I have
the following 16 bit API calls in the application. Can someone please let me
what the corresponding 32 bit API calls would be and what libraries i can find
them in? Also, where can i find information on API calls?
function int FindWindow(string lpClassName, string lpWindowName)LIBRARY
function int Winhelp(int iWindowHandle, string lpszhelpfile, uint fuCommand,
long dwData) Library "user.exe"
function ULONG MAPISendDocuments(uLong ulUIParm, string lpszDelimChar, string
...Calling 16 bit dll from 32 bit Powerbuilder
I want to know if it is possible to call a function out of a 16 bit dll from
within a Power Builder App that was compiled in 32 bit. If so, How ?
No. This is not possible direclty. The most simple way is to get a 32bit
version of that DLL, but you probably don't have that right? So, your in
deep shit. You could create a thunking layer, which is a 32bit layer,
converting 32bit calls to 16bit but this is not an easy task to do. Other
option is creating a 16bit VB oleserver which calls your DLL. This ole
server can be used within your 32bit PB environment. But first, try to g...16 bit and 32 bit api calls from PB app.
i have an application that i want to run on both windows 3.1 and windows 95
pc's. however, i am making some api calls in this application. i would like
to make 16 bit api calls if the pc is running 3.1 and 32 bit calls if it is
95. is there any way i can find out what operating system the pc has, as
soon as my app is started up?
any help will be greatly appreciated.
Look at the environment object. This is what you need.
Elevated Technologies, Inc. - New York
Rohit Sankholkar wrote in message ...PB 16 bit and PB 32 bit and API calls
I am trying to do a API call for a fingerprint reader. I have done all
of the global declarations and I am sure all variables are mapped correctly.
I don't get any errors from the function I am calling into, however I do get
a PB error on the Global function I declared. The error is telling me that
there is an invalid stack pointer. This function returns the number of the
device which was created which is essentially a pointer. My question is
this. Since I am running PB 7 which is 32 bit is it possible that if these
..DLL's I am calling into is 16 bit will I get ...Converting 16-bit API calls to 32-bit using pbm_commnotify
I'm converting an old PB5.0 app to PB6.5 and having problems with API calls
to do a credit card validation via modem. The original code appears to have
been copy/pasted with only minor modifications from Sept/1995 PowerBuilder
Developer's Journal ("Serial Communications Manager"
http://www.sys-con.com/pbdj/source/995/robinson.htm). Now I need to make it
work with 32-bit APIs. I've never worked with serial communication before,
so I feel a bit like a fish out of water here. Any help would be greatly
The main problem I'm experiencing is with the p...16-bit PB calling a 16-bit DLL?
I am trying to build a "bridge" between a PB program (originally a
32-bit .exe) and a 32-bit DLL (I can't change this to 16-bit); both work
flawlessly when run as 32-bit under Windows 95.
Now... when I try to convert the PB app to 16-bit, and call my bridge
pgm (a 16-bit .dll compiled with the Watcom C/C++ compiler v 10.?), I
get a message "error calling external function..." when I try to access
the function (the .dll loads fine). I have checked the spelling; I
think the prototypes are correct, I have looked for samples (to no
Does anyone kno...32 bit calling 16 bit
We're trying to upgrade an app from PB5.02 - 16 bit to 6.5. The trouble is
that we call a lot of third-party 16 bit DLL's. Both our interface and the
third party part does database calls (MS SQL Server 6.5 SP5). Can anyone
shed some light on how we'd do this? (One friend mentioned we needed a
"thunk" layer. Another didn't think you could "thunk" PB. I don't know
enough about "thunk" to know what to think...).
>We're trying to upgrade an app from PB5.02 - 16 bit to 6.5. The trouble is
&...Help! Calling 16 bit LZCopy from LZEXPAND.DLL to copy files
I am having trouble figuring out how to call the LZCopy function in the 16
bit DLL LZEXPAND.DLL that comes with Windows NT (C:\WINNT\SYSTEM\) from PB
5.002. I cannot use 32bit calls since this is a 16 bit application I am
working on. Here is what I am doing:
Global External Function:
FUNCTION int LZCopy(ref string p_from, ref string p_to) LIBRARY
string ls_from, ls_to
ls_from = "c:\temp\test.txt"
ls_to = "c:\temp\test2.txt"
rc = LZCopy(ls_from, ls_to)
MessageBox('Return Code', String(rc))
...32 bit PowerBuilder and 16 bit executables
Well, I am glad to know that I'm not the only one having 32bit vs 16bit
problems. We have a rather small app (6 pbls / an average of 4 objects per
pbl). We are compiling this app as a 16 executable using PB5 32bit. The
compile is good (I guess) but when I start the app I get an external
reference error when the app tries to use a non visual residing in one of
the DLLs. Now I have done all of the things that any good PB developer would
do (specify all PBLs as PBDs, make sure all the DLLs are in the same
directory as the EXE, make sure the EXE has a different name as the DL...16 bits ccmail and 32 bits powerbuilder application
Does any one know how to create and send email to 16bits ccmail 2.2
from 32 bits powerbuilder application ?
Thanks in advance
...16 bits CCmail and 32 bits Powerbuilder app
Does any one know how to create and send email to 16bits ccmail 2.2 from
32 bits powerbuilder application ?
Thanks in advance
Check out my site : http://members.xoom.com/sanskrut
It may help you!!
All the best in advance!!
Zakia Pirzada wrote:
> Does any one know how to create and send email to 16bits ccmail 2.2 from
> 32 bits powerbuilder application ?
> Thanks in advance
...16-bit vs 32-bit PBD files
I was under the impression that PBD files were the same whether you
compiled under 16-bit PB or under 32-bit PB.
I just compiled a small application. I made a copy of the PBL files
onto two machines. On one machine, I compiled a 16-bit version (under
PB 5.0.02 16-bit) of the application into an EXE and 2 PBD files. On
the other machine, I did the same thing but made a 32-bit version (under
PB 5.0.02 32-bit) of the application. Both machines were running
The 16-bit PBD files and the 32-bit PBD files are exactly the same size,
but when I compare them using the MS-DOS...pascal(16-bit) or standard(32-bit) calling sequence
Is there any info on the Pascal(16-bit) or standard(32-bit) calling
sequence, apparently C++ DLL's must be in this format in order,
for PB to call them as local external calls, any examples...?
My MS-VC++ source:
// TestDLL.cpp : Defines the entry point for the DLL application.
BOOL APIENTRY DllMain( HANDLE hModule,
I'm sure there is info available on this s...Better to use API fn call/Powerbuilder fn call ...
I have a rather elementary question. Is there any difference in application
performance if I use an API call rather than a PowerBuilder function call ?
eg Suppose there is PowerBuilder function 'X' which will bring a window to the
An API function 'Y' does the same.
Assuming that I need not prepare/initialize any structure etc to be passed to
the API function 'Y', does it make any difference to the app performance if I
make an API call instead of the PowerBuilder function call 'X' ?
The difference would be virtually i...