Announcement

Collapse
No announcement yet.

Uncapitalized procedure names

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Uncapitalized procedure names

    If I compile this dll (as c:\my_dll.dll) --


    #COMPILE DLL

    SUB try_this ALIAS "try_this" () EXPORT

    MSGBOX "inside dll"

    END SUB


    and this exe --

    #COMPILE EXE

    DECLARE SUB try_this LIB "c:\my_dll.dll" ()



    FUNCTION PBMAIN() AS LONG

    CALL try_this()

    END FUNCTION



    then when I try to run the .exe, I get the error msg --

    "The procedure enty point TRY_THIS could not be located in the
    dynamic link library C:\MY_DLL.DLL."

    Note the caps in the error msg.



    If I redo the the dll and exe source code with caps (i.e. TRY_THIS instead of try_this) and recompile, everything works. Any thoughts?

  • #2
    See in help: "ALIAS"

    Use it everywhere it is allowed and your problems will vanish, never to return again.
    Michael Mattias
    Tal Systems Inc. (retired)
    Racine WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Bingo! Thanks.

      Comment

      Working...
      X