Search found 14 matches

by HASO
Sat Apr 24, 2004 6:47 am
Forum: Coding Questions
Topic: So where can I read about #PB_any and other constants?
Replies: 11
Views: 1951

Oldefoxx,

From website purebasic news:

12th April 2004

PureBasic V3.90 (Windows)

- Added: #PB_Any support (dynamic numbering) for DataBase, File, Font, FileSystem, Gadget, Image,
Library, Module, Movie, Palette, Sprite, Sprite3D, SysTray, ToolBar, StatusBar and Window



I too have not been ...
by HASO
Tue Mar 23, 2004 2:14 am
Forum: General Discussion
Topic: Lccwin32
Replies: 6
Views: 1961

dagcrack wrote:np, hehe.. btw 1kb/s ? LOL!! I downloaded at 30kb/s
hehe, My download is much bigger :lol:
I downloaded at 210kb/s from http://www.cs.virginia.edu/~lcc-win32/

Hans.
by HASO
Sun Feb 01, 2004 5:52 pm
Forum: Coding Questions
Topic: Bad Support
Replies: 10
Views: 2876

Kake26 wrote
If I have to I will find the most severe measure possible and take it.
Don't be too hard on yourself ... :wink:
I hope everything has worked out now.
Hans.
by HASO
Sun Feb 01, 2004 4:43 pm
Forum: Coding Questions
Topic: MakeWord in C++ to PB
Replies: 13
Views: 4352

Inner,

You're welcome!

Blueznl wrote:
you can read the same var in four different ways from the same location

as a byte
as a word
as a doubleword
Whatever happened to method 4 :?:
Maybe as a book...

Hans.
by HASO
Sat Jan 31, 2004 3:51 pm
Forum: Off Topic
Topic: Your name on a comet - be quick!
Replies: 9
Views: 2675

Trondoc,

You should use a reliable virus scanner :twisted:

Hans.
by HASO
Sat Jan 31, 2004 3:42 pm
Forum: Coding Questions
Topic: MakeWord in C++ to PB
Replies: 13
Views: 4352

Inner,

I completely agree with you that your method makes sense in human readability. However, it is NOT the MAKEWORD implementation of MSDN.

I've run a few tests with TurboC++ and the PSDK definition of MAKEWORD.
Result: MAKEWORD (1,2) returns &0201 and MAKEWORD(2,1) returns &0102

This seems to ...
by HASO
Sat Jan 31, 2004 1:56 pm
Forum: Coding Questions
Topic: MakeWord in C++ to PB
Replies: 13
Views: 4352

Inner,

Your function: Procedure.w MakeWord(a.b,b.b)

c.w=(b & $ff)|((a & $ff)<<8)

ProcedureReturn c
EndProcedure

Debug(Hex(MakeWord(1,2)))
My function: Procedure.w MakeWord(a.b,b.b)

c.w=(a & $ff)|((b & $ff)<<8)

ProcedureReturn c
EndProcedure

Debug(Hex(MakeWord(1,2)))
The ...
by HASO
Sat Jan 31, 2004 5:49 am
Forum: Coding Questions
Topic: Bad Support
Replies: 10
Views: 2876

kake26,

Why don't you use the hardcopy you have made of such an important email? :roll: :roll:
That's SOO much easier than legal action...

Hans
by HASO
Sat Jan 31, 2004 4:39 am
Forum: Coding Questions
Topic: MakeWord in C++ to PB
Replies: 13
Views: 4352

Inner,

Actually that is not quite quite right.

Quoted from some deleted web page (found with GOOGLE): WinDoc/msdn/sdk/platforms/doc/sdk/win32/mac/src
The MAKEWORD macro creates an unsigned 16-bit integer by concatenating two given unsigned character values.

WORD MAKEWORD(
BYTE bLow, // low ...
by HASO
Fri Jan 30, 2004 5:38 pm
Forum: Coding Questions
Topic: MakeWord in C++ to PB
Replies: 13
Views: 4352

Oliv,

From C++ windef.h:

Code: Select all

MAKEWORD(a, b) ((WORD)(((BYTE)((DWORD_PTR)(a) & 0xff)) | WORD)((BYTE)((DWORD_PTR)(b) & 0xff))) << 8))
This means: result = (b & 255) * 256 + (a & 255)
In your example: 2 * 256 + 2 = 514

Hope this helps,
Hans.
by HASO
Fri Jan 30, 2004 4:41 pm
Forum: General Discussion
Topic: Windows Platform SDK
Replies: 8
Views: 2584

NoahPhense,

Microsoft SDK platform directory size for everything:
File size total 655,355,316 ... allocated 1,402,894,336 bytes

I had to download and install in one go, because the .bat file for unpacking did not work...

The install did no harm (beside taking 1.5 gig disk space of course).

WinXp ...
by HASO
Mon Jan 19, 2004 6:11 am
Forum: Game Programming
Topic: FPS Test
Replies: 48
Views: 13929

Frame rate 58-60, turret is rotating pink square

Cpu: Intel Celeron 4A, 2433 MHz
Memory: 480 MB (PC2700 DDR SDRAM)
Video: S3 Graphics ProSavageDDR (32 MB)
3d acc: S3 SuperSavageDDR

Keep up the action!
Hans.
by HASO
Mon Jan 19, 2004 2:22 am
Forum: Coding Questions
Topic: A question for C/C++ coders
Replies: 7
Views: 2293

Dare2,
varX = varA + 17 * (varB - 3 )
Would leave varA and varB unchanged, always. Surely?
Yes, it would. But remember the sequence for operators: multiplication before addition!

In C the operator ++ means: increment by 1 and -- means: decrement by 1.

If you put this operator before a ...
by HASO
Mon Jan 19, 2004 1:39 am
Forum: Coding Questions
Topic: A question for C/C++ coders
Replies: 7
Views: 2293

Pythagoras,

There is an error in the -- example: RetVal=Stack(StackTop-1)

Correct code:

StackTop = StackTop - 1
RetVal = Stack(StackTop)

HTH, Hans.