123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|522|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> On Topic -> Working Between Compilers

Tue, 19 Jul 2011, 18:09
jedimastersterli
another noob-ish question. I've been working on a Code::Blocks C++ compiler, and i just got a Visual Studios Visual Basic compiler. Now I'm looking to get a new SFML library for my Code::Blocks compiler, and I'm a little worried about how to integrate them all.

I find it easier to write logic in C++, but Visual Basic buries Win32 when it comes to GUI, and when I make a physics simulator with SFML I'm gonna want to make an application with it. So I need a C++ program to calculate physics for a SFML display but I need VB to include that display as part of an application.

Somewhere in this I need to be able to have a button on my VB application window change a variable in the C++ physics calculator, and i need to be able to print variables from the C++ part of the program to text lines on the VB application window. And in the end I need it to publish as one, self contained, program.

So how the jank do you do this?
Tue, 19 Jul 2011, 23:31
shroom_monk
Trying to do what you've described is (probably) going to make things far more complex than they need be. Making a GUI in C++, although a touch easier with SFML, is still a pain - but think about it: do you really need one? Rather than a clickable button, could you instead get away with a keyboard key that when pressed does whatever you wanted the button to do? That does away with needing two languages, and you don't need to make a GUI.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Mon, 01 Aug 2011, 16:52
jedimastersterli
The problem is that if i want to share or demonstrate this, it's too complicated to tell someone each what each button does. Much easier to have self explanitory program, and the best way to do that is GUI.
Mon, 01 Aug 2011, 16:59
shroom_monk
Well, a quick Google search turns up this, which is a bunch of GUI libraries for SFML. I've never used any, so I can't give much advice on them, but if you need a GUI and would rather concentrate on your actual project functionality instead of making a GUI, then you could give some of those a shot.

-=-=-
A mushroom a day keeps the doctor away...

Keep It Simple, Shroom!
Tue, 02 Aug 2011, 13:42
Cower
Code::Blocks isn't a compiler. Also, mixing C++ and VB is going to be downright painful, so just don't do it.
Tue, 02 Aug 2011, 15:12
Afr0
Yeah, what Cower said. It sounds more like you want C# to calculate physics and then have VB.NET use the calculations. Or you could have C++ calculate the physics and have VB.NET or C# use the calculations. Or you could just stick to one language..

-=-=-
Afr0 Games

Project Dollhouse on Github - Please fork!
Thu, 04 Aug 2011, 09:53
jedimastersterli
Realy that hard huh.

I'll try to avoid it for now, but eventualy I'm gonna need some more powerfull tools, I guess I got allot to learn before then.