Removing the type library from a DLL
-
I'm working on a plugin system, however I do not want end users to be able to discover what interfaces/coclasses I have implimented in the plugin DLLs. If I remove the type library from the DLL's resources, will the plugged-into app still function correctly as long as it knows the definitions of the plugins' interfaces at compile-time? If the plugin DLL does NOT contain a type library in itself, will the app and plugin still function properly?
-
I'm working on a plugin system, however I do not want end users to be able to discover what interfaces/coclasses I have implimented in the plugin DLLs. If I remove the type library from the DLL's resources, will the plugged-into app still function correctly as long as it knows the definitions of the plugins' interfaces at compile-time? If the plugin DLL does NOT contain a type library in itself, will the app and plugin still function properly?
The type library in the resources is just included for convenience so that other programmers can view the COM interfaces etc. but does not directly affect the actual interfaces implemented. If you remove this information from the DLLs resource (comment out the lines in the .rc file), the actual interfaces will still function normally.
-
The type library in the resources is just included for convenience so that other programmers can view the COM interfaces etc. but does not directly affect the actual interfaces implemented. If you remove this information from the DLLs resource (comment out the lines in the .rc file), the actual interfaces will still function normally.
-
The type library in the resources is just included for convenience so that other programmers can view the COM interfaces etc. but does not directly affect the actual interfaces implemented. If you remove this information from the DLLs resource (comment out the lines in the .rc file), the actual interfaces will still function normally.
I know this very stupid Question ,just want to know which line to comment out in
RC File
. Thanks
"I Think this Will Help" Alok Gupta
visit me at http://www.thisisalok.tk -
I know this very stupid Question ,just want to know which line to comment out in
RC File
. Thanks
"I Think this Will Help" Alok Gupta
visit me at http://www.thisisalok.tkNear the bottom of the .rc file, you will see a line like this: 1 TYPELIB "myproject.tlb" If you comment out this line, then the type libary will not be included (assuming that APSTUDIO_INVOKED has not been defined). If APSTUDIO_INVOKED has been defined, then you will need to comment out the TEXTINCLUDE section higher up in the .rc file which contain a similar TYPELIB line.
-
Near the bottom of the .rc file, you will see a line like this: 1 TYPELIB "myproject.tlb" If you comment out this line, then the type libary will not be included (assuming that APSTUDIO_INVOKED has not been defined). If APSTUDIO_INVOKED has been defined, then you will need to comment out the TEXTINCLUDE section higher up in the .rc file which contain a similar TYPELIB line.
Thanks Sir! I got it!! Thanks Once Again
"I Think this Will Help" Alok Gupta
visit me at http://www.thisisalok.tk