[BLACKBOX] Config.ocf and .exe files

From: Douglas G. Danforth <"Douglas>
Date: Tue, 29 Apr 2008 21:49:19 -0700

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

Folks,

I just realized why my config files were not being loaded
when I packed them into an exe file whereas my Menus files
were working correctly.

The name of a Menus file does not matter as long as it is
copied to the correctly named destination file

MyProj/Rsrc/MyMenus.odc => MyProject/Rsrc/Menus.odc

Config files, however, are compiled files whose internal
name does matter. It must be

(A)
MODULE Config;
...
END Config.

It can not be

(B)
MODULE MyConfig;
...
END MyConfig.

If (B) is used and the command for packers is given

(C)
MyProj/Code/MyConfig.ocf => System/Code/Config.ocf

then the linking loader in the exe can not file
Config since all that is there in the symbol table is MyConfig.

One must use (A) and then cut (cut so it is not executed by
all future use of your BB system) the resultant file from
from where it is placed
   Code/Config.ocf
and put it back into (say) MyProj/Code/MyConfig.ocf
where now the file name does not matter.

When one now executes (C) the linking loader can indeed
find the correct symbol for Config.

Although, in retrospect, this is obvious I just wanted to
finish the discussion I had previously raised.

-Doug Danforth


----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-442232992_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEZvbGtzLFxwYXINClxwYXINC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YXQg
aXMgdGhlcmUgaW4gdGhlIHN5bWJvbCB0YWJsZSBpcyBNeUNvbmZpZy5ccGFyDQpccGFyDQpPbmUg
bXVzdCB1c2UgKEEpIGFuZCB0aGVuIGN1dCAoY3V0IHNvIGl0IGlzIG5vdCBleGVjdXRlZCBieVxw
YXINCmFsbCBmdXR1cmUgdXNlIG9mIHlvdXIgQkIgc3lzdGVtKSB0aGUgcmVzdWx0YW50IGZpbGUg
ZnJvbVxwYXINCmZyb20gd2hlcmUgaXQgaXMgcGxhY2VkXHBhcg0KICAgQ29kZS9Db25maWcub2Nm
XHBhcg0KYW5kIHB1dCBpdCBiYWNrIGludG8gKHNheSkgTXlQcm9qL0NvZGUvTXlDb25maWcub2Nm
XHBhcg0Kd2hlcmUgbm93IHRoZSBmaWxlIG5hbWUgZG9lcyBub3QgbWF0dGVyLlxwYXINClxwYXIN
CldoZW4gb25lIG5vdyBleGVjdXRlcyAoQykgdGhlIGxpbmtpbmcgbG9hZGVyIGNhbiBpbmRlZWRc
cGFyDQpmaW5kIHRoZSBjb3JyZWN0IHN5bWJvbCBmb3IgQ29uZmlnLlxwYXINClxwYXINCkFsdGhv
dWdoLCBpbiByZXRyb3NwZWN0LCB0aGlzIGlzIG9idmlvdXMgSSBqdXN0IHdhbnRlZCB0b1xwYXIN
CmZpbmlzaCB0aGUgZGlzY3Vzc2lvbiBJIGhhZCBwcmV2aW91c2x5IHJhaXNlZC5ccGFyDQpccGFy
DQotRG91ZyBEYW5mb3J0aFxwYXINClxwYXINClxwYXINCi0tLS1ccGFyDQpUbyB1bnN1YnNjcmli
ZSwgc2VuZCBhIG1lc3NhZ2Ugd2l0aCBib2R5ICJTSUdOT0ZGIEJMQUNLQk9YIiB0byBMSVNUU0VS
VkBMSVNUUy5PQkVST04uQ0h9fQAAGgAA
----boundary-LibPST-iamunique-442232992_-_---
Received on Wed Apr 30 2008 - 06:49:19 UTC

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