Welcome, Guest. Please login or register.

Author Topic: Creating a resource with autoinit?  (Read 1251 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline DoobreyTopic starter

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 1876
    • http://www.doobreynet.co.uk
Creating a resource with autoinit?
« on: February 27, 2006, 10:41:00 PM »
Hi guys (OK, Hi Piru..I know you'll be the first to answer this  ;-) )

Basically I'm creating a resource,  right now I'm doing it the 'normal' way
ie. in the resident struct  flags not setting RTF_AUTOINIT,rt_type=NT_RESOURCE, and rt_init points to an init routine that does a MakeLibrary() then AddResource().

But, is it possible to do away with most of that to make the code a bit smaller?
 I know that setting RTF_AUTOINIT can do away with the MakeLibrary() and AddLibrary() stuff in a library, but is exec smart enough to spot it's not a library and use AddResource() instead??

 (I had a look through the NDK and the RKRM Libraries, but couldn't see anything mentioning it)
On schedule, and suing