Results 1 to 6 of 6

Thread: Sensitivity

  1. #1
    Guest
    Ask a stupid question, get a stupid answer.

    But I must know...

    Code:
    Declare Function findwindow Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long
    You don't have to have the api function case sensitive, right?

    Meaning, I could have it like:

    Code:
    Declare Function FindWindow Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long
    
    'or
    
    Declare Function findWindow Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long
    
    'or
    
    Declare Function Findwindow Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long
    
    'or anything else like..
    
    Declare Function FiNdWiNdoW Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long

  2. #2
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    It aint case sensitive...

    So i dont think it matters..... i done code with the "A" at the end of the api call... So idoubt case matters at all.

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    Do what you want with case as long as the spelling and punctation is correct.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4
    Guest
    I think it does matter, I've just tried Sleep and sleep and sleep didn't work, no entry point found, so VB was look for a exact match in the DLL.

    Sunny

  5. #5
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>


    Public Declare Function fInDWinDOw Lib "user32.dll" _
    Alias "FindWindowA" (ByVal lpClassName As Any, _
    ByVal lpWindowName As Any) As Long

    Runs..but don't mess with the Alias "FindWindowA"
    that one is case sensetive.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  6. #6
    Guest
    Actually, Matt, You can AS LONG AS YOU ALIAS THE REAL NAME, IN THE CORRECT CASE, in your Declare.

    You could even change it to this this (but what's the point)?

    Code:
    Private Declare Function SeekBillGatesThingy Lib "user32" _
    Alias "FindWindowA" (ByVal lpClassName As String, ByVal _
    lpWindowName As String) As Long

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