CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Posts
    14

    Error 453 - Can't find DLL entry point in kernel32

    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.



  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Error 453 - Can't find DLL entry point in kernel32

    use VB's builtin CurDir function.


  3. #3
    Join Date
    May 1999
    Posts
    3,332

    Re: Error 453 - Can't find DLL entry point in kernel32

    ...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



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured