Click here to Skip to main content
15,503,177 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: help me ... i have some errors Pin
Stuart Dootson8-Apr-09 12:01
professionalStuart Dootson8-Apr-09 12:01 
Questionproblems with converting from string to int Pin
Aljaz1118-Apr-09 11:32
Aljaz1118-Apr-09 11:32 
AnswerRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 11:57
professionalStuart Dootson8-Apr-09 11:57 
GeneralRe: problems with converting from string to int Pin
Aljaz1118-Apr-09 12:26
Aljaz1118-Apr-09 12:26 
GeneralRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 13:00
professionalStuart Dootson8-Apr-09 13:00 
GeneralRe: problems with converting from string to int Pin
Aljaz1118-Apr-09 13:31
Aljaz1118-Apr-09 13:31 
GeneralRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 13:46
professionalStuart Dootson8-Apr-09 13:46 
QuestionWhy DllMain is not be called when I load the DLL file? Pin
ernst200205308-Apr-09 10:16
ernst200205308-Apr-09 10:16 
// DLL10.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include "DLL10.h"

static HHOOK hHook = NULL;

static HINSTANCE hInst;


BOOL APIENTRY DllMain( HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
hInst = hModule;
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
case DLL_THREAD_ATTACH:
case DLL_THREAD_DETACH:
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}


// This is an example of an exported variable
DLL10_API int nDLL10=0;

// This is an example of an exported function.
DLL10_API int fnDLL10(void)
{
return 42;
}

// This is the constructor of a class that has been exported.
// see DLL10.h for the class definition
CDLL10::CDLL10()
{
return;
}


int getNumber()
{
return 1;
}

This is my DLL file, and When I load the file, DLLMain is not called?
AnswerRe: Why DllMain is not be called when I load the DLL file? Pin
Stuart Dootson8-Apr-09 10:22
professionalStuart Dootson8-Apr-09 10:22 
JokeRe: Why DllMain is not be called when I load the DLL file? Pin
CPallini8-Apr-09 11:12
mveCPallini8-Apr-09 11:12 
GeneralRe: Why DllMain is not be called when I load the DLL file? Pin
ernst200205308-Apr-09 13:37
ernst200205308-Apr-09 13:37 
GeneralRe: Why DllMain is not be called when I load the DLL file? Pin
Stuart Dootson8-Apr-09 14:22
professionalStuart Dootson8-Apr-09 14:22 
QuestionDetecting Windows SDK version using macros Pin
tareqsiraj8-Apr-09 8:01
tareqsiraj8-Apr-09 8:01 
AnswerRe: Detecting Windows SDK version using macros Pin
Stuart Dootson8-Apr-09 9:38
professionalStuart Dootson8-Apr-09 9:38 
GeneralRe: Detecting Windows SDK version using macros Pin
tareqsiraj8-Apr-09 10:00
tareqsiraj8-Apr-09 10:00 
GeneralRe: Detecting Windows SDK version using macros Pin
Stuart Dootson8-Apr-09 10:20
professionalStuart Dootson8-Apr-09 10:20 
GeneralRe: Detecting Windows SDK version using macros Pin
tareqsiraj8-Apr-09 10:53
tareqsiraj8-Apr-09 10:53 
AnswerRe: Detecting Windows SDK version using macros Pin
Randor 9-Apr-09 2:12
professional Randor 9-Apr-09 2:12 
GeneralRe: Detecting Windows SDK version using macros Pin
tareqsiraj9-Apr-09 8:35
tareqsiraj9-Apr-09 8:35 
QuestionNew Thread and WM_QUIT Pin
TheScientistIsDead8-Apr-09 8:00
TheScientistIsDead8-Apr-09 8:00 
AnswerRe: New Thread and WM_QUIT Pin
Stuart Dootson8-Apr-09 9:29
professionalStuart Dootson8-Apr-09 9:29 
GeneralRe: New Thread and WM_QUIT Pin
TheScientistIsDead8-Apr-09 17:44
TheScientistIsDead8-Apr-09 17:44 
GeneralRe: New Thread and WM_QUIT Pin
Stuart Dootson8-Apr-09 21:10
professionalStuart Dootson8-Apr-09 21:10 
AnswerRe: New Thread and WM_QUIT Pin
Roger Stoltz8-Apr-09 22:31
Roger Stoltz8-Apr-09 22:31 
QuestionSetting REG_MULTI_SZ value Pin
csrss8-Apr-09 6:17
csrss8-Apr-09 6: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.