CallFunction Issue 4.4x [Solved]

Just starting out? Need help? Post your questions and find answers here.
j50501313
User
User
Posts: 20
Joined: Fri Oct 23, 2009 11:51 am

CallFunction Issue 4.4x [Solved]

Post by j50501313 »

Code: Select all

If OpenLibrary(0, "USER32.DLL")
    *MessageBox = GetFunction(0, "MessageBoxA")
     If *MessageBox
         CallFunctionFast(*MessageBox, 0, "Body", "Title", 0)
EndIf
        CloseLibrary(0)
EndIf

PureBasic 4.41 All normal To PureBasic 4.40 Beta 7 erroneous
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Re: PureBasic 4.40 Beta 7 (Windows - x86) Bug

Post by Rings »

please read the docs, the CallFunction has changed.
(no more string allowed as parameters)
and also, please report more in detail (description and topic-title )

Code: Select all

If OpenLibrary(0, "USER32.DLL")
    *MessageBox = GetFunction(0, "MessageBoxA")
     If *MessageBox
         CallFunctionFast(*MessageBox, 0, @"Body", @"Title", 0)
EndIf
        CloseLibrary(0)
EndIf
SPAMINATOR NR.1
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: PureBasic 4.40 Beta 7 (Windows - x86) Bug

Post by SFSxOI »

Rings wrote:please read the docs, the CallFunction has changed.
(no more string allowed as parameters)
and also, please report more in detail (description and topic-title )

Code: Select all

If OpenLibrary(0, "USER32.DLL")
    *MessageBox = GetFunction(0, "MessageBoxA")
     If *MessageBox
         CallFunctionFast(*MessageBox, 0, @"Body", @"Title", 0)
EndIf
        CloseLibrary(0)
EndIf
You mean its now:

Code: Select all

 CallFunctionFast(*MessageBox, 0, @"Body", @"Title", 0)
and not

Code: Select all

 CallFunctionFast(*MessageBox, 0, "Body", "Title", 0)
??

I don't know as i haven't played around with the beta's.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
Post Reply