Click here to Skip to main content
15,914,014 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to pass array as a parameter??? Pin
toxcct6-Feb-06 21:36
toxcct6-Feb-06 21:36 
AnswerRe: How to pass array as a parameter??? Pin
Russell'6-Feb-06 21:51
Russell'6-Feb-06 21:51 
GeneralRe: How to pass array as a parameter??? Pin
Ming Luo6-Feb-06 23:16
Ming Luo6-Feb-06 23:16 
GeneralRe: How to pass array as a parameter??? Pin
Russell'6-Feb-06 23:27
Russell'6-Feb-06 23:27 
AnswerRe: How to pass array as a parameter??? Pin
David Crow7-Feb-06 3:00
David Crow7-Feb-06 3:00 
QuestionUsage Count of a dll Pin
SanjaySMK6-Feb-06 20:20
SanjaySMK6-Feb-06 20:20 
AnswerRe: Usage Count of a dll Pin
Bob Stanneveld6-Feb-06 21:09
Bob Stanneveld6-Feb-06 21:09 
AnswerRe: Usage Count of a dll Pin
Stephen Hewitt6-Feb-06 23:32
Stephen Hewitt6-Feb-06 23:32 
Bob's suggestion will work using shared memory. He's how I'd do it:
------------------------------------------------------------------

#include "stdafx.h"

#pragma data_seg("Shared")
LONG g_Count = 0;
#pragma data_seg()
#pragma comment(linker, "/SECTION:Shared,rws")

BOOL APIENTRY DllMain( HANDLE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
InterlockedIncrement(&g_Count);
break;

case DLL_PROCESS_DETACH:
InterlockedDecrement(&g_Count);
break;
}

return TRUE;
}

---------------

Note that the g_Count is in shared memory so take care to synchronise access.

Steve

QuestionDDX_Text(..) not getting generated by MFC?? Pin
aparnakishore6-Feb-06 19:42
aparnakishore6-Feb-06 19:42 
AnswerRe: DDX_Text(..) not getting generated by MFC?? Pin
-Dy7-Feb-06 4:02
-Dy7-Feb-06 4:02 
GeneralRe: DDX_Text(..) not getting generated by MFC?? Pin
aparnakishore7-Feb-06 18:35
aparnakishore7-Feb-06 18:35 
AnswerRe: DDX_Text(..) not getting generated by MFC?? Pin
Blake Miller7-Feb-06 6:20
Blake Miller7-Feb-06 6:20 
GeneralRe: DDX_Text(..) not getting generated by MFC?? Pin
aparnakishore7-Feb-06 18:38
aparnakishore7-Feb-06 18:38 
AnswerRe: DDX_Text(..) not getting generated by MFC?? Pin
aparnakishore7-Feb-06 19:07
aparnakishore7-Feb-06 19:07 
Questionchild windows (destroying controls in main window) Pin
nedimbakic6-Feb-06 19:33
nedimbakic6-Feb-06 19:33 
AnswerRe: child windows (destroying controls in main window) Pin
nedimbakic6-Feb-06 19:36
nedimbakic6-Feb-06 19:36 
AnswerRe: child windows (destroying controls in main window) Pin
Owner drawn6-Feb-06 19:42
Owner drawn6-Feb-06 19:42 
GeneralRe: child windows (destroying controls in main window) Pin
nedimbakic7-Feb-06 1:53
nedimbakic7-Feb-06 1:53 
GeneralRe: child windows (destroying controls in main window) Pin
Owner drawn7-Feb-06 16:44
Owner drawn7-Feb-06 16:44 
GeneralRe: child windows (destroying controls in main window) Pin
nedimbakic7-Feb-06 17:13
nedimbakic7-Feb-06 17:13 
GeneralRe: child windows (destroying controls in main window) Pin
Owner drawn7-Feb-06 17:16
Owner drawn7-Feb-06 17:16 
GeneralRe: child windows (destroying controls in main window) Pin
nedimbakic8-Feb-06 1:39
nedimbakic8-Feb-06 1:39 
QuestionHow too export MDI project FORMview contents to Powerpoint. Pin
star966-Feb-06 19:15
star966-Feb-06 19:15 
QuestionShowing file in edit control Pin
swaapu6-Feb-06 19:06
swaapu6-Feb-06 19:06 
AnswerRe: Showing file in edit control Pin
khan++6-Feb-06 19:44
khan++6-Feb-06 19:44 

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.