阅读:1121回复:0
about dll
1)我用DLL实现对硬盘读写
BOOL FAR PASCAL Readsector(BYTE bDrive,LPBYTE lpBuff,DWORD cbBufferSize); interreptexport BOOL WINAPI CallReadSector() { char lpBuff[512]; BOOL fResult; fResult=Readsector(0x81,(LPBYTE)lpBuff,512); if(fResult) { } return fResult; } 编译时出现以下错误: Creating library Debug/1.lib and object Debug/1.exp 1.obj : error LNK2001: unresolved external symbol "int __stdcall Readsector(unsigned char,unsigned char *,unsigned long)" (?Readsector@@YGHEPAEK@Z) Debug/1.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. 1.dll - 2 error(s), 0 warning(s) 为什么?程序是MSDN例程 2)请问该方法是否可以实现对WINDOWS不认识的硬盘的绝对读取? 3)如果用VXD是否必须转到V86模式下实现DOS和BIOS中断调用? 该如何调用中断》 谢谢! |
|
|