New topic: Calling Windows Function
<http://forums.realsoftware.com/viewtopic.php?t=43324> Page 1 of 1 [ 4 posts ] Previous topic | Next topic Author Message mekel Post subject: Calling Windows FunctionPosted: Sat Mar 24, 2012 10:47 pm Joined: Sun Feb 19, 2012 4:49 am Posts: 43 How to call a External DLL function from Real Basic For eg) This is the function provided in the forum #if TargetWin32 Then Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" (ByVal hwnd As Int32, ByVal nIndex As Int32, ByVal dwNewLong As Int32) As Int32 Const GWL_EXSTYLE = -20 Const WS_EX_TOOLWINDOW = &H80 Call SetWindowLong(Self.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW) #endif It will be good if someone can explain this and please let me know the related documentation pages Top charonn0 Post subject: Re: Calling Windows FunctionPosted: Sat Mar 24, 2012 11:02 pm Joined: Mon Apr 02, 2007 2:08 am Posts: 705 Location: San Francisco, CA, USA The documentation entry on the Declare statement ought to prove enlightening. _________________ Boredom Software Top mekel Post subject: Re: Calling Windows FunctionPosted: Sat Mar 24, 2012 11:39 pm Joined: Sun Feb 19, 2012 4:49 am Posts: 43 Thanks ! Have anyone tried calling libs in 64 bit windows? Top timhare Post subject: Re: Calling Windows FunctionPosted: Sun Mar 25, 2012 12:18 am Joined: Fri Jan 06, 2006 3:21 pm Posts: 11077 Location: Portland, OR USA As long as the dll is 32-bit, there shouldn't be a problem. All the Win32 API calls work. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 4 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
