Module BaseClass (Module as Object)
Re: Module BaseClass (Module as Object)
Ok.
i have changed my example
i have changed my example
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Great !! Thanks for your code.
Than what's your next plan?what about implementing multi interfaces? or even IDispatch interface?
Than what's your next plan?what about implementing multi interfaces? or even IDispatch interface?
Re: Module BaseClass (Module as Object)
It should not make any more difficult to create these ones.
For multiinterfaces only in QueryInterface has to call from another module the function New().
The function number and the name as key are already stored for IDispatch. Own Debuggerfunction ShowInterface.
However, the parameter list must still be stored.
But use less with Windows...
For multiinterfaces only in QueryInterface has to call from another module the function New().
The function number and the name as key are already stored for IDispatch. Own Debuggerfunction ShowInterface.
However, the parameter list must still be stored.
But use less with Windows...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update v1.27
- Bugfix BaseClass as DLL: Macros created codes as procedure encapsulated because on some Windows 7 machine crashed
- Code cleanup, some internal name changed
- Bugfix BaseClass as DLL: Macros created codes as procedure encapsulated because on some Windows 7 machine crashed
- Code cleanup, some internal name changed
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update v1.28
- Changed internal class management because of the rules for creating DLLs
- Changed internal class management because of the rules for creating DLLs
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update v1.29
- Dispose object work now revers
- Save LinkedList Initialize object and Dispose object over Mutex
- Added global ObjectCounter over all Classes
- Dispose object work now revers
- Save LinkedList Initialize object and Dispose object over Mutex
- Added global ObjectCounter over all Classes
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update v1.31
- Spelling Correction: Initalize -> Initialize
Sorry, I did not notice it until ...
Correct your own projects with 'Search and Replace'.
- Spelling Correction: Initalize -> Initialize
Sorry, I did not notice it until ...
Correct your own projects with 'Search and Replace'.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- Kwai chang caine
- Always Here
- Posts: 5353
- Joined: Sun Nov 05, 2006 11:42 pm
- Location: Lyon - France
Re: Module BaseClass (Module as Object)
I have spent a long time to understand the error is always in the above codeSpelling Correction: Initalize -> Initialize
Nice works, thanks for sharing
The happiness is a road...
Not a destination
Not a destination
Re: Module BaseClass (Module as Object)
Thanks
I have now update example 9. We need threadsafe.
P.S. Now updated all examples
I have now update example 9. We need threadsafe.
Code: Select all
CompilerIf #PB_Compiler_Thread = 0
CompilerError "Use compiler option theadsafe"
CompilerEndIf
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update v1.32
- Change internal Initialize and Dispose from list to array to avoid thread blocking
- Added small version of BaseClass. 'Modul_BaseClassSmall.pb'
- Change internal Initialize and Dispose from list to array to avoid thread blocking
- Added small version of BaseClass. 'Modul_BaseClassSmall.pb'
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
BaseClass small version
Update v1.05
- Now compatible to extended version
+ Macro AsNewMethode, Macro CloneObject
Still the smallest code for creating objects
Update v1.05
- Now compatible to extended version
+ Macro AsNewMethode, Macro CloneObject
Still the smallest code for creating objects
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update small v1.07 and advance v1.33
- bugfix FreeMutex
- bugfix FreeMutex
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- Andre
- PureBasic Team
- Posts: 2071
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
Re: Module BaseClass (Module as Object)
If I will ever use "OOP-style" code for programming in PureBasic, then I start with this nice piece of code...
Thank you
Thank you
Re: Module BaseClass (Module as Object)
New version of small version
Update v1.09r3
- Map of classes encapsulated
- Check of the new class in procedure 'AddClass(...)' extended
- Change Macros because map of classes not longer global
- Change CheckInterface. Parameter is not longer required
- Name of classes not longer case sensitive (no case)
Update v1.09r3
- Map of classes encapsulated
- Check of the new class in procedure 'AddClass(...)' extended
- Change Macros because map of classes not longer global
- Change CheckInterface. Parameter is not longer required
- Name of classes not longer case sensitive (no case)
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Module BaseClass (Module as Object)
Update v1.10
- Change ClassName Management.
The module name is no longer the internal class name.
This means that the interface name is now specified for inheritance, and not the module name.
Is therefore more logical.
- Change ClassName Management.
The module name is no longer the internal class name.
This means that the interface name is now specified for inheritance, and not the module name.
Is therefore more logical.
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive