Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error calling API function

Status
Not open for further replies.

ByzantianX

Programmer
Dec 18, 2000
103
I'm using Access 2.0 and whenever I try to call API function
GetVolumeInformation I'm getting message "error loading DLL".There was no error in declaring or passing the parameters for the function, that very same function works within Access 2000 or Visual Basic6. Is there any idea what might be wrong?
 
Are you trying to reference the GetVolumeInfo from "Kernel32" as in :
Code:
Declare Function GetVolumeInformation Lib "kernel32"...
?

It may well be that if you are....Acc2.0 cannot handle the 32bit API call being that it is a 16bit app.

Just a thought...I may be wrong though...never tried it mayself!

birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Well, yes, I supposed so to... I put:
Declare Function GetVolumeInformation Lib &quot;Kernel&quot; and then I got the message &quot;Sub or Function not defined&quot;...Like John Travolta said in &quot;Swordfish&quot;:&quot;Life is stranger than fiction, sometimes&quot;
 
Of course, I did it, but then I got a message &quot;Error loading DLL&quot;...No help, I guess
 
Is the DLL registered?

Click <Start>, <Run> aand enter:

regsvr32.exe &quot;c:\windows\system\DLLFILE.dll&quot; and click <OK>

Subsitute the path and file name of the DLL in question! birklea ~©¿©~ <><
I know what I know...don't presume that I know what I don't! Smithism!!!
 
Well, I suppose Kernel32.dll must be registered
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top