这是个 静态MFC DLL文件,要读取当前目录下INI文件;#include "stdafx.h"
#include "kdll.h"
#include <iostream.h>
#include <windows.h>#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endifCKdllApp theApp;char pro[16];::GetPrivateProfileString("Kill","process",NULL, pro,sizeof(pro),"\\config.ini");
错误提示:
error C2501: 'GetPrivateProfileStringA' : missing storage-class or type specifiers
unable to recover from previous error(s); stopping compilation
#include "kdll.h"
#include <iostream.h>
#include <windows.h>#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endifCKdllApp theApp;char pro[16];::GetPrivateProfileString("Kill","process",NULL, pro,sizeof(pro),"\\config.ini");
错误提示:
error C2501: 'GetPrivateProfileStringA' : missing storage-class or type specifiers
unable to recover from previous error(s); stopping compilation
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货