-
July 22nd, 2010, 01:46 AM
#1
Using COM Components by registering DLL in run time
Hi all,
Does anyone know how to automatically register a DLL in run-time or just possible to integrate it into an exe file?
This is so I can call COM components that require that DLL registered without first registering the dll using 'regsvr32 <dll>'. I want to do this so that I can just call a single exe and then it does it all, instead of having to register the dll first, then call the exe. (Kind of like to make it faster and time-saving; ex. if I have to call it in many computers).
I took a look at Registration-Free Activation of COM components: http://msdn.microsoft.com/en-us/libr...comwalk_topic4.
However, when I import the dll I need (smsmsgapi.dll), it says fatal error C1083: Cannot open type library file: 'd:\my files\lean's files\assignment 13\sms_sdk\smsmsgapi.dll': Error loading type library/DLL. But if I do it using the DLL I create from the steps in the link, it compiles correctly.
I would like to ask for suggestions or comments regarding this.
Thank you!
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|