Click here to Skip to main content
15,915,160 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How I can convert CString variable into char * ? Pin
Rage15-Dec-06 1:32
professionalRage15-Dec-06 1:32 
AnswerRe: How I can convert CString variable into char * ? Pin
Hamid_RT15-Dec-06 18:17
Hamid_RT15-Dec-06 18:17 
Questionproblem with list control. Pin
priyank_ldce14-Dec-06 23:37
priyank_ldce14-Dec-06 23:37 
AnswerRe: problem with list control. Pin
prasad_som14-Dec-06 23:44
prasad_som14-Dec-06 23:44 
GeneralRe: problem with list control. Pin
priyank_ldce15-Dec-06 0:02
priyank_ldce15-Dec-06 0:02 
QuestionVariable not shared between dlls... Pin
Shy Agam14-Dec-06 23:35
Shy Agam14-Dec-06 23:35 
AnswerRe: Variable not shared between dlls... Pin
pnkj15-Dec-06 2:06
pnkj15-Dec-06 2:06 
GeneralRe: Variable not shared between dlls... [modified] Pin
Shy Agam15-Dec-06 3:40
Shy Agam15-Dec-06 3:40 
pnkj wrote:
Do you supply the value to the variable at the time of initialization in the shared data segment?


This is my #pragma snippet:

#pragma data_seg("SHARED")<br />
    char *myString = new char[100];<br />
#pragma data_seg()<br />
#pragma comment(linker, "/section:SHARED,RWS")


I also tried the following:
char myString[100];

pnkj wrote:
Generally, pointer variables should not be shared among different mappings of a dll.


How would I use a string then?

Added:
I forgot to mention that I get a link error which appears only once, and if I compile again it disappears:

--------------------Configuration: HookingCore - Win32 Debug--------------------
Compiling...
HookingCore.cpp
Linking...
Creating library Debug/HookingCore.lib and object Debug/HookingCore.exp
LINK : warning LNK4039: section "SHARED" specified with /SECTION option does not exist

HookingCore.dll - 0 error(s), 1 warning(s)
AnswerRe: Variable not shared between dlls... Pin
Michael Dunn15-Dec-06 11:58
sitebuilderMichael Dunn15-Dec-06 11:58 
QuestionCDialog Pin
Bravoone_200614-Dec-06 23:26
Bravoone_200614-Dec-06 23:26 
AnswerRe: CDialog Pin
Rage15-Dec-06 1:37
professionalRage15-Dec-06 1:37 
AnswerRe: CDialog Pin
Hamid_RT15-Dec-06 2:38
Hamid_RT15-Dec-06 2:38 
QuestionRe: CDialog Pin
David Crow15-Dec-06 3:59
David Crow15-Dec-06 3:59 
NewsRe: CDialog Pin
Bravoone_200617-Dec-06 22:20
Bravoone_200617-Dec-06 22:20 
QuestionRe: CDialog Pin
David Crow18-Dec-06 2:44
David Crow18-Dec-06 2:44 
QuestionRe: CDialog Pin
Bravoone_200618-Dec-06 19:23
Bravoone_200618-Dec-06 19:23 
QuestionRe: CDialog Pin
David Crow19-Dec-06 2:44
David Crow19-Dec-06 2:44 
AnswerRe: CDialog Pin
Mark Salsbery15-Dec-06 5:42
Mark Salsbery15-Dec-06 5:42 
GeneralRe: CDialog Pin
Hamid_RT15-Dec-06 18:22
Hamid_RT15-Dec-06 18:22 
QuestionData Packets sent via UDP don't arrive seperately. 5ms gap doesn´t work Pin
kletteroli14-Dec-06 23:17
kletteroli14-Dec-06 23:17 
AnswerRe: Data Packets sent via UDP don't arrive seperately. 5ms gap doesn´t work Pin
Mark Salsbery15-Dec-06 5:47
Mark Salsbery15-Dec-06 5:47 
Questionrange Pin
radhika2814-Dec-06 23:08
radhika2814-Dec-06 23:08 
AnswerRe: range Pin
Rage15-Dec-06 1:35
professionalRage15-Dec-06 1:35 
GeneralRe: range Pin
Bravoone_200615-Dec-06 2:05
Bravoone_200615-Dec-06 2:05 
GeneralRe: range Pin
radhika2815-Dec-06 2:30
radhika2815-Dec-06 2:30 

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.