Search found 26 matches

by Zizaco
Wed Jul 06, 2011 6:38 pm
Forum: Feature Requests and Wishlists
Topic: OOP Support (it is time)
Replies: 112
Views: 23495

Re: OOP Support (it is time)

People who can't program without OOP can't really call himself a
programmer. And yes, when you make it right, you can make any
program without OOP ... but of course, some things are easier.
Other's aren't.
I totally agree with you. In fact you can make anything without OOP or even using only ...
by Zizaco
Tue Jul 05, 2011 12:39 am
Forum: Feature Requests and Wishlists
Topic: OOP Support (it is time)
Replies: 112
Views: 23495

Re: OOP Support (it is time)

Ok, I did not know that it was a limitation of PB. Thats really bad that PureBasic will never have an usable OOP support.

Can't be that hard for the PB authors to do (correctly) what those precompilers are trying to do for years and keep all the old(thats the word) structural programming support. I ...
by Zizaco
Mon Jul 04, 2011 6:07 pm
Forum: Feature Requests and Wishlists
Topic: OOP Support (it is time)
Replies: 112
Views: 23495

Re: OOP Support (it is time)

After doing some testing, I came to a conclusion which is the closest to make a Cross Dependency Between Classes using SimpleOOP. However there are still severe limitations since the PB Interface statment cannot be used to declare the classes as I thought.

Non OO code for demonstration ...
by Zizaco
Sun Jul 03, 2011 8:16 pm
Forum: Feature Requests and Wishlists
Topic: OOP Support (it is time)
Replies: 112
Views: 23495

Re: OOP Support (it is time)

How do you make an cross-inclusion/dependency of classes using SimpleOOP?

In C++ the solution is to use a forward-declaration in one of the classes (http://stackoverflow.com/questions/1281641/circular-c-header-includes), in Java/C# the compiler solve this automatically.
How could you do this in PB ...
by Zizaco
Sun Nov 14, 2010 5:51 pm
Forum: Coding Questions
Topic: Get the real value: Pointer to a Pointer
Replies: 6
Views: 1065

Re: Get the real value: Pointer to a Pointer

Thanks everybody!
by Zizaco
Sun Nov 14, 2010 12:16 am
Forum: Coding Questions
Topic: Get the real value: Pointer to a Pointer
Replies: 6
Views: 1065

Get the real value: Pointer to a Pointer

I have to use a library that have a callback to a function sending as one of the parameters a IStream pointer to a pointer (in lib documentation: IStream **VarName ).

How can i get the real value of it? (The "final pointer chain" value)

I've tried this:
Procedure.l ...
by Zizaco
Fri Feb 01, 2008 12:14 pm
Forum: PureFORM & JaPBe
Topic: PureRESIZE library : gadget automatic resizing and more
Replies: 160
Views: 193653

http://www.purebasic.fr/english/viewtopic.php?t=30902

Is it possible to use the PureRESIZE library with the "Windows" inside a MDIGadget?
The functions PureRESIZE_SetWindowMinimumSize and MaximumSize works for me, but the "PureRESIZE_SetGadgetResize() " don't.
Why? There is any way to get it to ...
by Zizaco
Fri Feb 01, 2008 11:34 am
Forum: Coding Questions
Topic: PureRESIZE library with MDIGadget
Replies: 0
Views: 1523

PureRESIZE library with MDIGadget

Is it possible to use the PureRESIZE library with the "Windows" inside a MDIGadget?
The functions PureRESIZE_SetWindowMinimumSize and MaximumSize works for me, but the "PureRESIZE_SetGadgetResize() " don't.
Why? There is any way to get it to work?
by Zizaco
Fri Jul 13, 2007 12:29 pm
Forum: Coding Questions
Topic: Callback
Replies: 13
Views: 3565

Any ideas?
by Zizaco
Wed Jul 11, 2007 2:52 pm
Forum: Coding Questions
Topic: Callback
Replies: 13
Views: 3565

I'm not really sure I understand.
Sorry for my bad inglish, i will reformulate the question:

I have an application, made in a 3D engine. (irrilich per example.)
The 3d application doesn't have a WaitWindowsEvent(), it just have a main loop that doesn't wait nothing.

This aplication needs a ...
by Zizaco
Tue Jul 10, 2007 9:38 pm
Forum: Coding Questions
Topic: Callback
Replies: 13
Views: 3565

The window who's events you wish to process, is it created inside or outside of the dll?
Inside. :(

I will explain what im trying to do. Maybe you knows a better way to do it.

I have an application in a 3D engine, and it needs to have some windows to control the options. These windows should ...
by Zizaco
Tue Jul 10, 2007 8:56 pm
Forum: Coding Questions
Topic: Callback
Replies: 13
Views: 3565

Callback

What is the Callback parameters?
"(hWnd, Msg, wParam, lParam)" what means each one?

Im trying to make a windows "waitevent" in a callback, to use in a .DLL
Can someone help me with that?

To make a callback function instead of a main loop.
by Zizaco
Fri Jul 06, 2007 6:49 pm
Forum: Coding Questions
Topic: Inverse WindowID()
Replies: 7
Views: 2311

hallodri wrote:For Window try this :

Code: Select all

debug GetProp_(hWnd,"PB_WindowID") -1
For Gadget :

Code: Select all

debug GetProp_(hWnd,"PB_ID")
;or 
debug GetDlgCtrlID_(hWnd)
WOrked! Thanks! :D
by Zizaco
Fri Jul 06, 2007 3:46 pm
Forum: Coding Questions
Topic: Inverse WindowID()
Replies: 7
Views: 2311

Inverse WindowID()

There is to do the inverse of WindowID()?
To find the #Window from the Handle?

Please help.
by Zizaco
Tue Jun 26, 2007 5:03 pm
Forum: General Discussion
Topic: 3rd party skinning apps/solutions - what do you use?
Replies: 24
Views: 5883

Image

Image