Click here to Skip to main content
15,913,310 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: single instance Pin
Ravi Bhavnani22-Jun-05 12:50
professionalRavi Bhavnani22-Jun-05 12:50 
GeneralRe: single instance Pin
Blake Miller22-Jun-05 12:51
Blake Miller22-Jun-05 12:51 
QuestionHandle right click on combo box? Pin
jaycush22-Jun-05 11:09
jaycush22-Jun-05 11:09 
GeneralHelp - rundll32 missing entry?! Pin
lewislewis_lewis22-Jun-05 10:31
lewislewis_lewis22-Jun-05 10:31 
GeneralRe: Help - rundll32 missing entry?! Pin
Blake Miller22-Jun-05 12:28
Blake Miller22-Jun-05 12:28 
GeneralDump result: (_Fun1@16), but _Fun1@16 can not call also?! Pin
lewislewis_lewis22-Jun-05 12:44
lewislewis_lewis22-Jun-05 12:44 
GeneralRe: Dump result: (_Fun1@16), but _Fun1@16 can not call also?! Pin
Blake Miller22-Jun-05 12:58
Blake Miller22-Jun-05 12:58 
GeneralI cretae the project by Visuasal Stadio Vizard Pin
lewislewis_lewis22-Jun-05 13:17
lewislewis_lewis22-Jun-05 13:17 
I cretae the project by Visuasal Stadio Vizard.
New=>MFC DLL=>... See the file


// MyDll.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"
#include "MyDll.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

//
// Note!
//
// If this DLL is dynamically linked against the MFC
// DLLs, any functions exported from this DLL which
// call into MFC must have the AFX_MANAGE_STATE macro
// added at the very beginning of the function.
//
// For example:
//
// extern "C" BOOL PASCAL EXPORT ExportedFunction()
// {
// AFX_MANAGE_STATE(AfxGetStaticModuleState());
// // normal function body here
// }
//
// It is very important that this macro appear in each
// function, prior to any calls into MFC. This means that
// it must appear as the first statement within the
// function, even before any object variable declarations
// as their constructors may generate calls into the MFC
// DLL.
//
// Please see MFC Technical Notes 33 and 58 for additional
// details.
//

/////////////////////////////////////////////////////////////////////////////
// CMyDllApp

BEGIN_MESSAGE_MAP(CMyDllApp, CWinApp)
//{{AFX_MSG_MAP(CMyDllApp)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CMyDllApp construction

CMyDllApp::CMyDllApp()
{
// TODO: add construction code here,
// Place all significant initialization in InitInstance
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CMyDllApp object

CMyDllApp theApp;


extern "C" __declspec(dllexport) void CALLBACK Fun1(HWND,
HINSTANCE,
LPTSTR lpCmdLine,
int)
{
int i;
i = 1;
}

GeneralRe: Help - rundll32 missing entry?! Pin
Blake Miller23-Jun-05 3:51
Blake Miller23-Jun-05 3:51 
GeneralRe: Temporary files Pin
David Crow22-Jun-05 9:41
David Crow22-Jun-05 9:41 
GeneralRe: Temporary files Pin
ThatsAlok22-Jun-05 18:40
ThatsAlok22-Jun-05 18:40 
QuestionRegistry - case sensitive? Pin
dandy7222-Jun-05 9:15
dandy7222-Jun-05 9:15 
AnswerRe: Registry - case sensitive? Pin
David Crow22-Jun-05 9:35
David Crow22-Jun-05 9:35 
AnswerRe: Registry - case sensitive? Pin
ThatsAlok22-Jun-05 19:07
ThatsAlok22-Jun-05 19:07 
GeneralCharacter Encodings Pin
Jack Puppy22-Jun-05 8:45
Jack Puppy22-Jun-05 8:45 
GeneralRe: Character Encodings Pin
David Crow22-Jun-05 9:11
David Crow22-Jun-05 9:11 
GeneralRe: Character Encodings Pin
Jack Puppy22-Jun-05 9:52
Jack Puppy22-Jun-05 9:52 
GeneralRe: Character Encodings Pin
Jose Lamas Rios22-Jun-05 16:02
Jose Lamas Rios22-Jun-05 16:02 
GeneralDraging buttons at runtime in a dialog Pin
Member 206342622-Jun-05 8:08
Member 206342622-Jun-05 8:08 
GeneralRe: Draging buttons at runtime in a dialog Pin
Wes Aday22-Jun-05 9:24
professionalWes Aday22-Jun-05 9:24 
GeneralRe: Draging buttons at runtime in a dialog Pin
Member 206342622-Jun-05 11:04
Member 206342622-Jun-05 11:04 
GeneralCTreeCtrl Pin
bkphat22-Jun-05 7:54
bkphat22-Jun-05 7:54 
GeneralCheck if file is open Pin
kani9822-Jun-05 7:31
kani9822-Jun-05 7:31 
GeneralRe: Check if file is open Pin
David Crow22-Jun-05 7:53
David Crow22-Jun-05 7:53 
GeneralRe: Check if file is open Pin
Toby Opferman22-Jun-05 9:08
Toby Opferman22-Jun-05 9:08 

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.