|
Post by Darkjester on Dec 29, 2008 14:51:03 GMT -5
Im having some serious issues implementing a standard style header with some functions for a plugin im making whats the "right" way to do so with the bas4gl plugin sdk?
|
|
|
Post by Darkjester on Dec 30, 2008 15:20:59 GMT -5
Or at least using seperate files with the sdk...
|
|
|
Post by Darkjester on Jan 7, 2009 21:45:27 GMT -5
Hello what is the proper way to use multiple files and headers in c++ with the basic4gl plugin sdk. So that i can make complex plugins with classes and oop?
|
|
|
Post by DJLinux on Jan 7, 2009 21:58:45 GMT -5
Hello what is the proper way to use multiple files and headers in c++ with the basic4gl plugin sdk. So that i can make complex plugins with classes and oop? you can #include "yourfile.ext" as "normal" code text files our you must add your *.cpp files to the project your IDE will than compile this *.cpp files together with your main.cpp file you know? Joshy the most IDE's has a treeview for all project files +headers +-main.h +-mysuperclass.h +-myotherclass.h +sources +-main.cpp +-mysuperclass.cpp +-myotherclass.cpp or include it in your main.cpp file: #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <Basic4GLDLLInterface.h> #include <Basic4GLStandardObjects.h> #include "mysuperclass.h" #include "myotherclass.h"
|
|
|
Post by Darkjester on Jan 8, 2009 13:01:38 GMT -5
So you just add file.cpp to the sources tree? Does that automatically link to main.cpp? What about the way the sdk accepts classes?
|
|
|
Post by smc44 on Jan 9, 2009 7:12:56 GMT -5
look in the SDK folder, as you can see there is an include folder, save all of your headers in there, then when reffered to in your main code, include them like this, #include "NewHeader.h", and thats it. I thought that when you add C++ files they are autmatically linked, but there are some other things you have to do.
|
|
|
Post by Darkjester on Jan 10, 2009 14:22:36 GMT -5
look in the SDK folder, as you can see there is an include folder, save all of your headers in there, then when reffered to in your main code, include them like this, #include "NewHeader.h", and thats it. I thought that when you add C++ files they are autmatically linked, but there are some other things you have to do. IM quite aware aware of that smc  lolz the problem is external classes for object oriented programming, also you can put your headers in any directory you choose. -Darkjester
|
|
|
Post by smc44 on Jan 10, 2009 19:27:56 GMT -5
yep the header things are simple, you can just go to the project options and include any header you want
|
|