Upgrading VC 6.0 to VC 2003

G

Guest

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?
Thanks,
 
A

Alvin Bruney [MVP - ASP.NET]

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
 
G

Guest

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

Alvin Bruney said:
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
SherryM said:
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?
Thanks,
 
G

Guest

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

SherryM said:
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

Alvin Bruney said:
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
SherryM said:
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?
Thanks,
 
A

Alvin Bruney [MVP - ASP.NET]

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
SherryM said:
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

SherryM said:
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

Alvin Bruney said:
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
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?
Thanks,
 

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top