Click here to Skip to main content
15,890,995 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CMap problem Pin
CPallini12-Sep-08 5:41
mveCPallini12-Sep-08 5:41 
GeneralRe: CMap problem Pin
Mark Salsbery12-Sep-08 5:49
Mark Salsbery12-Sep-08 5:49 
GeneralRe: CMap problem Pin
CPallini12-Sep-08 6:34
mveCPallini12-Sep-08 6:34 
GeneralRe: CMap problem Pin
Mark Salsbery12-Sep-08 7:47
Mark Salsbery12-Sep-08 7:47 
AnswerRe: CMap problem Pin
Cedric Moonen12-Sep-08 2:29
Cedric Moonen12-Sep-08 2:29 
GeneralRe: CMap problem Pin
Michael Schubert12-Sep-08 2:32
Michael Schubert12-Sep-08 2:32 
AnswerRe: CMap problem Pin
toxcct12-Sep-08 3:14
toxcct12-Sep-08 3:14 
QuestionShare data among all loaded instances of a certain DLL Pin
Joseph Marzbani12-Sep-08 2:06
Joseph Marzbani12-Sep-08 2:06 
Hi masters!
-----------

I'm writing a system-wide keyboard hook. I've an EXE that calls a function
named "InstallHook()" from a DLL, passing it's current thread ID through it
(say dwThreadID) ...

Within DLL, I've a general variable named g_dwThreadID that will be equal to
dwThreadID (mentioned above) ...

The problem is:
----------------------

Although g_dwThreadID has a certain value within the DLL initializely,
but it will be equal to zero! I guss It's because the DLL is mapped to every
proccess in the system and then all variables, including g_dwThreadID gets
initialized ...
Now I'm looking for a way that I can share initialized g_dwThreadID among
all loaded instaneces of my DLL ...

Any help?
AnswerRe: Share data among all loaded instances of a certain DLL Pin
CPallini12-Sep-08 2:10
mveCPallini12-Sep-08 2:10 
GeneralRe: Share data among all loaded instances of a certain DLL Pin
Joseph Marzbani12-Sep-08 2:19
Joseph Marzbani12-Sep-08 2:19 
GeneralRe: Share data among all loaded instances of a certain DLL Pin
CPallini12-Sep-08 3:28
mveCPallini12-Sep-08 3:28 
QuestionConvert bitmap edge in line Pin
key_b112-Sep-08 0:29
key_b112-Sep-08 0:29 
AnswerRe: Convert bitmap edge in line Pin
SandipG 12-Sep-08 1:12
SandipG 12-Sep-08 1:12 
GeneralRe: Convert bitmap edge in line Pin
key_b114-Sep-08 22:29
key_b114-Sep-08 22:29 
QuestionRe: Convert bitmap edge in line Pin
CPallini12-Sep-08 2:13
mveCPallini12-Sep-08 2:13 
AnswerRe: Convert bitmap edge in line Pin
key_b114-Sep-08 23:27
key_b114-Sep-08 23:27 
QuestionDetermining the 'real' length of Unicode strings Pin
Rob Caldecott11-Sep-08 22:45
Rob Caldecott11-Sep-08 22:45 
AnswerRe: Determining the 'real' length of Unicode strings Pin
sashoalm11-Sep-08 23:04
sashoalm11-Sep-08 23:04 
GeneralRe: Determining the 'real' length of Unicode strings Pin
Rob Caldecott11-Sep-08 23:33
Rob Caldecott11-Sep-08 23:33 
AnswerRe: Determining the 'real' length of Unicode strings Pin
Roger Stoltz12-Sep-08 0:03
Roger Stoltz12-Sep-08 0:03 
AnswerRe: Determining the 'real' length of Unicode strings Pin
James R. Twine12-Sep-08 8:00
James R. Twine12-Sep-08 8:00 
AnswerRe: Determining the 'real' length of Unicode strings Pin
Nemanja Trifunovic12-Sep-08 9:22
Nemanja Trifunovic12-Sep-08 9:22 
Questionfork a telnetd process under the unix or linux Pin
alphaxz11-Sep-08 22:03
alphaxz11-Sep-08 22:03 
AnswerRe: fork a telnetd process under the unix or linux Pin
David Crow12-Sep-08 2:26
David Crow12-Sep-08 2:26 
Questionstring to unicode conversion......... Pin
shaina223111-Sep-08 17:48
shaina223111-Sep-08 17:48 

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.