PDA

Click to See Complete Forum and Search --> : C++ to VB (HELP!!)


Fozzy
Apr 15th, 2002, 06:54 AM
I need to open a file in a game called red faction and add the contents to a combobox (In VB). but the source on how to do this is in C++

PLEASE can someone look at the source and tell me what it means in VB

(VPP file contain other files like a zip file but not compresed, I need to read those file names, especialy the .RFL files)

http://www.red-faction.com/ddn/specs/vpp/

If anyone owns RF, this is what i am working on:

http://www26.brinkster.com/fargate/malm.html

Technocrat
Apr 15th, 2002, 10:31 AM
Do you want just the source on the linked page or the entire source code that is downloadable?

You just want to know what the code does?

Fozzy
Apr 15th, 2002, 02:07 PM
All that I would like to know is how do I open a file of that type in VB and read off the entrys and add them to a text box.

E.G. Entry in MyGame.vpp = jackpot.rfl and firstlevel.tga

Fozzy
Apr 17th, 2002, 03:32 AM
Help Me, please !!! :-)

Technocrat
Apr 17th, 2002, 09:22 AM
Sorry but thats to big of a project for me to take on right now. It looks to me that your only choice in the matter is to make a DLL in C++, using some of that source code, then load it into VB. Unless I am mistaken it would be too difficult (If not impossible) to do the loading, offsetting, and masking in VB. If you can find someone with the time, it should not take more than a few days to transfer the source code into a DLL, write the DLL loading and function code, rewrite the ruturned info to be in a VB string, then test it.

The soonest I could do would be in about a week, when I finish some other projects.

Fozzy
Apr 17th, 2002, 02:02 PM
I would be very greatfull, :)

Of course I would add your name to a devlopment list, if we can get it working, do you own "Red Faction".

Technocrat
Apr 17th, 2002, 02:08 PM
*looks around to see who is listening*
I dont own it persay....but I have it

parksie
Apr 17th, 2002, 02:46 PM
Originally posted by Technocrat
persayNever quite seen it spelt like that before ;)

Technocrat
Apr 17th, 2002, 02:48 PM
:rolleyes: in a rush

dubae524
Apr 20th, 2002, 09:57 PM
Why do you want to do it on VB so much?