Upgrading component from VC6 to VS.Net 2003

G

Guest

I have an ATL COM object compiled with VC 6.0 that needs to be compiled in
Visual Studio .Net 2003. So, I going from the 6.0 compiler to the 7.1
compiler. I got the project converted, compiled and linked
without errors. It registers correctly but it will not instatiate as an
ActiveX control in my classic ASP pages. I get the "ActiveX component can't
create object" message.
What am I doing wrong?
Thanks,
Sherry
 
M

Martin Richter [MVP]

Hallo SherryM!
I have an ATL COM object compiled with VC 6.0 that needs to be compiled in
Visual Studio .Net 2003. So, I going from the 6.0 compiler to the 7.1
compiler. I got the project converted, compiled and linked
without errors. It registers correctly but it will not instatiate as an
ActiveX control in my classic ASP pages. I get the "ActiveX component can't
create object" message.
What am I doing wrong?

Do you have the all DLL's installed? New CRT 7.1, new MFC DLL 7.1. Use
depends and look what additional DLLs are needed.
 
G

Guest

Hey Martin,
Thanks for responding. I looked at depends and the only required dll that
doesn't have a linker version of 7.0 is oleaut32.dll. Looking at Microsoft's
DLL Help database, I found that the only version later than mine for Windows
XP is for SP2 which I haven't installed yet. And I don't really want to
upgrade to SP2 just to find out that it doesn't solve my problem. Besides
which, I can't force our clients to upgrade just to run this one dll.
I checked Event Viewer and there were no messages in there regarding my dll
either.
Anything else I can check?
Thanks,
Sherry
 
G

Guest

Martin,
The problem with my dll was E_OUTOFMEMORY. I rewrote the code the use a map
instead of an array of strings and that fixed the problem.
However, I had another dll that wouldn't register on the server and I
checked the dependency walker per your suggestion and found that I was
missing MFC71.dll.

Thanks very much for your help,
Sherry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top