Pechi
July 28th, 2003, 11:38 PM
typedef BOOL (*FUNC)(PASPI32BUFF);
//...
FUNC pfnGetASPI32Buffer;
pfnGetASPI32Buffer = (FUNC)GetProcAddress(hinstWNASPI32,"GetASPI32Buffer");
// Allocation 128KB Buffer
ASPI32BUFF ab;
memset(&ab,0,sizeof(ASPI32BUFF));
ab.AB_BufLen=131072lu;
ab.AB_ZeroFill=1;
//ab.AB_Reserved=0;
if(!GetASPI32Buffer(&ab))
{/*GetASPI32Buffer Fail*/}
I want Allocates 128KB Buffer for use with ASPI.
But Link error....
--------------------Configuration: x1 - Win32 Debug--------------------
Compiling...
x1.cpp
Linking...
x1.obj : error LNK2001: unresolved external symbol _GetASPI32Buffer
Debug/x1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
x1.exe - 2 error(s), 0 warning(s)
I need DMA transfer Data,so i use ASPI Function
(GetASPI32Buffer),but VC++ display "unresolved
external symbol GetASPI32Buffer"..........
it's ment my WNASPI32.LIB no GetASPI32Buffer Function?
where can get WNASPI32.LIB have GetASPI32Buffer Function?
if no need get NEW WNASPI32.LIB ,
who can teach me experience of ASPI GetASPI32Buffer?
thx~
Peichi Hung
:confused:
//...
FUNC pfnGetASPI32Buffer;
pfnGetASPI32Buffer = (FUNC)GetProcAddress(hinstWNASPI32,"GetASPI32Buffer");
// Allocation 128KB Buffer
ASPI32BUFF ab;
memset(&ab,0,sizeof(ASPI32BUFF));
ab.AB_BufLen=131072lu;
ab.AB_ZeroFill=1;
//ab.AB_Reserved=0;
if(!GetASPI32Buffer(&ab))
{/*GetASPI32Buffer Fail*/}
I want Allocates 128KB Buffer for use with ASPI.
But Link error....
--------------------Configuration: x1 - Win32 Debug--------------------
Compiling...
x1.cpp
Linking...
x1.obj : error LNK2001: unresolved external symbol _GetASPI32Buffer
Debug/x1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
x1.exe - 2 error(s), 0 warning(s)
I need DMA transfer Data,so i use ASPI Function
(GetASPI32Buffer),but VC++ display "unresolved
external symbol GetASPI32Buffer"..........
it's ment my WNASPI32.LIB no GetASPI32Buffer Function?
where can get WNASPI32.LIB have GetASPI32Buffer Function?
if no need get NEW WNASPI32.LIB ,
who can teach me experience of ASPI GetASPI32Buffer?
thx~
Peichi Hung
:confused: