Click here to Skip to main content
15,878,113 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Remote COM Pin
CPallini2-Mar-09 1:57
mveCPallini2-Mar-09 1:57 
GeneralRe: Remote COM Pin
RevathiRamakumar3-Mar-09 16:50
RevathiRamakumar3-Mar-09 16:50 
GeneralRe: Remote COM Pin
RevathiRamakumar3-Mar-09 22:09
RevathiRamakumar3-Mar-09 22:09 
GeneralRe: Remote COM Pin
CPallini3-Mar-09 22:35
mveCPallini3-Mar-09 22:35 
GeneralRe: Remote COM Pin
RevathiRamakumar3-Mar-09 22:50
RevathiRamakumar3-Mar-09 22:50 
GeneralRe: Remote COM Pin
RevathiRamakumar4-Mar-09 17:49
RevathiRamakumar4-Mar-09 17:49 
QuestionDHTML dialouge class F1 (help info) Pin
coding_ram1-Mar-09 22:42
coding_ram1-Mar-09 22:42 
QuestionEnable MFC in Win32 DLL Pin
PankajB1-Mar-09 21:44
PankajB1-Mar-09 21:44 
Hi there.

I have created a Win32 DLL using VS2008.
Now, i want to use CString in code file lets say in dllmail.cpp

// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"


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

	<code>CString str;</code>

	return TRUE;
}


I know that I need to include afx.h file and need to set "Use of MFC" option to Shared or Static linking, but still its not working.

Please suggest.
1. Where exactly I need to include afx,h file.
2. I can set "Use of MFC" option to Shared or Static linking or I need to use specific option.

Thanks
PanB
AnswerRe: Enable MFC in Win32 DLL Pin
Cedric Moonen1-Mar-09 21:47
Cedric Moonen1-Mar-09 21:47 
GeneralRe: Enable MFC in Win32 DLL Pin
PankajB1-Mar-09 21:50
PankajB1-Mar-09 21:50 
AnswerRe: Enable MFC in Win32 DLL Pin
«_Superman_»1-Mar-09 21:51
professional«_Superman_»1-Mar-09 21:51 
GeneralRe: Enable MFC in Win32 DLL Pin
PankajB1-Mar-09 21:56
PankajB1-Mar-09 21:56 
Questionstring to hex number Pin
lune121-Mar-09 20:50
lune121-Mar-09 20:50 
AnswerRe: string to hex number Pin
grassrootkit1-Mar-09 21:13
grassrootkit1-Mar-09 21:13 
AnswerRe: string to hex number Pin
Cedric Moonen1-Mar-09 21:22
Cedric Moonen1-Mar-09 21:22 
AnswerRe: string to hex number Pin
Stuart Dootson1-Mar-09 21:26
professionalStuart Dootson1-Mar-09 21:26 
AnswerRe: string to hex number Pin
CPallini1-Mar-09 22:49
mveCPallini1-Mar-09 22:49 
AnswerRe: string to hex number Pin
cmk2-Mar-09 8:46
cmk2-Mar-09 8:46 
QuestionCut the wmv movie Using Directshow editing services Pin
raj15761-Mar-09 19:37
raj15761-Mar-09 19:37 
Questionmultilingual support Pin
Varun Bhatt1-Mar-09 19:30
Varun Bhatt1-Mar-09 19:30 
AnswerRe: multilingual support Pin
Hamid_RT1-Mar-09 19:57
Hamid_RT1-Mar-09 19:57 
Question2 Doc & 2 Views. Pin
grassrootkit1-Mar-09 19:26
grassrootkit1-Mar-09 19:26 
AnswerRe: 2 Doc & 2 Views. Pin
Stuart Dootson1-Mar-09 21:37
professionalStuart Dootson1-Mar-09 21:37 
GeneralRe: 2 Doc & 2 Views. Pin
grassrootkit1-Mar-09 22:40
grassrootkit1-Mar-09 22:40 
GeneralRe: 2 Doc & 2 Views. Pin
Stuart Dootson1-Mar-09 23:12
professionalStuart Dootson1-Mar-09 23:12 

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.