|
原帖由 2011czmxbb52 于 2012-9-17 14:47 发表
就原来代码没变,加了个资源:两个对话框,一个版本信息表结果一堆错,输出(VS2005,按默认配置):
1>------ 已启动生成: 项目: bdf2hex, 配置: Release Win32 ------
1>正在编译...
1>ViewForm.cpp
1>d: ...
給你diff
- diff -U8 -r bdf2hex/bdf2hex/FormGui.h bdf2hex_/bdf2hex/FormGui.h
- --- bdf2hex/bdf2hex/FormGui.h 2012-09-17 14:27:38.218750000 +0800
- +++ bdf2hex_/bdf2hex/FormGui.h 2012-09-17 15:25:30.795750000 +0800
- @@ -1,10 +1,12 @@
- #pragma once
-
- +#include <afxdisp.h>
- +#include "stdafx.h"
-
- // FormGui 对话框
-
- class FormGui : public CDialog
- {
- DECLARE_DYNAMIC(FormGui)
-
- public:
- diff -U8 -r bdf2hex/bdf2hex/ViewForm.h bdf2hex_/bdf2hex/ViewForm.h
- --- bdf2hex/bdf2hex/ViewForm.h 2012-09-17 14:31:19.125000000 +0800
- +++ bdf2hex_/bdf2hex/ViewForm.h 2012-09-17 15:26:27.655125000 +0800
- @@ -1,10 +1,12 @@
- #pragma once
-
- +#include "stdafx.h"
- +#include <afxdisp.h>
-
- // ViewForm 对话框
-
- class ViewForm : public CDialog
- {
- DECLARE_DYNAMIC(ViewForm)
-
- public:
- diff -U8 -r bdf2hex/bdf2hex/bdf2hex.cpp bdf2hex_/bdf2hex/bdf2hex.cpp
- --- bdf2hex/bdf2hex/bdf2hex.cpp 2012-09-17 14:47:25.312500000 +0800
- +++ bdf2hex_/bdf2hex/bdf2hex.cpp 2012-09-17 15:28:28.108250000 +0800
- @@ -1,40 +1,40 @@
- // bdf2hex.cpp : 定义控制台应用程序的入口点。
- //
-
- #include "stdafx.h"
- -#include "FormGui.cpp"
- #include "FOrmGui.h"
- using namespace std;
- void usage();
- void a2A(char *);
-
-
- int main(int argc,char *argv[])
- {
- char *infile=NULL,*outfile=NULL;
- int letterskip=1,preview=0,moveleft=0,moveup=0;
- + FormGui FormGui;
- if(argc==1)
- {
- usage();
- return 1;
- }
- argc--;
- argv++;
- while(argc>0)
- {
- if(argv[0][0]=='-')
- {
- switch(argv[0][1])
- {
- case 'g':
- case 'G':
- - FormGui->Create(IDD_DIALOG1,NULL);
- - FormGui->ShowWindow(SW_SHOW);
- + FormGui.Create(IDD_DIALOG1,NULL);
- + FormGui.ShowWindow(SW_SHOW);
- case 's':
- case 'S':
- argc--;argv++;
- letterskip=0;
- break;
- case 'p':
- case 'P':
- argc--;argv++;
- diff -U8 -r bdf2hex/bdf2hex/stdafx.h bdf2hex_/bdf2hex/stdafx.h
- --- bdf2hex/bdf2hex/stdafx.h 2012-09-17 11:58:10.046875000 +0800
- +++ bdf2hex_/bdf2hex/stdafx.h 2012-09-17 15:25:21.748875000 +0800
- @@ -14,11 +14,14 @@
-
- // TODO: 在此处引用程序需要的其他头文件
- #include <iostream>
- #include <fstream>
- #include <string>
- #include <iomanip>
- #include <afxwin.h>
- #include <windows.h>
- +
- +#include "resource.h"
- +
- //#define _itoa_s _itoa
- //#define strcat_s strcat
- //#define strcpy_s strcpy
- \ No newline at end of file
复制代码 |
|