473,396 Members | 1,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Upgrading component from VC6 to VS.Net 2003

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
Nov 17 '05 #1
3 998
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.

--
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
Nov 17 '05 #2
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

"Martin Richter [MVP]" wrote:
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.

--
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

Nov 17 '05 #3
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

"Martin Richter [MVP]" wrote:
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.

--
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

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Elie Grouchko | last post by:
Hi All I am not sure if thie is an ASP issue or a SBS 2003 one (Small Business Server 2003). Help will be much appreciated. I am creating a VB6 COM component (DLL) on a Win2K computer. ...
5
by: Mike Owen | last post by:
Hi, I have just used the import Wizard to import a VS 2003 app to VS 2005. I have a lot of work to do to enable it to compile successfully with all the errors and warnings it gave me, but as a...
13
by: Noesis Strategy | last post by:
When I ordered my new laptop, Sony didn't offer Access 2003 in its bundles. Recently, I have begun to design Access databases using an copy of Access 2002 from my previous laptop. It works fine,...
11
by: Aidan Tobin | last post by:
Hi, I have to upgrade a number of databases from Access 2.0, Access 97 and Access 2000 to work in Office 2003. These databases contain a number of Forms coded with VBA as well as a number of...
4
by: james | last post by:
I upgraded my 2002 project to 2003 and I am getting several of there errors on my forms xxxForm.resx Resource transformation for file 'xxxForm.resx' failed. Possible Version mismatch. Type...
4
by: Spurry Moses | last post by:
I know it's in Beta 2, but I can't report any good experiences with upgrading a project form 2003 to 2005. I tried to upgrade a 2003 project to C# Express 2005. My application has hardly...
1
by: Ray Wampler | last post by:
According to the information on the Microsoft web site, code written in VB.NET 2002 can simply be recompiled using VS.NET 2003. However, I have found that code which compiles cleanly in VS.Net...
5
by: John | last post by:
Hi I have an access 97 app which I have the option to upgrade to either access 2000 or access 2003. Which one should I choose. I have heard nasty things about access 2000. Thanks Regards
0
by: =?Utf-8?B?Q2hyaXMgQmVudG9u?= | last post by:
We have six servers running Windows Server 2003 SP2, Standard Edition that we would like to upgrade to Windows Server 2003, Enterprise Edition. I've been having difficulty with the upgrade, because...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.