Classes in VB -> C++
Okay, if I make a game in C++, using classes and stuff, is there a way to make a level editor in Visual Basic?
Are all the ints chars and other stuff declared the same?
Or is there an easy (free) way to learn the complexities of opening dialog boxes and stuff in windows?
In theory I would like to make a level editor that felt like QOOLE or WORLDCRAFT but just for a 2D tile game. Ie. have right click pop up menus and alter properties and such in dialog boxes.
I don''t really want to buy a book just to learn how to do this.
thanks all!
wise_guy
Yep, you can make a level editor in VB if you make the game in C++. And why should it matter if you use classes? You just make VB save the level files and the C++ game read them...
>> Are all the ints chars and other stuff declared the same? <<
Nope. First of all, there is no char in VB You declere a var in VB like so:
Dim name As type
So if I wanted to make a string called "hello" then I would write:
Dim hello As string
I think you're going to need a book if you're going to learn VB
/. Muzzafarath
Mad House Software
Edited by - Muzzafarath on June 11, 2000 8:49:37 AM
>> Are all the ints chars and other stuff declared the same? <<
Nope. First of all, there is no char in VB You declere a var in VB like so:
Dim name As type
So if I wanted to make a string called "hello" then I would write:
Dim hello As string
I think you're going to need a book if you're going to learn VB
/. Muzzafarath
Mad House Software
Edited by - Muzzafarath on June 11, 2000 8:49:37 AM
I'm reminded of the day my daughter came in, looked over my shoulder at some Perl 4 code, and said, "What is that, swearing?" - Larry Wall
I think he was referring to char as in byte, not character... Anyway, look in the MSDN documentation for Visual Basic, and there is probably something that will tell you the sizes of data types, and you could write a VB class that is compatible with yout C++ one, I think. Just be sure to output the variables one at a time (I dont know if it''s safe to save a class in one write) and I think you might have to make sure the member alignment is set the same for the C++ compiler and the VB one.
(I dont know anything about VB, though, so I could be wrong).
(I dont know anything about VB, though, so I could be wrong).
All you have to worry about is the file format, since there won''t be any other connection between your editor and your program... so when you save your map file, make sure you write the datas properly.
Now I know what I'm made of, and I'm afraid of it...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement