Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OLESTR Pin
George_George7-Apr-08 3:58
George_George7-Apr-08 3:58 
GeneralRe: OLESTR Pin
Hamid_RT7-Apr-08 4:12
Hamid_RT7-Apr-08 4:12 
GeneralRe: OLESTR Pin
George_George7-Apr-08 4:16
George_George7-Apr-08 4:16 
GeneralRe: OLESTR Pin
Hamid_RT7-Apr-08 4:28
Hamid_RT7-Apr-08 4:28 
Generalstatic library in two modules Pin
code_discuss1-Apr-08 20:10
code_discuss1-Apr-08 20:10 
QuestionRe: static library in two modules Pin
Rajkumar R1-Apr-08 22:47
Rajkumar R1-Apr-08 22:47 
GeneralRe: static library in two modules Pin
code_discuss2-Apr-08 14:44
code_discuss2-Apr-08 14:44 
GeneralRe: static library in two modules Pin
Mark Salsbery2-Apr-08 6:24
Mark Salsbery2-Apr-08 6:24 
code_discuss wrote:
found that the address of gC is different in a.exe between in b.dll.
Is it strange?


No, because the individual modules get their own personal instance of the variable.

Two of the possible solutions are
1) Put the common static library code in a DLL instead.
2) Use conditional compilation to only create the variable in on module (i.e. in the DLL module only)

Mark



Mark Salsbery
Microsoft MVP - Visual C++

Java | [Coffee]

GeneralEditor Pin
suhi1-Apr-08 20:02
suhi1-Apr-08 20:02 
GeneralRe: Editor Pin
Cedric Moonen1-Apr-08 21:47
Cedric Moonen1-Apr-08 21:47 
GeneralRe: Editor Pin
Hamid_RT7-Apr-08 3:49
Hamid_RT7-Apr-08 3:49 
QuestionMFC application For Tablet PC Pin
SSanket1-Apr-08 19:19
SSanket1-Apr-08 19:19 
GeneralRe: MFC application For Tablet PC Pin
rp_suman1-Apr-08 22:24
rp_suman1-Apr-08 22:24 
Question32 bitbmp with alpha channel Pin
trioum1-Apr-08 18:55
trioum1-Apr-08 18:55 
GeneralRe: 32 bitbmp with alpha channel Pin
Mark Salsbery1-Apr-08 19:10
Mark Salsbery1-Apr-08 19:10 
GeneralRe: 32 bitbmp with alpha channel Pin
trioum3-Apr-08 2:07
trioum3-Apr-08 2:07 
GeneralRe: 32 bitbmp with alpha channel Pin
Mark Salsbery3-Apr-08 5:32
Mark Salsbery3-Apr-08 5:32 
GeneralRe: 32 bitbmp with alpha channel Pin
Hamid_RT7-Apr-08 3:49
Hamid_RT7-Apr-08 3:49 
QuestionHow to swap data from physical momery to virtual momery? [modified] Pin
hanlei00000000091-Apr-08 17:02
hanlei00000000091-Apr-08 17:02 
AnswerRe: How to swap data from physical momery to virtual momery? Pin
CPallini1-Apr-08 21:16
mveCPallini1-Apr-08 21:16 
GeneralI don't know what your means Pin
hanlei00000000091-Apr-08 22:31
hanlei00000000091-Apr-08 22:31 
GeneralRe: I don't know what your means Pin
CPallini1-Apr-08 22:48
mveCPallini1-Apr-08 22:48 
GeneralRSSI (Wireless) display - ActiveX control... Pin
abupriabi@yahoo.com1-Apr-08 11:00
abupriabi@yahoo.com1-Apr-08 11:00 
GeneralRe: RSSI (Wireless) display - ActiveX control... Pin
led mike1-Apr-08 11:15
led mike1-Apr-08 11:15 
QuestionRe: RSSI (Wireless) display - ActiveX control... Pin
CPallini1-Apr-08 22:18
mveCPallini1-Apr-08 22:18 

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.