Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2005

Tip: Looking for answers? Try searching our database.

Upgrading component from VC6 to VS.Net 2003

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
SherryM - 15 Jul 2005 21:25 GMT
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
Martin Richter [MVP] - 16 Jul 2005 13:16 GMT
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
[quoted text clipped - 3 lines]
> 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.

Signature

Martin Richter [MVP] WWJD
"In C we had to code our own bugs. In C++ we can inherit them."
FAQ : http://www.mpdvc.de
Samples: http://www.codeguru.com http://www.codeproject.com

SherryM - 18 Jul 2005 16:31 GMT
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

> Hallo SherryM!
>
[quoted text clipped - 8 lines]
> 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.
SherryM - 18 Jul 2005 20:10 GMT
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

> Hallo SherryM!
>
[quoted text clipped - 8 lines]
> 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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.