Search found 871 matches

by StarBootics
Sat Oct 29, 2016 11:05 pm
Forum: Coding Questions
Topic: C++ OOP library and Interface
Replies: 24
Views: 6224

Re: C++ OOP library and Interface

Apparently, that works here W7 v5.40 X86 V1.2.3 V1.2.3 197121 V1.2.3 Thanks for sharing 8) Which example did you try ? The debugger output for "C++ Class Interface Example 00.pb" should look like : LibTime V1.2.3 Time V1.0.1 Date V1.0.0 21:06:30 04-10-2016 23:52:45 04-10-2016 00:00:00 00-...
by StarBootics
Sat Oct 29, 2016 12:09 am
Forum: Off Topic
Topic: Why is so slow ???
Replies: 14
Views: 5003

Re: Why is so slow ???

Hello everyone, I finally understand my mistake, I'm trying to generate a super-large library, too large for the system to handle. But I have searched the source code folder and have finally found the Code::Blocks workspace file containing many project. Each project generate a library. That was my m...
by StarBootics
Fri Oct 28, 2016 6:25 pm
Forum: Off Topic
Topic: Why is so slow ???
Replies: 14
Views: 5003

Re: Why is so slow ???

Hello everyone, Finally I have found the meaning of the failed with error 7 : It means /* Argument list too long */ . In other words the library is simply too large to be handled by Code::Blocks IDE and generate the *.so file. Ok now let's study how to use CMake to compile a project. Best regards St...
by StarBootics
Wed Oct 26, 2016 9:11 pm
Forum: Coding Questions
Topic: C++ OOP library and Interface
Replies: 24
Views: 6224

Re: C++ OOP library and Interface

Hello everyone, This is a newer version of this my example with C++ Classes and PureBasic. In this version I'm playing with structure to retrieve the version and using a structure to pass information to C++ class member. https://www.dropbox.com/s/qkvy3lhqscfxd6d/CPP_Class_Interface_V4.zip?dl=0 Best ...
by StarBootics
Sun Oct 23, 2016 3:13 pm
Forum: Off Topic
Topic: Why is so slow ???
Replies: 14
Views: 5003

Re: Why is so slow ???

Hello everyone, My journey with OpenCascade continues... ||=== Build failed: 0 error(s), 372 warning(s) (113 minute(s), 7 second(s)) ===| How I'm supposed to built successfully if the compiler don't telling me where to look ? Since I have updated my Ubuntu Gnome from 16.04 to 16.10 I'm blocked with ...
by StarBootics
Sat Oct 22, 2016 2:17 pm
Forum: Off Topic
Topic: Why is so slow ???
Replies: 14
Views: 5003

Re: Why is so slow ???

Hello everyone, @Shield : For the moment I will have to stick with my current computer since I don't have any money for a better computer. I'm just beginning with OpenCascade but what I really need is just the modeling part of the library. The stuff needed to make the geometry, the stuff needed to m...
by StarBootics
Fri Oct 21, 2016 9:09 pm
Forum: Off Topic
Topic: Why is so slow ???
Replies: 14
Views: 5003

Re: Why is so slow ???

Also don't #include in header files, only in source files. Use forward declaration in header files instead. Also use #pragma once instead of guards (or in combination) where possible. The problem about OpenCascade many classes source code are split in 3 files, *.cxx, *.hxx and *.lxx. So the compile...
by StarBootics
Fri Oct 21, 2016 6:46 pm
Forum: Off Topic
Topic: Why is so slow ???
Replies: 14
Views: 5003

Why is so slow ???

Hello everyone, 98 minutes and 3 seconds compiling then it fail because of a missing header file. My estimate for the total compiling time will be around 2 hours. Why is so slow ??? OK it's a fairly large library, that being said I don't know about how the PureBasic compiler will perform with compar...
by StarBootics
Sat Oct 15, 2016 4:02 am
Forum: Feature Requests and Wishlists
Topic: PB 6.0 - ideas
Replies: 82
Views: 33586

Re: PB 6.0 - ideas

My wish : Allow procedure defined in Module to have the same name as existing command defined in standard libraries. The same name of procedure can be used in many Module : Options::Reset() Language::Reset() Potato::Reset() ... Currently impossible now because it will be impossible to tell the diffe...
by StarBootics
Wed Oct 12, 2016 11:54 pm
Forum: Tricks 'n' Tips
Topic: Spline3D - Module
Replies: 0
Views: 1300

Spline3D - Module

Hello everyone, This is fairly small 3D Spline module derivated from Guimauve's General Maths Matrix calculation . For the moment, it's a Bezier spline implementation but I'm working on B-Spline curves but it's not working just yet. By the way, this module reuse the Vector3 module from my Gaming Mat...
by StarBootics
Tue Oct 04, 2016 5:56 pm
Forum: Feature Requests and Wishlists
Topic: Include libraries version in PB Documentation!
Replies: 9
Views: 3257

Re: Include libraries version in PB Documentation!

+1 For SQLite this is a workaround : Procedure.s GetSQLiteVersion() Protected DatabaseHandle.i = OpenDatabase(#PB_Any, ":memory:", "", "", #PB_Database_SQLite) DatabaseQuery(DatabaseHandle, "SELECT sqlite_version()") NextDatabaseRow(DatabaseHandle) Protected S...
by StarBootics
Tue Oct 04, 2016 5:51 pm
Forum: Coding Questions
Topic: C++ OOP library and Interface
Replies: 24
Views: 6224

Re: C++ OOP library and Interface

Hello everyone, I'm continuing my tests before going to a more bigger challenge. I have added a "Date" class with a private function to my example just to see if work and it does. The files are here : https://www.dropbox.com/s/loxgf4x5z8u2fdm/CPP_Class_Interface_V3.zip?dl=0 Best regards St...
by StarBootics
Sun Oct 02, 2016 4:56 pm
Forum: Coding Questions
Topic: C++ OOP library and Interface
Replies: 24
Views: 6224

Re: C++ OOP library and Interface

The problem isn't so much the memory usage but rather possible problems with interface itself (i.e. memory layout etc.). What I don't quite get, though, is why you are trying to map an interface (i.e. "OOP") just to put the code into a procedural module again, effectively calling a single...
by StarBootics
Sun Oct 02, 2016 3:01 pm
Forum: Coding Questions
Topic: C++ OOP library and Interface
Replies: 24
Views: 6224

Re: C++ OOP library and Interface

I understand your point, but my point is this ; The library I going to use is OpenCASCADE and the problem is I can't remove the Virtual Destructor from any class because C++ programmer using the same library might need them. Much worse according to the library license, if the code is being modified ...
by StarBootics
Sun Oct 02, 2016 1:14 pm
Forum: Coding Questions
Topic: C++ OOP library and Interface
Replies: 24
Views: 6224

Re: C++ OOP library and Interface

Great that you got it working. :) One thing I saw while quickly looking over it was that you now have a Release function and a destructor. That doesn't quite work, because upon calling Release(), the destructor will also be called (and thus needlessly zeroing out the values twice). I recommend not ...