Search found 89 matches

by PureGuy
Tue Oct 06, 2015 10:32 pm
Forum: Coding Questions
Topic: #PB_Structure_AlignC
Replies: 4
Views: 1068

Re: #PB_Structure_AlignC

Josh wrote: P.S.: If you are not sure, that there is a bug, please use the forum for questions and not the bug-forum.
Actually I'm sure there is at least 1 bug, cause the structure is to small.
According to the help file, there is a second bug, cause #PB_Structure_AlignC doesn't here align like C.
by PureGuy
Tue Oct 06, 2015 9:25 pm
Forum: Coding Questions
Topic: #PB_Structure_AlignC
Replies: 4
Views: 1068

#PB_Structure_AlignC

I just noticed the internal ACE_HEADER structure is to small in x64. So I thought simply use #PB_Structure_AlignC, but it doesn't make a difference. Shouldn't the #PB_Structure_AlignC make sure that the structure is a multiple of 8 on x64? Structure ACE_HEADER_ Align #PB_Structure_AlignC AceType.b A...
by PureGuy
Tue Oct 06, 2015 11:30 am
Forum: Windows
Topic: Wierd issue with x64
Replies: 7
Views: 2605

Re: Wierd issue with x64

Yes, i get the same problem in all versions 5.40, 5.31 and also in the old 5.24 LTS

BTW: if I replace the MessageRequester() with

MessageBox_(0, Hex(nt, #PB_Long), "Return", 0)

it works again.
by PureGuy
Mon Oct 05, 2015 6:36 pm
Forum: Windows
Topic: Wierd issue with x64
Replies: 7
Views: 2605

Re: Wierd issue with x64

Thanks for looking at it.

I also tested in Windows 10 Virtualbox.
It always happens here even in the final exe.
by PureGuy
Wed Sep 30, 2015 8:33 pm
Forum: Windows
Topic: Wierd issue with x64
Replies: 7
Views: 2605

Re: Wierd issue with x64

With the Print, it returns "Return: 80000002" here, also Windows7 x64, 5.40b8.
by PureGuy
Wed Sep 30, 2015 8:12 pm
Forum: Windows
Topic: Wierd issue with x64
Replies: 7
Views: 2605

Wierd issue with x64

I have no idea what going on with this, but I think it's a bug. Following code works and gives messagerequester with "Return 0". But if you remove the out commented "Print(Hex(nt))" at the end it fails. It Only happens with x64 and the structures a correct, any ideas? EnableExpli...
by PureGuy
Wed Sep 16, 2015 7:24 pm
Forum: Feature Requests and Wishlists
Topic: [IDE-v571]Allow user defined temp executable path.
Replies: 6
Views: 2065

Re: [IDE-v54]Allow user defined temp executable path.

Changing temp environment variables every IDE start can't be any solution. There could be a new variable let's call it "PB_Debug_TempFile" that holds the path of temp executable. Implementing this would not not break anything and takes less the 3 minutes. Certainly less time that Fred and ...
by PureGuy
Wed Sep 16, 2015 2:05 pm
Forum: Windows
Topic: [solved]How to name a drive created using DefineDosDevice()?
Replies: 5
Views: 1739

Re: [solved]How to name a drive created using DefineDosDevic

The Registry Module (windows only) by ts-soft is very up to date.
ts-soft wrote: Wow6432Node is supported as flag!
x86, x64, ascii and unicode supported.
by PureGuy
Wed Sep 16, 2015 9:16 am
Forum: Windows
Topic: [solved]How to name a drive created using DefineDosDevice()?
Replies: 5
Views: 1739

Re: How to name a drive created using DefineDosDevice() API?

It works for volumes, but should work in your case, too.

Code: Select all

Procedure DriveSetLabel(sDrive.s, slabel.s)
  sDrive = Left(sDrive, 1) + ":\"
  ProcedureReturn SetVolumeLabel_(sDrive, slabel.s)
EndProcedure
by PureGuy
Sun Sep 06, 2015 5:58 pm
Forum: Coding Questions
Topic: Exe won't run on Windows 10
Replies: 26
Views: 4051

Re: Exe won't run on Windows 10

There are two dll's on my Windows 7 x64.

nvspcap.dll (in \Windows\SysWow64)
nvspcap64.dll (in \Windows\System32)

If he want's to compile his program as x86, than he should load the first one.
by PureGuy
Thu Aug 27, 2015 8:00 pm
Forum: General Discussion
Topic: What will break in PB - Switch to Win 10 from Win 7
Replies: 2
Views: 1244

Re: What will break in PB - Switch to Win 10 from Win 7

If you really want to upgrade to that "operation system", why not make a full backup of your current system with disk imaging software like macrium reflect or acronis true image. Well I have not noticed a problem with PB nor with my PB made applications. However Win10 is a unfinished buggy...
by PureGuy
Tue Aug 18, 2015 11:24 am
Forum: Coding Questions
Topic: Win 10 quest?
Replies: 2
Views: 809

Re: Win 10 quest?

GetVersionEx() is deprecated with Windows 8.1.
You can use RTLGetVersion() to receive the real Windows version.

see: http://www.purebasic.fr/english/viewtop ... 8&start=30
by PureGuy
Tue Aug 18, 2015 11:11 am
Forum: Coding Questions
Topic: Need help translating .net to PB
Replies: 5
Views: 1151

Re: Need help translating .net to PB

Thanks a lot wilbert, never had thought it would be a xor operation. I got further, but it seams the last byte of every created CRC32 table entry is wrong Structure Crc32table l.l[0] EndStructure Structure bytes b.b[0] EndStructure Global *table.Crc32table = AllocateMemory(256 * SizeOf(Long)) Global...
by PureGuy
Tue Aug 18, 2015 9:35 am
Forum: Coding Questions
Topic: Need help translating .net to PB
Replies: 5
Views: 1151

Re: Need help translating .net to PB

Your right wilbert, Pow() was the problem.

But how else can I do a '^' operation from other languages in PB?