Search found 267 matches

by Ollivier
Tue Aug 18, 2009 2:43 am
Forum: Feature Requests and Wishlists
Topic: Debugger check : hexa value
Replies: 4
Views: 1636

Exactly.

There is a little problem too.

When the mouse pointor is placed over a expression which must be analyzed by the debugger check (which is a very good idea), if the expression is too much at the right of the scope, the tip message given by the debugger check is outside the screen ...
by Ollivier
Tue Aug 18, 2009 12:15 am
Forum: Coding Questions
Topic: Beginners ASM - accessing variables
Replies: 5
Views: 1201

@BlueZnl

Your link is excellent.

I found this:
$01 ; open fridge
$02 03 ; take 3 bottles of beer
$03 ; consume
$03 ; consume
$03 ; consume

I correct it:
AtHome:
$01 ; open fridge
$05 08 ; is there more than 8 bottles?
$06 08 ; no, go out
$02 03 ; yes, take 3 bottles of beer
$04 ...
by Ollivier
Mon Aug 17, 2009 11:49 pm
Forum: Feature Requests and Wishlists
Topic: Debugger check : hexa value
Replies: 4
Views: 1636

Debugger check : hexa value

Hello,

I think it would be better if we can read the hexadecimal value too.

Code: Select all

Variable [256
          $100]
Thank you

Ollivier
by Ollivier
Mon Aug 17, 2009 11:19 pm
Forum: Coding Questions
Topic: 2D Drawing Contest
Replies: 16
Views: 6273

@Trond

Very beautiful code!
Bravo!

Ollivier
by Ollivier
Sun Aug 16, 2009 7:43 pm
Forum: Coding Questions
Topic: How to reduce flicker without adding a delay?
Replies: 16
Views: 4542

Okay, if you prefer this... :D ... I found a solution.

Enumeration
#Window
#Text
#StatusBar
EndEnumeration

Global xStart.I
Global yStart.I
Global xChar.I
Global yChar.I

Procedure LoadCharMap()
Protected I.I ; Iteration
Protected A.S ; Ascii char
Protected W.I ; char Width
Protected H.I ...
by Ollivier
Sun Aug 16, 2009 5:05 pm
Forum: Game Programming
Topic: Well you CAN do something useful with Engine3d
Replies: 32
Views: 19210

I shouldn't be answering a 3D question! :roll: (I'm a 3D retard)

But I'll take a shot anyway. It looks like the robot mesh failed to load. Try using Robot.mesh from the PB 4.31 examples\sources\data\ folder and see if it works.
Although I can't run the code of this subject in V4.4 like V4.31, I ...
by Ollivier
Sun Aug 16, 2009 4:44 pm
Forum: Coding Questions
Topic: How to reduce flicker without adding a delay?
Replies: 16
Views: 4542

@MyUtopia

Hi. You should publish the interesting question you asked me because I think NetMaestro has more informations than me about API functions. I have solutions but they are too complex. I suppose there is a function adapted to update simply and correctly the window when you want to clear the ...
by Ollivier
Sun Aug 16, 2009 6:35 am
Forum: Coding Questions
Topic: How to reduce flicker without adding a delay?
Replies: 16
Views: 4542

:roll:
Enumeration
#Window
#Text
EndEnumeration

Procedure ChangeText(textgadget)
For x = 0 To 9999999

NoDelay + 1
If NoDelay > 10000
SetGadgetText(textgadget,Str(x))
Delay(1)
NoDelay = 1
EndIf


Next
SetGadgetText(textgadget,Str(x))
EndProcedure

If OpenWindow(#Window,#PB_Ignore,0,100 ...
by Ollivier
Sun Aug 16, 2009 6:13 am
Forum: Coding Questions
Topic: How to reduce flicker without adding a delay?
Replies: 16
Views: 4542

NetMaestro wrote a good method if there is only one rectangular area in which the text is displayed.

In his code, I discover too these two API functions :
- GetStockObject_(#DEFAULT_GUI_FONT)
- GetSysColor_(#COLOR_BTNFACE)
(I use them in the following code)

But if you want to display two numbers ...
by Ollivier
Sat Aug 15, 2009 11:45 pm
Forum: Coding Questions
Topic: Return a string from PB to VB
Replies: 32
Views: 7914

Okay. Your 2 codes VB6+PB work fine and my 2 codes VB6+PB work fine. I suppose you didn't change a character in my code: it had no error...

I think it's possible to see the memory adding 2 lines in the VB6 code: for example, a msgbox which forces the user to click ok once before the "big loop" and ...
by Ollivier
Sat Aug 15, 2009 10:01 pm
Forum: Coding Questions
Topic: Return a string from PB to VB
Replies: 32
Views: 7914

@Edwin Knoppert

I thank you to prepare all that for me. But what I want is less...

I downloaded it, extracted it and executed it. The program crashes whatever the value is, and with or without slash "/".

I an sorry. I just want to know if, on your computer and with VB6, these two codes work fine ...
by Ollivier
Sat Aug 15, 2009 8:09 pm
Forum: Coding Questions
Topic: Return a string from PB to VB
Replies: 32
Views: 7914

A couple of codes like this...

VB6 code Declare Function Test Lib "C:\DOCUME~1\EDWINK~1\LOCALS~1\Temp\PB51A\unsaved.dll" () As String

Sub Main()

MsgBox Test()

End Sub

PB DLL code ProcedureDll.I Test()
ProcedureReturn SysAllocStringByteLen_("DLL MESSAGE IS OKAY!", 20)
EndProcedure ...But ...
by Ollivier
Sat Aug 15, 2009 7:55 pm
Forum: Coding Questions
Topic: Return a string from PB to VB
Replies: 32
Views: 7914

@Edwin Knoppert

Only for VB6!

Ollivier
by Ollivier
Sat Aug 15, 2009 6:42 pm
Forum: Coding Questions
Topic: Return a string from PB to VB
Replies: 32
Views: 7914

@Edwin Knoppert

I understand your easy test. But I have an other test (which is harder) I can't try myself, because I haven't VB.

Is it possible to make a little PB DLL like you told me page 1 (with SysAllocStringByteLen_() ), and a little VB6 code which calls 1 million times (1 000 000 times). A ...
by Ollivier
Sat Aug 15, 2009 5:00 pm
Forum: Game Programming
Topic: Well you CAN do something useful with Engine3d
Replies: 32
Views: 19210

I tried to reexecute the code on 4.31:

21 errors.
In the 21st error, I stoped debugging it. It's too much. It's a very big deception. It was ok in version 4.10. I wrote Fred the 3D libraries (Window3D, Gadget3D) are null on my computer. But he didn't understand. It's very shame, cause the native 3D ...