Click to See Complete Forum and Search --> : Error 453 - Can't find DLL entry point in kernel32


dg1126
November 24th, 1999, 05:02 PM
Would someone please help me with this:

I tried to use a simple API GetCurrentDirectory (after used API viewer to copy it to my module),
and run the program with only a call to that function, it failed with error 453, "Failed to find a DLL entry point in kernel32" .
How to solve this ?
Thanks.

Lothar Haensler
November 25th, 1999, 01:40 AM
use VB's builtin CurDir function.

Lothar Haensler
November 25th, 1999, 01:41 AM
...or use the CORRECT declare statement
Private Declare Function GetCurrentDirectory Lib "kernel32" Alias "GetCurrentDirectoryA" (ByVal nBufferLength As Long, ByVal lpBuffer As String) As Long

the APIViewer declare is wrong! Alias is incorrect