Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Registering typelib runtime
#1
I cannot register .ocx/.dll files due to user limitations. So I have to use the files directly.

My question is ... if I include the ocx as a resource and extract it to temp folder and then try a 'typelib'...it gives compile error. Any way around ?

Error in Dlg_AM_Main: cannot load type library.
Cannot make exe. Error 4, failed to compile.

Code:
Copy      Help
_s.format("%s\system\mvsgif.ocx" AM_Workdir)
typelib ANIMATEDGIFLib _s
#2
Type libraries are not used in exe. They are used only when creating exe.

Variables cannot be used in declarations.

Exe only have to register the ocx. For example use function RegisterComComponent. When registering, it must run as admin, or elevate to admin using flag 4.


Forum Jump:


Users browsing this thread: 1 Guest(s)