It sounds like you've declare the variable 'myconst' as extern.
If this is so, then before you use the variable in file.cpp you must also declare it there.
e.g.
In TForm1.h
============
extern int myconst = 10;
In file.h or at the top of file.cpp
====================================
extern...
Hello,
I'm writing an app that uses the functions defined in mmsystem.h. At the moment its just a skeleton - a Form with a few controls on it but no code yet.
I've started writing a new class CSoundDevice, which again only has a constructor with no code and its only include is mmsystem.h...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.