Thanhnamdo wroteaccept this value from an other Dialog of an other class
If you want to pass value from one dialog to another you can access the parent dialog's variables by
Then use this pointer to call member functions / change or alter variables of the first (parent) dialog.
Another way is to pass a pointer from one class to another.
Somethings seem HARD to do, until we know how to do them. _AnShUmAn_
Whats application type if you have two dialog you can use
CMain m_Main=(CMain*)GetParent();and in another application you can use m_Main->(your variable)or(your function)and include header from Main class in another class
I'm a beginer. I use Tree Control in Dialog start and I stored Message TVN_SELCHANGED in a value and I want to accept this value from an other Dialog of an other class .But I don't known how to work .
Plesea help me!
I have project..in which i have to add all the Api function and access the data from server and store in my database...
Steps i have followed till now r:
NEW->PROJECT->MFC AppWizard (exe)->Dialog based
In dialog based application :NEXT
PROJECT->ADD TO PROJECT->COMPONENTS AND CONTROLS->GALLARY->REGISTERED ACTIVE-X COMPONENTS->ARIEL API CONTROLS->THEN IN DIALOG BOX I GOT THE INFORMATION ABOUT
1. CLASS NAME AAPI
2. BASE CALSS CWND
3.HEADER FILE AAPI.H
4.IMPIMENTATION FILE AAPI.CPP
I NEED YOUR SUGGESTION FOR MY PROJECT DO I AM IN THE RIGHT WAY.IS IT OK WORKING WITH DIALOG BASED APPLICATION OR I HAVE TO WORK WITH SOME OTHER ENVIRONMENT...AFTER ACCEPTING DATA DISPLAY THE CURRENT RATE FOR TODAY IN THE TEXT FILE...
cAN U GIVE ME ANY USEFUL SUGGESTION TO PROCEED FURTHER...PLEASE..IF U NEED ANY DETAIL PLS MAIL ME THROUGH THIS FOURM
THANKS IN ADVANCE
Iam trying to read and write to USB device.
I get an error message
error LNK2001: unresolved external symbol "public: enum FT_STATUS __thiscall CUSBtestDlg::GetStatus(unsigned long *,unsigned long *,unsigned long *)" (?GetStatus@CUSBtestDlg@@QAE?AW4FT_STATUS@@PAK00@Z)
Release/USBtest.exe : fatal error LNK1120: 1 unresolved externals
I tried debugging but in vain.
Can anyone help/ any ideas?
You need to see why the implementation of CUSBtestDlg::GetStatus(unsigned long *,unsigned long *,unsigned long *) is not in any of your cpp or header files that are included in your project. Have you added all the cpp files in your source folder to the project??