B
Bo Berglund
I have defined a few functions in a file, let's say it is called
functions.cpp. There are no objects involved, these are pure simple
functions.
In my test application I want to call this function so in the code I
reach by doubleclicking the button in the IDE I enter:
InitKey();
But when I compile this VS2005 displays an error:
1>c:\engineering\vs2005\vstest32\vstest32\MainForm.h(119) : error
C2065: 'InitKey' : undeclared identifier
But it *is* declared in my file functions.cpp and this file *is*
listed among the project files...
Is there something else I have to do?
Note: I am a Delphi/VisualBasic programmer and have used ANSI C a long
time ago. I am a complte newbie to C++, but I have to port some code
into this environment.
At the time I wrote ANSI C such functions were declared in a H file
and this was included into the using C file. But Visual Studio
actually brings me to a H file to begin with when I doubleclick the
button, so I am at a loss here. I expected to be brought to the proper
cpp file rather than to an h file. And there are no includes inside
the h file...
TIA...
Bo Berglund
bo.berglund(at)nospam.telia.com
functions.cpp. There are no objects involved, these are pure simple
functions.
In my test application I want to call this function so in the code I
reach by doubleclicking the button in the IDE I enter:
InitKey();
But when I compile this VS2005 displays an error:
1>c:\engineering\vs2005\vstest32\vstest32\MainForm.h(119) : error
C2065: 'InitKey' : undeclared identifier
But it *is* declared in my file functions.cpp and this file *is*
listed among the project files...
Is there something else I have to do?
Note: I am a Delphi/VisualBasic programmer and have used ANSI C a long
time ago. I am a complte newbie to C++, but I have to port some code
into this environment.
At the time I wrote ANSI C such functions were declared in a H file
and this was included into the using C file. But Visual Studio
actually brings me to a H file to begin with when I doubleclick the
button, so I am at a loss here. I expected to be brought to the proper
cpp file rather than to an h file. And there are no includes inside
the h file...
TIA...
Bo Berglund
bo.berglund(at)nospam.telia.com