RE: Creating DLLs in BlackBox

From: Campbell, Robert D (UK) <"Campbell,>
Date: Tue, 10 Feb 2004 10:26:21 +0000

----boundary-LibPST-iamunique-1416850532_-_-
Content-type: text/plain



>> Has anyone got an example of using a
>> BlackBox DLL from another language?
>>
>> I've created the Mydll example in the DevLinker
>> Docu (contains an Lcm & Gcd routine), but don't
>> know how to use it. The .dll is 4096 bytes,
>> and when I look at it in Quick View it has no obvious
>> labels or interfaces.
>>
>> Ideally an example would be in MS basic, but any other
>> language might give me the clues I need.
>>
>> Thanks
>>
>> Robert.

Thanks to those who have replied, but I am still stuck
and confused.

Doug has an example including both Component Pascal & C.
I don't pretend to understand the C. The CP is also a mystery,
he has empty procedures without the EMPTY (or ABSTRACT) keywords.
I think it is an example of BlackBox reading a dll written elsewhere,
which is the opposite of what I want to do. But the C also looks empty!

Fyodor has sent me 9 pages of C. Thanks for your effort, but I am no wiser.

We have written an integer add dll in Delphi. The code is short and simple
(certainly not 9 pages of sandscript or whatever). We can use it in BlackBox
or Visual basic; in each case the code is no more that 3 or 4 lines. The dll
is 85 kbytes. The Windows NT utility Quick View shows the entry point in an
'Export Table'

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?

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

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIFxwYXINClxwYXINCj4+IEhhcyBhbnlvbmUgZ290
IGFuIGV4YW1wbGUgb2YgdXNpbmcgYVxwYXINCj4+IEJsYWNrQm94IERMTCBmcm9tIGFub3RoZXIg
bGFuZ3VhZ2U/XHBhcg0KPj4gXHBhcg0KPj4gSSd2ZSBjcmVhdGVkIHRoZSBNeWRsbCBleGFtcGxl
IGluIHRoZSBEZXZMaW5rZXJccGFyDQo+PiBEb2N1IChjb250YWlucyBhbiBMY20gJiBHY2Qgcm91
dGluZSksIGJ1dCBkb24ndFxwYXINCj4+IGtub3cgaG93IHRvIHVzZSBpdC4gVGhlIC5kbGwgaXMg
NDA5NiBieXRlcyxccGFyDQo+PiBhbmQgd2hlbiBJIGxvb2sgYXQgaXQgaW4gUXVpY2sgVmlldyBp
dCBoYXMgbm8gb2J2aW91c1xwYXINCj4+IGxhYmVscyBvciBpbnRlcmZhY2VzLlxwYXINCj4+IFxw
YXINCj4+IElkZWFsbHkgYW4gZXhhbXBsZSB3b3VsZCBiZSBpbiBNUyBiYXNp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9zdGluZyBwb2xpY3k6XHBhcg0KXHBh
cg0KYSkgVG8gcG9zdCB5b3Ugc2hvdWxkIHVzZSB0aGUgc2FtZSBhZGRyZXNzIGJ5IHdoaWNoIHlv
dSBhcmUgc3Vic2NyaWJlZCB0byB0aGUgbWFpbGluZyBsaXN0LiBUaGF0IHdheSwgdGhlIGxpc3Qg
c2VydmVyIHdpbGwgcmVjb2duaXplIHlvdSBhcyBzdWJzY3JpYmVyIGFuZCBmb3J3YXJkIHlvdXIg
cG9zdGluZyBpbW1lZGlhdGVseSwgd2l0aG91dCBjcmVhdGluZyBhbnkgb3ZlcmhlYWQuXHBhcg0K
XHBhcg0KYikgSWYsIGZvciBzb21lIHJlYXNvbiwgeW91IGNhbm5vdCBwb3N0IGZyb20gdGhlIGFk
ZHJlc3MsIGJ5IHdoaWNoIHlvdSBhcmUgc3Vic2NyaWJlZCwgeW91ciBtZXNzYWdlIHdpbGwgYmUg
bW9kZXJhdGVkIHRvIGF2b2lkIHNwYW0uIFBsZWFzZSB1bmRlcnN0YW5kIHRoYXQgbW9kZXJhdGlv
biB3aWxsIG9mdGVuIGNhdXNlIHNvbWUgZGVsYXksIGluIHBhcnRpY3VsYXIgb3ZlciB3ZWVrZW5k
cyBvciBob2x5ZGF5cy5ccGFyDQpccGFyDQp9


----boundary-LibPST-iamunique-1416850532_-_---
Received on Tue Feb 10 2004 - 11:26:21 UTC

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