Click here to Skip to main content
15,908,673 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to use GDI+ 1.1? Pin
amurgshere10-May-11 2:17
amurgshere10-May-11 2:17 
GeneralRe: How to use GDI+ 1.1? Pin
Iain Clarke, Warrior Programmer10-May-11 2:46
Iain Clarke, Warrior Programmer10-May-11 2:46 
QuestionHow can I delete a file after conversion to another format? Pin
002comp8-Apr-09 18:47
002comp8-Apr-09 18:47 
AnswerRe: How can I delete a file after conversion to another format? Pin
«_Superman_»8-Apr-09 19:26
professional«_Superman_»8-Apr-09 19:26 
GeneralRe: How can I delete a file after conversion to another format? Pin
002comp8-Apr-09 20:14
002comp8-Apr-09 20:14 
AnswerRe: How can I delete a file after conversion to another format? Pin
Eytukan8-Apr-09 19:31
Eytukan8-Apr-09 19:31 
GeneralRe: How can I delete a file after conversion to another format? Pin
002comp8-Apr-09 21:16
002comp8-Apr-09 21:16 
QuestionCRichEditCtrl subclass [modified] Pin
vijayarani8-Apr-09 16:24
vijayarani8-Apr-09 16:24 
AnswerRe: CRichEditCtrl subclass Pin
«_Superman_»8-Apr-09 20:07
professional«_Superman_»8-Apr-09 20:07 
QuestionCan we invoke any event as a Mouse Left/Right button action? Pin
THAQCD8-Apr-09 16:07
THAQCD8-Apr-09 16:07 
AnswerRe: Can we invoke any event as a Mouse Left/Right button action? Pin
Jijo.Raj8-Apr-09 18:04
Jijo.Raj8-Apr-09 18:04 
GeneralRe: Can we invoke any event as a Mouse Left/Right button action? Pin
THAQCD9-Apr-09 8:18
THAQCD9-Apr-09 8:18 
Questionhelp me ... i have some errors Pin
kiemxai8-Apr-09 10:37
kiemxai8-Apr-09 10:37 
AnswerRe: help me ... i have some errors Pin
Stuart Dootson8-Apr-09 11:01
professionalStuart Dootson8-Apr-09 11:01 
Questionproblems with converting from string to int Pin
Aljaz1118-Apr-09 10:32
Aljaz1118-Apr-09 10:32 
AnswerRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 10:57
professionalStuart Dootson8-Apr-09 10:57 
GeneralRe: problems with converting from string to int Pin
Aljaz1118-Apr-09 11:26
Aljaz1118-Apr-09 11:26 
GeneralRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 12:00
professionalStuart Dootson8-Apr-09 12:00 
GeneralRe: problems with converting from string to int Pin
Aljaz1118-Apr-09 12:31
Aljaz1118-Apr-09 12:31 
GeneralRe: problems with converting from string to int Pin
Stuart Dootson8-Apr-09 12:46
professionalStuart Dootson8-Apr-09 12:46 
QuestionWhy DllMain is not be called when I load the DLL file? Pin
ernst200205308-Apr-09 9:16
ernst200205308-Apr-09 9: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 9:22
professionalStuart Dootson8-Apr-09 9:22 
JokeRe: Why DllMain is not be called when I load the DLL file? Pin
CPallini8-Apr-09 10:12
mveCPallini8-Apr-09 10:12 
GeneralRe: Why DllMain is not be called when I load the DLL file? Pin
ernst200205308-Apr-09 12:37
ernst200205308-Apr-09 12:37 
GeneralRe: Why DllMain is not be called when I load the DLL file? Pin
Stuart Dootson8-Apr-09 13:22
professionalStuart Dootson8-Apr-09 13:22 

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.