Click here to Skip to main content
16,004,887 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 13:58
Kuroro Rucilful19-Mar-06 13:58 
AnswerRe: File I/O Pin
Stephen Hewitt19-Mar-06 13:52
Stephen Hewitt19-Mar-06 13:52 
AnswerRe: File I/O Pin
Stephen Hewitt19-Mar-06 14:03
Stephen Hewitt19-Mar-06 14:03 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:01
Kuroro Rucilful19-Mar-06 14:01 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:06
Kuroro Rucilful19-Mar-06 14:06 
GeneralRe: File I/O Pin
jhwurmbach19-Mar-06 21:44
jhwurmbach19-Mar-06 21:44 
GeneralRe: File I/O Pin
Kuroro Rucilful19-Mar-06 14:29
Kuroro Rucilful19-Mar-06 14:29 
QuestionGlobal Variable Question Pin
JSadleir19-Mar-06 12:43
JSadleir19-Mar-06 12:43 
Hi Coders
I have a Visual C++ 2005 solution made up of two projects with lots of source fles (containing functions only) that produce two separate dlls.

In one source file I calculate a value in a variable and I want that variable to have global scope across the two projects. Is that possible? The value in the variable is needed by all the other functions in the two projects to work properly.

I have tried declaring the variable in header file and before the call to dllmain but neither approach works. I can't use a macro because the I have to recalculate the value each time the dlls are used.

Any suggestions would be much appreciated.

Regards

Jeremy
AnswerRe: Global Variable Question Pin
Chris Gao19-Mar-06 13:05
Chris Gao19-Mar-06 13:05 
GeneralRe: Global Variable Question Pin
JSadleir19-Mar-06 13:16
JSadleir19-Mar-06 13:16 
GeneralRe: Global Variable Question Pin
Richard Andrew x6419-Mar-06 13:42
professionalRichard Andrew x6419-Mar-06 13:42 
GeneralRe: Global Variable Question Pin
JSadleir19-Mar-06 14:03
JSadleir19-Mar-06 14:03 
GeneralRe: Global Variable Question Pin
Chris Gao19-Mar-06 13:49
Chris Gao19-Mar-06 13:49 
QuestionCSockets and multithreading Pin
softwaremonkey19-Mar-06 11:06
softwaremonkey19-Mar-06 11:06 
AnswerRe: CSockets and multithreading Pin
Richard Andrew x6419-Mar-06 11:20
professionalRichard Andrew x6419-Mar-06 11:20 
GeneralRe: CSockets and multithreading Pin
softwaremonkey19-Mar-06 11:33
softwaremonkey19-Mar-06 11:33 
GeneralRe: CSockets and multithreading Pin
Richard Andrew x6419-Mar-06 11:47
professionalRichard Andrew x6419-Mar-06 11:47 
Questionprinting bitmaps Pin
Waldermort19-Mar-06 8:01
Waldermort19-Mar-06 8:01 
AnswerRe: printing bitmaps Pin
David Crow19-Mar-06 9:04
David Crow19-Mar-06 9:04 
AnswerRe: printing bitmaps Pin
Roger Allen19-Mar-06 12:24
Roger Allen19-Mar-06 12:24 
AnswerRe: printing bitmaps Pin
Hamid_RT19-Mar-06 17:09
Hamid_RT19-Mar-06 17:09 
QuestionWhere is call for DLL within VisStu 6.0 C++ Pin
Robert Palma Jr.19-Mar-06 7:45
Robert Palma Jr.19-Mar-06 7:45 
AnswerRe: Where is call for DLL within VisStu 6.0 C++ Pin
Richard Andrew x6419-Mar-06 7:55
professionalRichard Andrew x6419-Mar-06 7:55 
GeneralRe: Where is call for DLL within VisStu 6.0 C++ Pin
Robert Palma Jr.19-Mar-06 8:11
Robert Palma Jr.19-Mar-06 8:11 
GeneralRe: Where is call for DLL within VisStu 6.0 C++ Pin
Richard Andrew x6419-Mar-06 8:17
professionalRichard Andrew x6419-Mar-06 8:17 

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.