Search found 16 matches

by pbster
Wed Jan 21, 2009 7:00 am
Forum: Game Programming
Topic: Storing Chessboard positions
Replies: 32
Views: 11862

Wow, what an amazing train of thought to come up with this coding strategy. Interesting and definitely worth the price of admission!
by pbster
Tue Jan 20, 2009 8:10 pm
Forum: Game Programming
Topic: Storing Chessboard positions
Replies: 32
Views: 11862

32 pieces, 1 byte each (0-63) gives 32 bytes total to store an entire board I would think (?).

I'm just starting with pb, and not sure how I would store it into a file, but as a string of hex numbers, 00-40, doing it that way for simplicity sake would make it 64 bytes in a straight text format ...
by pbster
Tue Jan 20, 2009 1:12 am
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

Well I guess we can close this thread. I decided to do some disk cleanup and even found some nasty dll's floating around in system32 - (trojans), had to boot to linux on cd to get rid of them.

Removed and reinstalled purebasic in the normal directory and everything seems to be working fine now ...
by pbster
Mon Jan 19, 2009 4:41 am
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

This time I uninstalled pb, then installed on drive d instead of program files-> pb.

Works fine on drive d. I have no idea why it would work everywhere but on drive c.
by pbster
Mon Jan 19, 2009 3:44 am
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

even stranger.

I copied the complete purebasic directory on my xp system to my 2000 system on drive I.

Copied that to my program files-> purebasic directory on drive c.

No change.

But, I executed purebasic from drive I.

It works from drive I, but not from drive C.
by pbster
Mon Jan 19, 2009 1:38 am
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

Well, as a programmer, using a program to program with, the lack of detail in an error message is quite puzzling.
by pbster
Mon Jan 19, 2009 1:07 am
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

Exactly what 'Resources' does the compiler look for?

I've removed and reinstalled completely, still the same. But I installed it on a different machine and it works fine.

Some other observations....

If I disable 'XP skin support thing', and then try to compile, it gives a linker error. If I put ...
by pbster
Sun Jan 18, 2009 1:05 am
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694


C:\Program Files\PureBasic1\Compilers>polink
Pelles Linker, Version 5.00.1
Copyright (c) Pelle Orinius 1998-2008

Syntax:
POLINK [ { option | file | @commandfile } ... ]

Options:
/ALIGN:#
/ALLOWBIND[:NO]
/ALLOWISOLATION[:NO]
/ALTERNATENAME:symbol=symbol
/BASE:address
/DEBUG[:NO]
/DEBUGTYPE:{CV ...
by pbster
Sat Jan 17, 2009 10:57 pm
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

nothing is write protected.
and msvcrt.dll is in place under system32... as well as msvcrtXX.dll
by pbster
Sat Jan 17, 2009 10:53 pm
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

Code: Select all

C:\Program Files\PureBasic1\Compilers>echo %path%
C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;I:\ZMYSQL\bin;C:\Program Files\QuickTime\QTSystem\
hmmm.
by pbster
Sat Jan 17, 2009 10:30 pm
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

content of test.pb


OpenConsole()
PrintN("hello world")
Repeat
Delay(1)
Until Inkey() <> ""

; IDE Options = PureBasic 4.30 (Windows - x86)
; CursorPosition = 5
; Folding = -
; EnableXP




Removed IDE options lines... attempted command line compilation, same result as above.
by pbster
Sat Jan 17, 2009 10:27 pm
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

pbcompiler test.pb

Code: Select all

Compiling test.pb
Loading external libraries...
Starting compilation...
6 lines processed.
Creating executable.
Error: Linker
Unknown error
by pbster
Sat Jan 17, 2009 9:10 pm
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

Not even this will work with demo.

Code: Select all

OpenConsole() 
PrintN("hello world") 
Repeat 
  Delay(1) 
Until Inkey() <> ""
This also results in resource error.
by pbster
Sat Jan 17, 2009 9:05 pm
Forum: Coding Questions
Topic: Demo version won't compile?
Replies: 24
Views: 5694

Demo version won't compile?

Resource error, even when attempting to compile any of the sample files included.

I've removed, redownloaded, re-installed (even into a different directory) - and it still does nothing but quit with a 'resource error'. Perhaps I'm doing it wrong?

Doing the simple first 'this will compile' from ...
by pbster
Sat Jan 17, 2009 2:22 am
Forum: Coding Questions
Topic: CreateGadgetList Deprecated Function ?
Replies: 7
Views: 4356

Unfortunately this code was created by the visual editor, not hand written. ok. thanks.