AnsweredAssumed Answered

Fatal Error:C1010 unexpected end of file ....

Question asked by iambishnu on Aug 6, 2010
Latest reply on Aug 9, 2010 by tabbott
Hello Everyone,

I have a job in hand to control Agilent E4440A analyzer from PC using LAN to GPIB gateway. I have done the settings and I am supposed to write C program in VC++. Since, VC++ as a whole is new to me, I am finding difficult to write programs. I have I/O library suite installed and VC++ 6 version installed in my PC. I went through VISA User Guide and made settings as it has mentioned. Added a file idn.c to the project and build->rebuit all. The file got compiled without an error and I executed the program also and it was Okay.

But when I tried next time, It is showing me an error.

c:\program files\microsoft visual studio\myprojects\new\idn.c(5) : fatal error C1010: unexpected end of file while looking for precompiled header directive
Generating Code...
Error executing cl.exe.

attempt.dll - 1 error(s), 0 warning(s)

I tried so many things and I could not get it done. Please help me out.

I am writing all that I did from the start:

Started VC++ 6
File-> New
It pops up a window with Files, Projects, Workspaces, Other documents in tabs with Projects as active tab and default select type "ATL COM appwizard"
I choose location and type something in project name field.
I just click finish with server type "dynamic link library".

Then I did settings as given in VISA User Guide. added idn.c file to the project and build->Rebuild All

Please let me know if I did anything wrong here and help me