Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Initialize Assembly without DllMain?

Status
Not open for further replies.

Milby7

Programmer
Dec 5, 2003
67
0
0
GB

I have an unmanaged/native executable & I need to somehow get a managed class loaded into its process, only I don't have access to the source code of the exe. The only thing I can do is specify in a config file that it should load the dll when the process starts (presumably using LoadLibrary winapi).

I'm going round in circles trying to figure out how to do it!

Is there a .NET equivalent to DllMain? Can I load an assembly into another process & create objects in it? Can anyone think of a workaround?

Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top