Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog Help! Pin
Pazzuzu28-Jul-04 4:20
Pazzuzu28-Jul-04 4:20 
GeneralRe: CDialog Help! Pin
Jaime Stuardo27-Jul-04 5:09
Jaime Stuardo27-Jul-04 5:09 
QuestionAre parameters/member variables safe for threading ? Pin
Hesham Amin27-Jul-04 0:39
Hesham Amin27-Jul-04 0:39 
QuestionHow to add a message handler function to a control at run-time? Pin
misterbear26-Jul-04 21:48
misterbear26-Jul-04 21:48 
AnswerRe: How to add a message handler function to a control at run-time? Pin
Ivan Cachicatari27-Jul-04 4:01
Ivan Cachicatari27-Jul-04 4:01 
GeneralSystem modal window question... Pin
Orkun GEDiK26-Jul-04 21:19
Orkun GEDiK26-Jul-04 21:19 
GeneralRe: System modal window question... Pin
David Crow27-Jul-04 4:10
David Crow27-Jul-04 4:10 
GeneralGlobal Variable..(Simple but difficult....) Pin
Sumit Kapoor26-Jul-04 19:01
Sumit Kapoor26-Jul-04 19:01 
Hi..

I'm using Global variable in VC++ MFC by declaring variable in .cpp file. then I've to use "extern" to acces that variable from other file..that's OK!..if I'm working normal..But when I use to access that Variable from thread..then It gives Error in Relase varsion(NOTE: not giving error in DEBUG version)..

1. Whenever I need to write new value I use CCriticalSection variable & Lock & unlock while operation of writing..
e.g:
CCriticalSection a1;
a1.Lock();
bStopRightDownThread=true;
a1.Unlock();

2. This value is Continue used by thread & checked by thread..if this value change then thread take action as per value...

Problem : It is giving Illigal Operation error & close application in case of RELEASE version, but working fine in case of DEBUG version.

WHAT DO YOU THINK REASON OF THIS?

THanks..I'm waiting for your reply...Smile | :)


---Sumit Kapoor--- sumit_kapoor1980@hotmail.com
GeneralRe: Global Variable..(Simple but difficult....) Pin
V.26-Jul-04 22:52
professionalV.26-Jul-04 22:52 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Ryan Binns27-Jul-04 19:01
Ryan Binns27-Jul-04 19:01 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Sumit Kapoor27-Jul-04 19:22
Sumit Kapoor27-Jul-04 19:22 
GeneralRe: Global Variable..(Simple but difficult....) Pin
Ryan Binns27-Jul-04 20:44
Ryan Binns27-Jul-04 20:44 
GeneralTreeview in SDI App - Explorer style Pin
mavrick2326-Jul-04 18:47
mavrick2326-Jul-04 18:47 
GeneralRe: Treeview in SDI App - Explorer style Pin
User 58385226-Jul-04 18:58
User 58385226-Jul-04 18:58 
GeneralRe: Treeview in SDI App - Explorer style Pin
mavrick2326-Jul-04 20:35
mavrick2326-Jul-04 20:35 
GeneralRe: Treeview in SDI App - Explorer style Pin
User 58385226-Jul-04 21:01
User 58385226-Jul-04 21:01 
GeneralRe: Treeview in SDI App - Explorer style Pin
palbano26-Jul-04 19:55
palbano26-Jul-04 19:55 
Generalstatus bar Pin
Anonymous26-Jul-04 18:42
Anonymous26-Jul-04 18:42 
GeneralRe: status bar Pin
User 58385226-Jul-04 19:28
User 58385226-Jul-04 19:28 
Questionhow to call SQL BLOB in MFC Pin
Member 118298226-Jul-04 16:52
Member 118298226-Jul-04 16:52 
AnswerRe: how to call SQL BLOB in MFC Pin
Sumit Kapoor26-Jul-04 18:38
Sumit Kapoor26-Jul-04 18:38 
Generalopen/save dialog Pin
Archer28226-Jul-04 16:08
Archer28226-Jul-04 16:08 
GeneralRe: open/save dialog Pin
Ryan Binns26-Jul-04 17:59
Ryan Binns26-Jul-04 17:59 
GeneralRe: open/save dialog Pin
Ivan Cachicatari26-Jul-04 18:05
Ivan Cachicatari26-Jul-04 18:05 
GeneralInvalidateRect question Pin
Anonymous26-Jul-04 10:31
Anonymous26-Jul-04 10:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.