----boundary-LibPST-iamunique-21713806_-_-
Content-type: text/plain
> I have written a BlackBox module to use the BlackBox example dll
> Mydll. This
> takes about 2 lines and works.
>
> BUT I CAN'T use it from Visual Basic, which says 'Can't find
> entry point Gcd'.
> This is consistent with the Quick View utility, which does not
> have an Export
> table for it.
>
> What am I missing?. Is there a way/need to add entry points to Mydll?
>
The Delphi solution is equally short. You just need to declare the
functions:
function Gcd(a, b: integer): integer; external 'Mydll.dll';
function Lcm(a, b: integer): integer; external 'Mydll.dll';
and then call them as though they had been written in Delphi.
However, in my test program the call to Gcd is fine, but the call to Lcm
returns a large negative number and then crashes - I haven't yet been able
to work out why.
Maybe the name of the entry point is a case-sensitivity issue?
In Delphi, if you don't know the names of the entry points you can refer to
them by number like so:
function XXX(a, b: integer): integer; external 'Mydll.dll' index 1;
function YYY(a, b: integer): integer; external 'Mydll.dll' index 2;
Chris Burrows
CFB Software
http://www.cfbsoftware.com
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
blackbox-request{([at]})nowhere.xy
To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.
Send any problem reports or questions related to this email list to the list owner at
owner-blackbox{([at]})nowhere.xy
Current posting policy:
a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.
b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.
----boundary-LibPST-iamunique-21713806_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGF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