Thanks for your reply
Search found 12 matches
- Sun Jan 13, 2013 11:02 am
- Forum: Assembly and C Programming in PureBasic
- Topic: How to call PureBasic procedures using assembly
- Replies: 2
- Views: 5097
Re: How to call PureBasic procedures using assembly
I see... looks like a bit complicated in the end. Better to stick with PB functions the PB way, and only create new functions in assembly.
Thanks for your reply
Thanks for your reply
- Fri Jan 11, 2013 10:48 am
- Forum: Assembly and C Programming in PureBasic
- Topic: How to call PureBasic procedures using assembly
- Replies: 2
- Views: 5097
How to call PureBasic procedures using assembly
Hi everyone, I'm in the process of learning assembly and I'm stuck when trying to call a purebasic procedure using CALL.
I checked the ASM output generated by the compiler and I see all the function used are declared with the extrn keyword and prefixed with _PB_, but when I try to reproduce the same ...
I checked the ASM output generated by the compiler and I see all the function used are declared with the extrn keyword and prefixed with _PB_, but when I try to reproduce the same ...
- Mon Jan 07, 2013 9:25 am
- Forum: Announcement
- Topic: PureBasic 5.10 - Granted wishes release - is out !
- Replies: 108
- Views: 44182
Re: PureBasic 5.10 - Granted wishes release - is out !
mother of god *_*
- Mon Nov 05, 2012 2:56 pm
- Forum: General Discussion
- Topic: SimpleOOP method addresses
- Replies: 4
- Views: 1836
Re: SimpleOOP method addresses
Example, please?
For example
Class foo
Public Method bar()
Debug "hello!"
EndMethod
EndClass
*foo.foo = NewObject.foo
CallFunctionFast( *foo\bar, *foo )
the first argument of the method called by CallFunctionFast (*foo), is mandatory, because it will become the *This pointer used ...
For example
Class foo
Public Method bar()
Debug "hello!"
EndMethod
EndClass
*foo.foo = NewObject.foo
CallFunctionFast( *foo\bar, *foo )
the first argument of the method called by CallFunctionFast (*foo), is mandatory, because it will become the *This pointer used ...
- Thu Oct 18, 2012 4:51 pm
- Forum: General Discussion
- Topic: SimpleOOP method addresses
- Replies: 4
- Views: 1836
Re: SimpleOOP method addresses
Ok After studying the SimpleOOP generated code I managed to find a solution, you just need to pass the element whose method you are calling as the first parameter of CallFunctionFast! This really puts a hell of a power into the language! 
- Thu Oct 18, 2012 1:14 pm
- Forum: General Discussion
- Topic: SimpleOOP method addresses
- Replies: 4
- Views: 1836
SimpleOOP method addresses
Does anyone know how to get the address of a method in a SimpleOOP class?
I make heavy use of callback functions, using @ to pass around the address of the function I want to call later, but the same doesn't seem to work with SimpleOOP class methods. Any idea how to achieve the same thing with ...
I make heavy use of callback functions, using @ to pass around the address of the function I want to call later, but the same doesn't seem to work with SimpleOOP class methods. Any idea how to achieve the same thing with ...
- Sat Aug 11, 2012 9:12 pm
- Forum: Coding Questions
- Topic: How to create a new folder with a unique name
- Replies: 16
- Views: 4310
Re: How to create a new folder with a unique name
Wow guys some really interesting code snippets are coming out here! Thanks!
@kenmo that's exactly the procedure I came up with and am currently using, which is really ok in the end.
Tested:
Win7 64bit english: "New Folder", "New Folder (2)", ...
WinXP Pro 32bit German: "Neuer Ordner", "Neuer ...
@kenmo that's exactly the procedure I came up with and am currently using, which is really ok in the end.
Tested:
Win7 64bit english: "New Folder", "New Folder (2)", ...
WinXP Pro 32bit German: "Neuer Ordner", "Neuer ...
- Fri Aug 10, 2012 7:44 pm
- Forum: Coding Questions
- Topic: How to create a new folder with a unique name
- Replies: 16
- Views: 4310
Re: How to create a new folder with a unique name
Thank you for your replies guys! The problem is that I am creating this folder as a direct consequence of the user action on the file system (I'm enhancing the OS file system commands via additional contextual menus when browsing files and folders), so the name is going to be user friendly and as ...
- Fri Aug 10, 2012 1:25 pm
- Forum: Coding Questions
- Topic: How to create a new folder with a unique name
- Replies: 16
- Views: 4310
Re: How to create a new folder with a unique name
Ok, this is the solution I came up with, except I chose to match the whole folder name. I was hoping for a OS command to let it create the folder for you, like you would do normally using the OS menus.
- Fri Aug 10, 2012 9:18 am
- Forum: Coding Questions
- Topic: How to create a new folder with a unique name
- Replies: 16
- Views: 4310
How to create a new folder with a unique name
Hi there,
I have the need to create a new folder, no matter what name, just like you would normally do with the OS "new folder" menu entry.
Normally windows creates a new folder named "new folder", and if a folder with that name already exists, an increasing number is added in parentheses ...
I have the need to create a new folder, no matter what name, just like you would normally do with the OS "new folder" menu entry.
Normally windows creates a new folder named "new folder", and if a folder with that name already exists, an increasing number is added in parentheses ...
- Sat Jul 28, 2012 7:42 am
- Forum: Coding Questions
- Topic: How to halt compilation and execution after using a tool?
- Replies: 2
- Views: 605
Re: How to halt compilation and execution after using a tool
Ah that really looks like the command I need! Thank you for your help! :D
Edit
That did the trick! The debugger now shows the right message error (instead of the tool), and it even color/focus the wrong line! 8)
Thank you so much! Now I will work on making contracts and coding conventions way ...
Edit
That did the trick! The debugger now shows the right message error (instead of the tool), and it even color/focus the wrong line! 8)
Thank you so much! Now I will work on making contracts and coding conventions way ...
- Fri Jul 27, 2012 8:30 pm
- Forum: Coding Questions
- Topic: How to halt compilation and execution after using a tool?
- Replies: 2
- Views: 605
How to halt compilation and execution after using a tool?
First and foremost hello to everybody and congratulations to the authors of this fantastic software! I'm coding in PureBasic since one week and I must say I immediately fell in love with it! :D
I wrote a tool which processes the source code which is about to be compiled, and checks whether a ...
I wrote a tool which processes the source code which is about to be compiled, and checks whether a ...