Compiling NET 1.1 on VS 2005

G

Gary Nastrasio

I have a .NET 1.1 project that I'd like to compile on Visual Studio 2005
Pro. In VS2003 I created a form and dragged the WebBrowser control onto
it. This created the following code:

private: AxInterop::SHDocVw::AxWebBrowser * axWebBrowser;

Now, when I compile in VS2005, with the /clr:blush:ldSyntax switch this error
is coming up:

FrmWebBrowser.h(39) : error C2653: 'AxInterop' : is not a class or
namespace name


Is there a simple way to get this working again? I can't convert the
whole project to .NET 2.0 right now because it's used in a production
environment and it's a large project... I just don't have the time to do
it. :(

Thanks!

Gary
 
C

Carl Daniel [VC++ MVP]

Gary Nastrasio said:
I have a .NET 1.1 project that I'd like to compile on Visual Studio 2005
Pro. In VS2003 I created a form and dragged the WebBrowser control onto
it. This created the following code:

private: AxInterop::SHDocVw::AxWebBrowser * axWebBrowser;

Now, when I compile in VS2005, with the /clr:blush:ldSyntax switch this error
is coming up:

FrmWebBrowser.h(39) : error C2653: 'AxInterop' : is not a class or
namespace name


Is there a simple way to get this working again? I can't convert the
whole project to .NET 2.0 right now because it's used in a production
environment and it's a large project... I just don't have the time to do
it. :(

Your best bet by far is to (re)-install Visual Studio 2003 - it can coexist
with 2005 with no problems (although I have to add, I've never installed
2003 after 2005, so I wouldn't be shocked if a repair-install of 2005 after
installing 2003 was necessary).

There are some hacks out on the net to target the 1.1 runtime from within
2005, but I have a suspicion that they wouldn't help your particular
problem - I think you need the 2003 compiler (unfortunately, /clr:blush:ldSyntax
is not 100% compatible with 2003 - it should be, but it's not. And please
don't ask for particulars as I don't know them - I just know that a variety
of incompatibilities have come up on the newsgroups in the last 6-12
months).

-cd
 

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