Hello,
I'm kinda new to C++ and have a lot of trouble with. This is one of those things I can't solve myself...
I made a structure that I want to use in any cpp file so i don't have to re-declare it everytime i wish to use it. So I tried to make it extern like I did to a few CStrings (Yes I'm working in MFC) which worked perfectly. Here's the code I got atm:
I made this code after reading a bunch of post and stuff i googled.Code://af editor.h
extern CString currentfile;
struct AFHEADER {
short m_fighternumber;
};
extern struct afheader AFHEADER;
//af editor.cpp
CString currentfile;
struct afheader AFHEADER;
Please help :confused:
ps. Sorry for my english I'm sleeeepy..