Hey u asked it in VC++........
so i think u want to programmatically load your prog in StartUp
one trick is what palbano suggested to U.
Other is, You can add your application file (.EXE with args) in registry key.
The key is HKCU/SoftWare/Microsoft/Windows/Current Version/Run.
Add your app path...
The DLL runs in the same address space as your application
So write some function in your Dll, say Give(void *);
and call this function from your applicatin after LoadLibrary call, pass your struct * to Give(void*).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.