我在哪里放置代码? [英] Where do I put the code?
问题描述
下面是我正在编写的一个小DLL的代码体.我在哪里放置代码?这是来自VS2010中的Processor.cpp.
Below is the body of code for a small DLL I'm writing. Where do I put the code? This is from Processor.cpp in VS2010.
CProcessorApp :: CProcessorApp()
CProcessorApp::CProcessorApp()
{
//TODO:在此处添加构造代码,
//将所有重要的初始化都放在InitInstance中
}
//唯一的CProcessorApp对象
// The one and only CProcessorApp object
CProcessorApp theApp;
CProcessorApp theApp;
//CProcessorApp初始化
// CProcessorApp initialization
BOOL CProcessorApp :: InitInstance()
BOOL CProcessorApp::InitInstance()
{
CWinApp :: InitInstance();
CWinApp::InitInstance();
返回
return
TRUE;
TRUE;
}
推荐答案
我认为您应该创建MFC DLL并选择常规". DLL的类型.称之为处理器"和巫师 将生成
I thing that you should create an MFC DLL and select the ‘Regular’ type of DLL. Call it “Processor” and the Wizard will generate the CProcessorApp class.
这篇关于我在哪里放置代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!