I know the way to generate the exe file. But sometimes I don't need the output exe file.
pbcompiler.exe will execute a pb source code just like a script. And I think the script like behavior is useful to me.
The document also have the demonstration of the usage, I copy it to here:
Examples ...
Search found 13 matches
- Sat Sep 17, 2016 5:13 pm
- Forum: Coding Questions
- Topic: GetCurrentDirectory() returned wrong value
- Replies: 8
- Views: 2553
- Sat Sep 17, 2016 11:06 am
- Forum: Coding Questions
- Topic: GetCurrentDirectory() returned wrong value
- Replies: 8
- Views: 2553
Re: GetCurrentDirectory() returned wrong value
The output should be the new path
GetCurrentDirectory() is not for getting the exe's folder. Use ProgramFilename() for that.
Of course you are right, but what is your point?
GetCurrentDirectory() is for getting windows working directory.
To get the correct working directory is very important for ...
GetCurrentDirectory() is not for getting the exe's folder. Use ProgramFilename() for that.
Of course you are right, but what is your point?
GetCurrentDirectory() is for getting windows working directory.
To get the correct working directory is very important for ...
- Fri Sep 16, 2016 12:47 am
- Forum: Coding Questions
- Topic: GetCurrentDirectory() returned wrong value
- Replies: 8
- Views: 2553
Re: GetCurrentDirectory() returned wrong value
I am sure it is a bug!!
Please make sure you did all step what I said.
(compile with/without /commented switch, and copy to different path before running)
You will know what's wrong.
PS. this bug only apper when you compile the source without any parameter.
pbcompiler.exe test.pb /exe 1.exe => OK ...
Please make sure you did all step what I said.
(compile with/without /commented switch, and copy to different path before running)
You will know what's wrong.
PS. this bug only apper when you compile the source without any parameter.
pbcompiler.exe test.pb /exe 1.exe => OK ...
- Thu Sep 15, 2016 9:57 pm
- Forum: Announcement
- Topic: PureAutoIt - Complete Autoit Functions In Purebasic
- Replies: 32
- Views: 34665
Re: PureAutoIt - Complete Autoit Functions In Purebasic
Thanks fryquez, I will add these fix for PB 5.5 in next release.
These code were developed under PB5.4, so some constant conflict.
These code were developed under PB5.4, so some constant conflict.
- Thu Sep 15, 2016 9:50 pm
- Forum: Coding Questions
- Topic: GetCurrentDirectory() returned wrong value
- Replies: 8
- Views: 2553
GetCurrentDirectory() returned wrong value
This bug appears in PB 5.4~5.5, both x86/x64 version.
Here is a very simple test code:
MessageRequester("", GetCurrentDirectory())
Ok, compile it by "pbcompiler test.pb", copy the exe file to another path and then run it.
The output should be the new path, however, it shows the path of source ...
Here is a very simple test code:
MessageRequester("", GetCurrentDirectory())
Ok, compile it by "pbcompiler test.pb", copy the exe file to another path and then run it.
The output should be the new path, however, it shows the path of source ...
- Sat Jul 02, 2016 6:03 am
- Forum: Announcement
- Topic: PureAutoIt - Complete Autoit Functions In Purebasic
- Replies: 32
- Views: 34665
Re: PureAutoIt - Complete Autoit Functions In Purebasic
Thanks, looks interesting and might be used to greatly power-up Purebasic as language for simple scripts on Windows.
Going to test it when will be matching case.
PS. Did you ported whole AutoIt? And what those .obj files doing?
Not yet whole AutoIt, but almost.
The obj files contain the ...
Going to test it when will be matching case.
PS. Did you ported whole AutoIt? And what those .obj files doing?
Not yet whole AutoIt, but almost.
The obj files contain the ...
- Sat Jul 02, 2016 5:15 am
- Forum: Announcement
- Topic: PureAutoIt - Complete Autoit Functions In Purebasic
- Replies: 32
- Views: 34665
PureAutoIt - Complete Autoit Functions In Purebasic
The Features:
PureBasic version of following AutoIt functions:
Environment functions
File, Directory and Disk functions
Graphic and Sound functions
Keyboard functions
Message Boxes and Dialogs functions
Misc. functions (non-complete)
Mouse functions
Process functions (non-complete ...
PureBasic version of following AutoIt functions:
Environment functions
File, Directory and Disk functions
Graphic and Sound functions
Keyboard functions
Message Boxes and Dialogs functions
Misc. functions (non-complete)
Mouse functions
Process functions (non-complete ...
- Thu Jun 30, 2016 7:55 am
- Forum: Windows
- Topic: AtExit() for PureBasic
- Replies: 5
- Views: 3928
Re: AtExit() for PureBasic
I like to write library as include file (*.pbi) rather than binary library file.
So I need a way to ensure some resources will be deleted correctly before program end.
Every program language can add on_exit() procedure after main part, but they still have "atexit" feature.
This means it is ...
So I need a way to ensure some resources will be deleted correctly before program end.
Every program language can add on_exit() procedure after main part, but they still have "atexit" feature.
This means it is ...
- Tue Jun 28, 2016 12:25 am
- Forum: Windows
- Topic: AtExit() for PureBasic
- Replies: 5
- Views: 3928
AtExit() for PureBasic
My new project needs atexit() function, but purebasic don't have it.
Here is my way to resolve this problem: using inline asm and FASM macro directive.
Declare AtExitHandler()
Global NewList atexit_list.i()
Global exit_code.i, *exit_handler = @AtExitHandler()
Procedure AtExit(*callback ...
Here is my way to resolve this problem: using inline asm and FASM macro directive.
Declare AtExitHandler()
Global NewList atexit_list.i()
Global exit_code.i, *exit_handler = @AtExitHandler()
Procedure AtExit(*callback ...
- Mon Feb 09, 2009 11:05 pm
- Forum: Announcement
- Topic: PureHash Library - Support 40+ hash algorithm
- Replies: 2
- Views: 3801
PureHash Library - Support 40+ hash algorithm
Features
- Support 40+ hash algorithms (including some checksums)
- Same interface as build-in cipher library, but fast
- Receive hash as binary data
- Unicode supported
- Free
Example
Debug PureHash_MD5Fingerprint("Test", 4)
H = PureHash_ExamineMD5Fingerprint()
PureHash_NextMD5Fingerprint(H ...
- Support 40+ hash algorithms (including some checksums)
- Same interface as build-in cipher library, but fast
- Receive hash as binary data
- Unicode supported
- Free
Example
Debug PureHash_MD5Fingerprint("Test", 4)
H = PureHash_ExamineMD5Fingerprint()
PureHash_NextMD5Fingerprint(H ...
- Tue Mar 21, 2006 4:28 am
- Forum: Announcement
- Topic: Another Image Plugin (Support PNG)
- Replies: 8
- Views: 4785
- Tue Mar 21, 2006 4:16 am
- Forum: Announcement
- Topic: Another Image Plugin (Support PNG)
- Replies: 8
- Views: 4785
That looks like you don't have a stable install of the beta. This can happen if old libs get mixed in somehow, perhaps because of not installing to a clean empty folder. Dunno about the error you're getting but believe me, it works, I've been using it for the better part of a year without problems ...
- Mon Mar 20, 2006 12:30 pm
- Forum: Announcement
- Topic: Another Image Plugin (Support PNG)
- Replies: 8
- Views: 4785
Another Image Plugin (Support PNG)
This plugin is similar to El_Choni's EC_ImagePluginOLE. But it also support PNG format, and can use CatchImage() to read image in the exe resource. (Testing under PureBasic 3.94.)
To use this plugin, copy wxCmmImgPlugin to UserLibraries folder, and add the following line in your program ...
To use this plugin, copy wxCmmImgPlugin to UserLibraries folder, and add the following line in your program ...