🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #149452

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

#149452
From: Jernej
Date: Sun, 06 Jun 2004 12:03
28 lines
2151 bytes
on Sat, 5 Jun 2004 13:11:29 -0500, Jeff wrote:

> I'm going to keep playing with the parameter types and DLL options, but i'd
> appreciate any other ideas as well.

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';

-- 
begin  .sig
< Jernej Simon+AQ0-i+AQ0- ><+Jco->< http://www2.arnes.si/~sopjsimo/ >
< jernej simoncic at isg si ><http://deepthought.ena.si/>
end
Technical Details
Message-ID: <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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <hlofdrweet5e$.12pmj6hfuthne.dlg@40tude.net> <6d71vxvej5nu$.dlg@alain-guerin.com> <66u2kt94sjad$.qwltu5ylzvn$.dlg@40tude.net>

Show Full Headers
Complete Article Headers
Message-ID: <1nxjxsv6i8fx1$.dlg@deepthought.ena.si>
Subject: Re: [Dialog] Scripting - Calling external DLL causes Could Not Call Proc
Date: Sun, 6 Jun 2004 14:03:55 +0200
From: Jernej Simon+AQ0-i+AQ0- <jernej@deepthought.ena.invalid>
References: <hlofdrweet5e$.12pmj6hfuthne.dlg@40tude.net> <6d71vxvej5nu$.dlg@alain-guerin.com> <66u2kt94sjad$.qwltu5ylzvn$.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!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Organization: e-mailaholics international
Lines: 28
Mime-Version: 1.0
Content-Type: text/plain; charset="utf-7"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de oP9yv55w7XOs6XdVwiiTnwzliYjNfmksDnoo8L8ju6vcodzfV3
User-Agent: 40tude_Dialog/2.0.12.1 (332e6576.452.478)
X-Face: ({psVvcpp>XZONa#L#5M3]]Yf-Q01XtQPi@z8PAz,4L{=1^2NE[D.m@[5^_h697j7}~F;
 $| G$U/6Jkm(&MWj-OSHX; :R-5JHY8(!H3va:?&_dI/,)a4(a=B0;
 C&PQRVLAK:cIHU:1DGYpkcC["%%) 3@[GLdB)#X,Mc8
X-ultimate-answer: 42