🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #149590

Re: [Dialog] Scripting - Calling external DLL causes Could Not Call Proc

#149590
From: Jeff
Date: Wed, 09 Jun 2004 00:39
28 lines
2006 bytes
> This example comes with Inno Setup (which uses the same script engine as
> Dialog), maybe you'll be able to help yourself with this:
> 
> MyDLL.c:
> 
> #include <windows.h>
> void __stdcall MyDllFunc(HWND hWnd, char *lpText, char *lpCaption, UINT
> uType)
> {
>   MessageBox(hWnd, lpText, lpCaption, uType);
> }
> 
> 
> Declaration in script:
> 
> procedure MyDllFunc(hWnd: Integer; lpText, lpCaption: String; uType: Cardinal);
> external 'MyDllFunc@MyDll.dll stdcall';

Thanks for the reply.  I tried several more configurations, including using
the above example.  I believe it has to do with the way the DLL is being
compilied.

Instead of continuing down this path, I converted the DLL to Delphi.  The
Delphi version of the DLL does not have the same problem.  

Thanks for all the suggestions.

Jeff
Technical Details
Message-ID: <xb6lwwkw03rp$.1vsoa9jxltnrf$.dlg@40tude.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews2.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!news.supernews.com!not-for-mail
References: <hlofdrweet5e$.12pmj6hfuthne.dlg@40tude.net> <6d71vxvej5nu$.dlg@alain-guerin.com> <66u2kt94sjad$.qwltu5ylzvn$.dlg@40tude.net> <1nxjxsv6i8fx1$.dlg@deepthought.ena.si>

Show Full Headers
Complete Article Headers
Message-ID: <xb6lwwkw03rp$.1vsoa9jxltnrf$.dlg@40tude.net>
Subject: Re: [Dialog] Scripting - Calling external DLL causes Could Not Call Proc
Date: Tue, 8 Jun 2004 19:39:33 -0500
From: Jeff <n@n.com>
References: <hlofdrweet5e$.12pmj6hfuthne.dlg@40tude.net> <6d71vxvej5nu$.dlg@alain-guerin.com> <66u2kt94sjad$.qwltu5ylzvn$.dlg@40tude.net> <1nxjxsv6i8fx1$.dlg@deepthought.ena.si>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!postnews2.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-post-02!sn-post-01!supernews.com!news.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: None
User-Agent: 40tude_Dialog/2.0.12.1
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Reply-To: n@n.com
X-Complaints-To: abuse@supernews.com
Lines: 28