RE: Creating DLLs in BlackBox

From: Campbell, Robert D (UK) <"Campbell,>
Date: Tue, 10 Feb 2004 11:09:04 +0000

----boundary-LibPST-iamunique-806934110_-_-
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
>> >
>> > 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.

Chris

Firstly the Lcm works for me (in BB, with the test numbers 12 & 15).

We have tried to use Mydll in Delphi, and get the same error message
as Visual Basic; 'Entry point Gcd not found', or words to that effect.

Can you perhaps send me your copy of Mydll.dll to see if that is the difference?

Thanks

Robert



********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
--------------------------------------------

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-806934110_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7X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VzZSB0aGUgc2FtZSBhZGRy
ZXNzIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCB0byB0aGUgbWFpbGluZyBsaXN0LiBUaGF0
IHdheSwgdGhlIGxpc3Qgc2VydmVyIHdpbGwgcmVjb2duaXplIHlvdSBhcyBzdWJzY3JpYmVyIGFu
ZCBmb3J3YXJkIHlvdXIgcG9zdGluZyBpbW1lZGlhdGVseSwgd2l0aG91dCBjcmVhdGluZyBhbnkg
b3ZlcmhlYWQuXHBhcg0KXHBhcg0KYikgSWYsIGZvciBzb21lIHJlYXNvbiwgeW91IGNhbm5vdCBw
b3N0IGZyb20gdGhlIGFkZHJlc3MsIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCwgeW91ciBt
ZXNzYWdlIHdpbGwgYmUgbW9kZXJhdGVkIHRvIGF2b2lkIHNwYW0uIFBsZWFzZSB1bmRlcnN0YW5k
IHRoYXQgbW9kZXJhdGlvbiB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXksIGluIHBhcnRpY3Vs
YXIgb3ZlciB3ZWVrZW5kcyBvciBob2x5ZGF5c319ADA6MDFDM0VGQzZd


----boundary-LibPST-iamunique-806934110_-_---
Received on Tue Feb 10 2004 - 12:09:04 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:55 UTC