Avatar of Nevering
Nevering
 asked on

C++ conversion errors

I'm new to .NET and appreciate any help.

I'm converting a VS 6.0 C++ project to 7.0 and I'm getting a bunch of errors that I don't understand.

1) how do you setup the search paths for lib, include, bin etc as y ou did in 6.0. The program is having problems finding files like ..\src\occimpl.h

2) I'm getting some strangeness like Error C2143 syntax error : missing ')' before "*" in many of .NET's include files for example VC7\atlmfc\include\afxole.h line 1398  ... also on the same line error C2059: syntax error : ')'

I know I must be doing something wrong here but I can find any references that help.

thanks
C++

Avatar of undefined
Last Comment
Netminder

8/22/2022 - Mon
BlueTrin

Open the 'Solution Explorer' (CTRL + ALT + 'L')

You should see something like:

***********************************************************

= Solution 'temp2' (1 project)
|
+- = Project1

... etc (the rest of the files/projects)

***********************************************************


Right click on the name of the project (not the solution, the project, in this case it s 'Project1'), then on properties and you should see something more familiar ;).
Nevering

ASKER
I have seen the extra directories to search, but aren't system folders search automatically? Why aren't the atlmfc folders being searched. Is there some setting ?  Seems like we're missing something
Nevering

ASKER
I have seen the extra directories to search, but aren't system folders search automatically? Why aren't the atlmfc folders being searched. Is there some setting ?  Seems like we're missing something
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Nevering

ASKER
I called Microsoft on this and the correct way to do this is to turn on ATL project in properties and the include path had to be <..\src\mfc\occimpl.h>

ASKER CERTIFIED SOLUTION
Netminder

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.