Results 1 to 2 of 2

Thread: Calling Native Functions

  1. #1
    Join Date
    Jun 2009
    Posts
    177
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Calling Native Functions

    How does one call a native function from within Simba?

    Specifically, I'm interested in BlockInput, GetFocus, and SetFocus.

  2. #2
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    AllowSysCalls will have to be on in the settings:

    Simba Code:
    function GetModuleFileName(
        Module: Cardinal; FileName: TCharArray; Size: Cardinal
      ): Cardinal; external 'GetModuleFileNameA@kernel32 stdcall';

    You can see other examples in the associate and CRov extensions.
    Hup Holland Hup!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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