Click to See Complete Forum and Search --> : Can AxtiveX controls be compiled staticly


April 22nd, 1999, 08:22 AM
I keep getting LNK2001 errors on COleControl class functions when I try to complile my ActiveX control Staticly. What can be done?

Thanks,
Jay

April 22nd, 1999, 08:35 AM
Please expand on "complile my ActiveX control Staticly". Does this mean that
you are compiling to a static library? Or that the compile option for using
MFC statically is turned on?
Since you are getting linker errors, I suspect that the compile option for MFC
use is incorrect. I may be wrong but for ActiveX controls, I believe the use
of MFC is to link dynamically.

April 22nd, 1999, 09:14 AM
I have my Project settings to use MFC in a static library. I recieved something like 116 LNK2001 errors. All with COleControl, ColeControlMethod, or ColePropertyPage classes.

Thanks,
Jay