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

C / C++ / MFC

 
GeneralRe: Access CFormView vars from CMainFrame Pin
ian mariano26-Feb-04 1:02
ian mariano26-Feb-04 1:02 
GeneralString Question Pin
USMCmaggot25-Feb-04 11:29
USMCmaggot25-Feb-04 11:29 
GeneralRe: String Question Pin
Daniel132425-Feb-04 11:46
Daniel132425-Feb-04 11:46 
GeneralRe: String Question Pin
Wes Aday25-Feb-04 11:53
professionalWes Aday25-Feb-04 11:53 
GeneralHeapAlloc bombing Pin
TimWallace25-Feb-04 11:26
TimWallace25-Feb-04 11:26 
GeneralRe: HeapAlloc bombing Pin
Ravi Bhavnani25-Feb-04 12:15
professionalRavi Bhavnani25-Feb-04 12:15 
GeneralRe: HeapAlloc bombing SOLVED Pin
TimWallace26-Feb-04 5:16
TimWallace26-Feb-04 5:16 
GeneralCalling MFC from managed C++ Pin
jbmeeh25-Feb-04 10:41
jbmeeh25-Feb-04 10:41 
I have defined a managed C++ project to call into an unmanaged MFC project. The MFC project builds successfully. However, the build of the managed project fails because the linker cannot resolve the external symbols for the methods defined in the unmanaged class. Attached is the class definition for the managed class:

public __gc class MTracker
{
public:
MTracker(Control* pControl,Control* cControl)
{
m_CTracker = new CComTrackerApp();
IntPtr pPtr = pControl->Handle;
IntPtr cPtr = cControl->Handle;
HWND pHwnd = (HWND)pPtr.ToPointer();
HWND cHwnd = (HWND)cPtr.ToPointer();
m_CTracker->Create(pHwnd,cHwnd);
}
protected:
void Dispose(bool b)
{
MTracker::Dispose(b);

if (m_CTracker != NULL)
{
delete m_CTracker;
m_CTracker = NULL;
}
}
private:
CComTrackerApp* m_CTracker;
};

The CCOMTrackerAPP class is defined in the MFC project. The linker cannot resolve the addresses for CComTracker::CComTracker() or CComTracker::Create(HWND pHwnd,HWND cHwnd). Any suggestions would be appreciated.

GeneralMSDN Pin
v0id_dev25-Feb-04 10:30
v0id_dev25-Feb-04 10:30 
GeneralRe: MSDN Pin
ian mariano25-Feb-04 12:23
ian mariano25-Feb-04 12:23 
QuestionRandom number? Pin
LudaLuda25-Feb-04 9:56
LudaLuda25-Feb-04 9:56 
AnswerRe: Random number? Pin
Christian Graus25-Feb-04 10:12
protectorChristian Graus25-Feb-04 10:12 
AnswerRe: Random number? Pin
John M. Drescher25-Feb-04 11:13
John M. Drescher25-Feb-04 11:13 
GeneralCalcFixedLayout and CalcDynamicLayout Pin
ozamgal25-Feb-04 9:06
ozamgal25-Feb-04 9:06 
GeneralMicrosoft SDK/DDK for AMD64 Pin
Alexander M.,25-Feb-04 9:04
Alexander M.,25-Feb-04 9:04 
GeneralRe: Microsoft SDK/DDK for AMD64 [EDITED] Pin
John M. Drescher25-Feb-04 11:19
John M. Drescher25-Feb-04 11:19 
GeneralRe: Microsoft SDK/DDK for AMD64 Pin
John M. Drescher25-Feb-04 11:25
John M. Drescher25-Feb-04 11:25 
GeneralCheat Pin
Anonymous25-Feb-04 6:00
Anonymous25-Feb-04 6:00 
GeneralRe: Cheat Pin
Shog925-Feb-04 6:18
sitebuilderShog925-Feb-04 6:18 
GeneralRe: Cheat Pin
Prakash Nadar25-Feb-04 6:32
Prakash Nadar25-Feb-04 6:32 
GeneralRe: Cheat Pin
LunaticFringe25-Feb-04 7:14
LunaticFringe25-Feb-04 7:14 
GeneralRe: Cheat Pin
Maximilien25-Feb-04 6:18
Maximilien25-Feb-04 6:18 
GeneralRe: Cheat Pin
l a u r e n25-Feb-04 6:48
l a u r e n25-Feb-04 6:48 
GeneralRe: Cheat Pin
Alexander M.,25-Feb-04 9:02
Alexander M.,25-Feb-04 9:02 
GeneralRe: Cheat Pin
Shog925-Feb-04 9:19
sitebuilderShog925-Feb-04 9:19 

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.