Your right wilbert, Pow() was the problem.
But how else can I do a '^' operation from other languages in PB?
Search found 90 matches
- Tue Aug 18, 2015 9:35 am
- Forum: Coding Questions
- Topic: Need help translating .net to PB
- Replies: 5
- Views: 1444
- Mon Aug 17, 2015 7:04 pm
- Forum: Coding Questions
- Topic: Need help translating .net to PB
- Replies: 5
- Views: 1444
Need help translating .net to PB
Hi, I'm trying to translate this code snipped: http://stackoverflow.com/questions/1514040/reversing-crc32 I wonder why I get the error "Line 27: Can't use any of the following operands with floats: <<, >>, &, |, !, %." cause I don't use any floats? Structure Crc32table l.l[0] EndStruct...
- Fri Aug 14, 2015 8:53 pm
- Forum: Feature Requests and Wishlists
- Topic: IDE: Change Create Temporary executable in Compiler Options
- Replies: 5
- Views: 2368
Re: IDE: Change Create Temporary executable in Compiler Opti
Maybe the compiler option: "Create temporary executable in the source directory" could be renamed to: "Create temporary executable in the output executable directory" Doesn't make any sense to me, creating a debug.exe in the folder were all source files are located. Having it ins...
- Sat Jun 27, 2015 5:45 pm
- Forum: Linux
- Topic: Using PureBasic (32bit) on 64bit Linux
- Replies: 12
- Views: 43468
Re: Using PureBasic (32bit) on 64bit Linux
Any update on this tut?
I'm getting the 32bit IDE starting, but compiling is no go.
I'm getting the 32bit IDE starting, but compiling is no go.
- Thu Jun 18, 2015 9:56 am
- Forum: Linux
- Topic: FileSeek in devices
- Replies: 0
- Views: 9268
FileSeek in devices
If I use file functions for devices like memory or disks Lof() will always return 0.
And FileSeek() will fail with debugger on.
I could solve the problem with DisableDebugger and EnableDebugger, but is there a better way?
And FileSeek() will fail with debugger on.
I could solve the problem with DisableDebugger and EnableDebugger, but is there a better way?
- Wed Jun 10, 2015 10:12 pm
- Forum: Linux
- Topic: Detect right click on Gadgets
- Replies: 2
- Views: 2327
Re: Detect right click on Gadgets
Thanks Shardik,
it is working great now using GdkEventHandler and PostEvent
it is working great now using GdkEventHandler and PostEvent
- Wed Jun 10, 2015 7:46 pm
- Forum: Linux
- Topic: Detect right click on Gadgets
- Replies: 2
- Views: 2327
Detect right click on Gadgets
Hi,
I know how to detect a right-click event on gadgets like ButtonGadget on Windows,
but how to do on Linux?
I know how to detect a right-click event on gadgets like ButtonGadget on Windows,
but how to do on Linux?
- Tue Apr 07, 2015 8:27 pm
- Forum: Coding Questions
- Topic: IQueryCancelAutoPlay COM interface
- Replies: 5
- Views: 1801
Re: IQueryCancelAutoPlay COM interface
Procedure MakeBSTR() returns a long, but isn't BSTR a pointer?
- Mon Mar 30, 2015 9:58 am
- Forum: Coding Questions
- Topic: SHMultiFileProperties() WinAPI.
- Replies: 7
- Views: 2051
Re: SHMultiFileProperties() WinAPI.
*psfDesktop\CreateViewObject(#Null, ?IID_IShellFolder, @*psfDesktop)
This line will certainly cause trouble.
This line will certainly cause trouble.
- Sat Mar 28, 2015 10:15 am
- Forum: Coding Questions
- Topic: Creating a Hex view gadget
- Replies: 9
- Views: 1921
Re: Creating a Hex view gadget
Infratec, i did search but also found only the MS article you posted.
But it's from 2003 and mention windows 3.1.
Thanks wilbert, Consolas is indeed a monospace font and looking much better than Courier New
But it's from 2003 and mention windows 3.1.
Thanks wilbert, Consolas is indeed a monospace font and looking much better than Courier New
- Fri Mar 27, 2015 8:08 pm
- Forum: Coding Questions
- Topic: Creating a Hex view gadget
- Replies: 9
- Views: 1921
Re: Creating a Hex view gadget
Anyone knows a list of Windows default monospace fonts?
- Thu Mar 26, 2015 8:25 pm
- Forum: Coding Questions
- Topic: Creating a Hex view gadget
- Replies: 9
- Views: 1921
Re: Creating a Hex view gadget
Hmm, this one is looking even better, but without any source.
Hell, i wish we could simply use MFC in PureBasic.
Well, I have my fun with CanvasGadget know
Hell, i wish we could simply use MFC in PureBasic.
Well, I have my fun with CanvasGadget know
- Mon Mar 23, 2015 9:41 am
- Forum: Windows
- Topic: Program Memory?
- Replies: 11
- Views: 5143
Re: Program Memory?
On windows I use the WorkingSetSize to determine RAM usage: EnableExplicit Structure _PROCESS_MEMORY_COUNTERS cb.l PageFaultCount.l PeakWorkingSetSize.i WorkingSetSize.i QuotaPeakPagedPoolUsage.i QuotaPagedPoolUsage.i QuotaPeakNonPagedPoolUsage.i QuotaNonPagedPoolUsage.i PagefileUsage.i PeakPagefile...
- Fri Mar 20, 2015 11:53 am
- Forum: Coding Questions
- Topic: Creating a Hex view gadget
- Replies: 9
- Views: 1921
Re: Creating a Hex view gadget
@davido
What
This is crazy, hope I can understand this source.
@netmaestro
Thanks that a good start.
What
This is crazy, hope I can understand this source.
@netmaestro
Thanks that a good start.
- Fri Mar 20, 2015 11:51 am
- Forum: Coding Questions
- Topic: Replace ReadProgramError with Windows API
- Replies: 7
- Views: 1803
Re: Replace ReadProgramError with Windows API
Use PeekNamedPipe_ to look if data is available before using ReadFile_