.NET 2003 playing up

tuzz

Member
Feb 20, 2001
77
0
0
I just installed Visual Studio .NET 2003 on my XP machine (I usually do work on my win2k machine) and its got some very strange issues:

1) It can't "find" functions that are part of code I've pasted in. e.g. I paste in a function, I try to call it from somewhere else and .NET tells me the function isn't found.

2) When I double-click on an error to see which line is at fault, it goes to the wrong line. e.g. for that function not found error, it claimed the error was on line 17, yet the line no. calling the function is about line 300. It happens for every single error in the code, it seems to be reporting which line has errors incorrectly.

What could be wrong with .NET?
 

torpid

Lifer
Sep 14, 2003
11,631
11
76
Those things happen often if you have two projects, one calling the other, but don't rebuild both projects after you rebuild one.
 

tuzz

Member
Feb 20, 2001
77
0
0
I'm only in the one project - code is being pasted straight from a .cpp file ... essentially I'm porting code written in linux to windows. The code is platform-independant OpenGL code.

In fact I tried adding the .cpp file to an empty project first, without modifying any code, still the same errors.
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Sounds like you're missing some include files (probably the opengl ones). Just out of curiosity, how much do you know about programming ?
 

UCJefe

Senior member
Jan 27, 2000
302
0
0
Did you prototype your function in a header file that the calling file includes?

Are you missing a semi-colon or something on line 17?

VS.NET 2003 works (for the most part) at least on easy stuff like this (lets not get into disappearing user controls). The probability is much higher that this is user error. :)

We need to see code at this point.
 

tuzz

Member
Feb 20, 2001
77
0
0
haha you probably wouldn't guess what the problem finally was - its all fixed now. It had to do with the way linux stores text files - windows reads the line breaks differently. It formatted the code to display line breaks so everything looked ok, but when viewed in Notepad every "line" of code was on the same line and delimited by a little white square.

Simply opening the file in Wordpad and then pasting back into .NET formatted it correctly, the code now works again. Thanks for the help anyways guys!