Groups | Blog | Home
all groups > dotnet faqs > july 2005 >

dotnet faqs : Upgrading VC 6.0 to VC 2003


SherryM
7/15/2005 1:19:02 PM
I have an ATL COM object compiled with VC 6.0 that needs to be compiled in
Visual Studio .Net 2003. 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?
Alvin Bruney [MVP - ASP.NET]
7/16/2005 1:19:44 PM
Is there a hresult error code? alternatively, you can look in the eventwr to
see if it is a permissions problem.

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
[quoted text, click to view]

SherryM
7/18/2005 8:51:02 AM
Hello Alvin,
Thanks for the suggestion. I recompiled it in debug mode and tried to
install the control in the ActiveX test container. It failed to install
because it got an E_OUTOFMEMORY creating an instance of a string class. This
is a wrapper class that we wrote around stdstring to include format and some
other functions that weren't native to it.
I didn't change any of the compile flags when I converted it. Is there
something I can do in the compile flags to correct this condition? Or do I
have to rewrite my code?

Thanks,
Sherry

[quoted text, click to view]
SherryM
7/18/2005 12:08:02 PM
I rewrote the piece of code doing an array of strings to use a map instead.
This fixed my problem.
I had another dll that wouldn't register and your suggestion about looking
at the dependencies helped me find the problem with that one - I was missing
MFC71.dll.

Thanks very much for the help,
Sherry

[quoted text, click to view]
Alvin Bruney [MVP - ASP.NET]
7/20/2005 2:35:31 PM
no problemo. sorry for the late response, i only occasionaly monitor this
newsgroup

--
Regards,
Alvin Bruney - ASP.NET MVP

[Shameless Author Plug]
The Microsoft Office Web Components Black Book with .NET
Now available @ www.lulu.com/owc, Amazon.com etc
[quoted text, click to view]

AddThis Social Bookmark Button