我在哪里放置代码? [英] Where do I put the code?

查看:103
本文介绍了我在哪里放置代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

下面是我正在编写的一个小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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆