如题。
大家帮忙!
大家帮忙!
解决方案 »
- 谁懂ecw文件的啊
- dll中虚函数的析构问题,请高手来看看
- 我用getdate()精确到分秒了,可我只想要年月日,默认值应该用什么呀?
- MFC适合在那方面的开发?现在学,没过时吧?
- com成本问题
- 怎样编程实现mpeg2(DVD)格式转化为mpeg4!!!!!!
- 最简单DirectX程序出错
- 如何在对话框中输入命令实现对图形的命令操作(如输入x=2,y=2对话框右边出现2*2阶组合图即4个小缩略图)?本人现在做的是液晶拼接控制软件
- 赋值出错!
- VC如何将串口读取的数据存入access中呢?
- 客户端向服务器传输大量文件(文件个数多,每个文件的数据传输是杂乱的),服务器将文件写入磁盘,大侠们有什么好的方法吗?
- 请教一下Window XP sp2的Windows 安全中心的编程
有人问类似的问题但是斑竹不知道!
斑竹建议去microsoft platform sdk msi newgroup 找rich, 说他是msi和dxshow两方面的专家
但是我没找到这个新闻组,衰阿!
prototype BOOL setupapi.SetupCopyOEMInfA(STRING
,LPSTR
,NUMBER,NUMBER,LPSTR
,NUMBER,NUMBER,POINTER
);prototype BOOL kernel32.DeleteFileA(
STRING // file name
);// ---- script function prototypes -----
///////////////////////////////////////////////
It support all platform,also support win2000//install inf.
function UKey1000_Installed()
NUMBER nvResult;
STRING svResult;
STRING szDllName;
LPSTR szBuf;
NUMBER size;
BOOL bCopy;
BOOL bDelete;
begin
//////////////////////////////////////////////
GetSystemInfo (OS,nvResult,svResult); //Get system Operation system type
//Disable the component that not for windowsNT or Win2000
if (nvResult = IS_WINDOWSNT) then
// XCopyFile (SUPPORTDIR^"xx.inf",WINDIR^"inf",COMP_NORMAL|LOCKEDFILE);
szDllName = WINSYSDIR^"setupapi.dll";
UseDLL(szDllName);
bCopy =SetupCopyOEMInfA(SUPPORTDIR^"xx.inf",NULL,0,8,NULL,0,0,NULL) ;
UnUseDLL(szDllName);
endif;
if (nvResult = IS_WINDOWS9X) then
bCopy=XCopyFile (SUPPORTDIR^"xxx.sys",WINDIR^"system32\\drivers",COMP_NORMAL|LOCKEDFILE);
bCopy=XCopyFile (SUPPORTDIR^"UKEY.inf",WINDIR^"inf",COMP_NORMAL|LOCKEDFILE);
szDllName = WINSYSDIR^"kernel32.dll";
UseDLL(szDllName);
DeleteFileA(WINDIR^"Inf\\Drvidx.bin");
bDelete =DeleteFileA(WINDIR^"Inf\\Drvdata.bin");
UnUseDLL(szDllName);
endif;
提示;
error C8025: 'SetupCopyOEMInfA' : undefined identifier
,LPSTR
,NUMBER,NUMBER,LPSTR
,NUMBER,NUMBER,POINTER
);
这是怎么回事恩
error C8003: 'UKey1000_Installed' : function has no prototype declaration
warning W7511: 'GetSupportDir' : string literal passed as BYREF, change prototype to use BYVAL
error C8101: 'DeleteFileA' : must specify DLL for this function
warning W7511: 'GetWinDir' : string literal passed as BYREF, change prototype to use BYVAL
error C8101: 'DeleteFileA' : must specify DLL for this function
warning W7511: 'GetWinDir' : string literal passed as BYREF, change prototype to use BYVAL
STRING // file name
);
放头文件
UKey1000_Installed是组件安装之后的installed处理,你也可以写在OnFirstUIAfter
我把dll prototype 声明放在
// ----- DLL function prototypes -----
// your DLL function prototypes
。。这里UKey1000_Installed写在OnFirstUIAfter函数后
这里是否有问题
if (nvResult = IS_WINDOWSNT) then
// XCopyFile (SUPPORTDIR^"xx.inf",WINDIR^"inf",COMP_NORMAL|LOCKEDFILE);
szDllName = WINSYSDIR^"setupapi.dll";
UseDLL(szDllName);
bCopy =SetupCopyOEMInfA(SUPPORTDIR^"xx.inf",NULL,0,8,NULL,0,0,NULL) ;
UnUseDLL(szDllName);
endif;
SYS文件不处理了吗?