在控制台建立工程过程中会有提示:是否建立一个有MFC类库支持的工程 或者包含头文件 #include <afx.h> #include <afxwin.h> // MFC core and standard components #include <afxext.h> // MFC extensions #include <afxdtctl.h> // MFC support for IE4 #include <afxcmn.h> // MFC support for common ctrls
to:javalife(java is love) 您的意思也就是在c++源文件里加上5个头文件就行了?? 那么所有api也能用??
呵呵,是啊 让我做一个函数,直接输入ip,user,password,文件,目标文件夹 上传文件
建一个console application工程,在project setting对话框中选use MFC as shared library,然后在CPP文件中include <afxwin.h>就可以使用CString类了。
各位过去做过吗???
我做的这个就是在vc中创建一个c++源文件,然后在里面编写,因为想用mfc类库
过去没这么做过
怕出错,所以请教各位
再请你举个如何才能使用cfilefind的例子
那我用api行吧???
如InternetOpen
要不要添加什么呢????
#include <afxwin.h>
#include <afxext.h>
#include <afxdisp.h>
#include <afxdtctl.h
#include <afxcmn.h>
我都把自己搞晕了
或者包含头文件
#include <afx.h>
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdtctl.h> // MFC support for IE4
#include <afxcmn.h> // MFC support for common ctrls
您的意思也就是在c++源文件里加上5个头文件就行了??
那么所有api也能用??
让我做一个函数,直接输入ip,user,password,文件,目标文件夹
上传文件
我现在所做的是ftp上传程序
要求是
嵌入他人程序
也就是最好做成个很大的函数,或者是类,他只是给我提出这个要求,只要他设置端口啊,地址啊,文件名啊,目标文件夹,就能上传文件
照我现在的想法,我只能在一般的c++源文件里写了也就是,我只能做个函数,不能做个带界面的程序
给个建议
急啊~
是不是每次要调用一定的api,就需要把定义它的头文件加进来?
那怎么知道某个api的定义呢我会另外加分的
谢谢先