Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DLL Call

0 views
Skip to first unread message

Gerald Von Korff

unread,
Mar 29, 1998, 3:00:00 AM3/29/98
to

I have a delphi function with the following declaration located in a DLL
file
function ShowDlg: pchar; stdcall; export; It is located in
WPDLG.DLL.
Windows 95 32 bit delphi.
I can successfully call the function from a delphi program with the
following call
function ShowDlg: pchar; stdcall; external 'WPDLG';

I can load the DLL with a wp 8 macro, putting the handle into loadresult
(integer).
When I call the function, a dialog displays exactly as desired. if it
returns a pchar constant, ie the default return result, then it still
works fine. But if it returns any other pchar result, I get locked up
with a windows GPF and error message. I am trying to use the following
dll call.
DllCall(loadresult; "ShowDlg";ret_val ;String!;{} )
Any pointers?
--
Attorney by Day
Mathematics, Mozart, Delphi
and Family.

Paul Russell

unread,
Apr 6, 1998, 3:00:00 AM4/6/98
to

How have you prototyped/called the function in the macro? Reply with
the dll prototype statement and your macro code to call the function.


Gerald Von Korff wrote:

--
Paul Russell
Engineer
Corel Solution Partners
--------------------------------------------------------
Corel, Inc.
Mailstop G-234
567 East Timpanogos Parkway
Orem, Utah 84097
USA

Home Page
http://www.corel.com/partners_developers/csp/index.htm
FTP Site
ftp://ftp.corel.com/pub/corelSolutionPartners
Information
mailto:part...@corel.com
Developer Support
mailto:dev...@corel.com
WordPerfect Developer Newsgroup
news://cnews.corel.com/corel.developers.wordperfect

Gerald Von Korff

unread,
Apr 8, 1998, 3:00:00 AM4/8/98
to

Thanks. I got it fixed.
0 new messages