pragma startup and DJGPP

Programming, for all ages and all languages.
Post Reply
crackers

pragma startup and DJGPP

Post by crackers »

I would like to have init function in each of my libraries that would be invoked before any other function from that library (something like constructor for objects). Is there any way to do it in C using DJGPP?
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:pragma startup and DJGPP

Post by Solar »

Well, that depends on your operating system...
Every good solution is obvious once you've found it.
crackers

Re:pragma startup and DJGPP

Post by crackers »

Solar wrote: Well, that depends on your operating system...
Win XP
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re:pragma startup and DJGPP

Post by Solar »

A google for "windows library initialization" brought up this link into the MSDN.
Every good solution is obvious once you've found it.
Post Reply