Can't access global variable from form in Visual C++ forms application -


program description: reading , displaying data xml os: windows 7 ide: microsoft visual studio 2010 express

i have code segment in main source file(babsea cle library.cpp):

int currentbook; #include "editor.h" #include "checkoutline.h" #include "form1.h" using namespace babseaclelibrary; [stathreadattribute] int main(array<system::string ^> ^args) { //more code blablabla 

and try access "currentbook" (not main) form (checkoutline.h), simple form template piece added it:

        private: system::void checkoutline_load(system::object^  sender, system::eventargs^  e) { currentbook=0;} 

though works in main form file (form1.h)

any ideas?

oh, removed

#include "checkoutline.h" 

from checkoutline.cpp

it's good. thank you!


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -