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 ...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 ...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...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...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
&...32-bit API Calls
I am trying to access the comm port in order to read data from a special
input device. Does anyone have an example of how to do this.
...ShellExecute 32 bit API Call
I am trying to use ShellExecute API function with PB 5.0.2 32 bit and WIn
When the function is called, I get a message
"Error Calling External Function ShellExecute"
Can somebody tell me what I am doing wrong?
Local Function Declaration
FUNCTION ulong ShellExecute ( ulong hwnd, ref string lpOperation,
ref string lpFile, ref string lpParameters, ref string lpDirectory,
integer iShowCmd) LIBRARY "shell32.dll"
User Object Function Script
// This user object function receives the argument, as_docname which is the
full path and filename to b...Problems with 32 bit api call.
I am trying to run a dos command from my powerbuilder app, which zips a
db file and copies it to a network drive. i want my powerbuilder app to wait
till the dos command is done. the way i was doing this in windows 3.1 was to
open a response window and use the run command in the open event of the
response window to fire off a PIF file, which ran the dos batch file. I then
started a timer event. In the timer event, i used the Findwindow api
function to check whether the dos window was still open. if it wasn't, then
i closed the response window and continued. In windows 95 ho...Calling 16-bit functions (DLL) from 32-bit App?
I've migrated a 16-bit app to a 32-bit app recently. The one problem is
that we purchased a communications DLL from a third party who has since gone
out of business, so there's no chance at getting a 32-bit version. The DLL
is 16-bit, and PowerBuilder (32-bit) has a problem opening the library.
Is there anyway to call functions in a 16-bit DLL from a 32-bit application?
Unfortunately not. Unless the DLL is 'thunkable', then it can't be
accessed from PB. Who is/was the 3rd party vendor?
Anthony M. Perugini
CPDP,...Calling 16 bit DLL from 32 bit PB app
Is it possible to call a 16 bit C DLL from a 32 bit PB application? If so,
what is the correct calling convention in C.
I am using PB 6.5.1
On Tue, 18 Apr 2000 17:24:23 -0500, "Brian Wetzel"
I seem to recall there used to be a white paper on the Sybase Web site
describing how to access 16 bit ODBC from 32 bit PB. That makes me
thing that it is possible, but I don't remember the specifics. You
might want to check out the Sybase site and see if you can find
anything. I'll check...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...16-bit API calls for file information?
Does anyone know a way in which to get the date, version, etc.
information about file using 16-bit version of PB enterprise 5.0.3?
I've not be able to find a reference source for 16-bit APIs.
Thanks for any help,
AFAIK, there are none. You have to create a DLL in order to get this
information. Perfect job for a PB C++ userobject.
- Met vriendelijke groet,
Eric Aling [TeamPS], Cypres Informatisering bv, The Netherlands
Sean A. Campbell wrote in message <353EE593.65D964AC...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...How to call a 16-bit app from a 32-bit powerb app? (WinNT,Win2k,WinXP)
In our powerbuilderapplication we call a little third-party16-bit dos
application. The strange thing is that the third-party application runs if
we start it manually, but it won't run if we start it from our pbapp!! Then
we get the following fault...
16-bits ms_dos subsystem
%systemroot%\system32\config.nt. The systemfile is not suited for ms-dos or
ms-windows applications. Choose close or .....
The file is called from our powerbuilderapp with createprocess(.........)
Try RUN( ) instead.