I'm working on an e-mail app in c++ using .net, and I've run into a problem I can't seem to solve. I'm trying to implement some controller classes. The top chunk is my .h file, the bottom the .cpp file. The errors I'm getting are:
'ComposeMail' : undeclared identifier
'email' : undeclared identifier
syntax error : identifier 'ComposeMail'
It's almost like my include statements aren't working.
Header:
#pragma once
#include "ComposeMail.h"
class MainWindowController{
public:
MainWindowController(void);
void ComposeClick(void);
};
Implementation:
#include "StdAfx.h"
#include "MainWindowController.h"
MainWindowController::MainWindowController(void)
{
}
void MainWindowController::ComposeClick(void){
ComposeMail^ email = gcnew ComposeMail();
}