Re: [BLACKBOX] Packing a dll file into an exe file

From: [at]} <Alexander>
Date: Tue, 22 Apr 2008 11:10:33 +0700

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

Hello!

DGD> The problem is in the packing of a dll (in this case FreeImage.dll).
DGD> If I put the dll into C:\WINDOWS\system the loader finds it.
DGD> But if I leave the dll in the BlackBox root directory it doesn't
DGD> (when the exe is running from the desktop).
DGD> What is the syntax for packing a dll such that the file is really
DGD> in the .exe and is self contained so that on any system it will
DGD> execute directly whether or not FreeImage.dll is on that
DGD> system (but in the .exe file)?

  Sorry, Doug, but if you use a DLL, you use a DLL, not just extract a
  piece of code from it and paste into your executable. You should
  distribute the DLL with your application.

  You can put DLL anywhere in the PATH (e.g. Windows,
  Windows\System32, etc.) or keep it with your .exe.

---=====---
 Alexander


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-727824031_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhlbGxvIVxwYXINClxwYXINCkRHRD4gVGhlIHBy
b2JsZW0gaXMgaW4gdGhlIHBhY2tpbmcgb2YgYSBkbGwgKGluIHRoaXMgY2FzZSBGcmVlSW1hZ2Uu
ZGxsKS5ccGFyDQpER0Q+IElmIEkg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0tLS1ccGFyDQogQWxleGFuZGVyXHBhcg0KXHBhcg0KXHBhcg0KLS0tLVxw
YXINClRvIHVuc3Vic2NyaWJlLCBzZW5kIGEgbWVzc2FnZSB3aXRoIGJvZHkgIlNJR05PRkYgQkxB
Q0tCT1giIHRvIExJU1RTRVJWQExJU1RTLk9CRVJPTi5DSH19AAAAAAA=
----boundary-LibPST-iamunique-727824031_-_---
Received on Tue Apr 22 2008 - 06:10:33 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:57 UTC