Need help turning this into VB6 Code
const char* BWrepHeader::getMapName() const
{
return m_mapname;
}
I think thats all it needs, I need this to work for VB. Can anyone translate for me? I've got the whole source if its absolutely needed... I just need to get the map name off this starcraft replay file though.
Re: Need help turning this into VB6 Code
This method doesn't really do anything. It just returns the value of a member variable of the class.
In VB, you'd use a property getter for this.
Re: Need help turning this into VB6 Code
Hmm... if you have AIM you could explain to me a lil more, this is quite complicated :-/
Re: Need help turning this into VB6 Code
No, it's not. And no, I don't have AIM. Ask your questions here where everyone can see them.
Re: Need help turning this into VB6 Code
Quote:
Originally Posted by CornedBee
No, it's not. And no, I don't have AIM. Ask your questions here where everyone can see them.
Ok.... well in the source code for this, this is the ONLY code in it about getting the mapname
int getEngine() const {return m_engine;}
long getGameLength() const {return m_frames;} // in ticks
const char* getGameName() const;
const char* getGameCreatorName() const;
const char* getMapName() const;
char getMapType() const;
unsigned short getMapWidth() const {return m_mapsizeW;}
unsigned short getMapHeight() const {return m_mapsizeH;}
time_t getCreationDate() const {return m_creationDate;}
const char* BWrepHeader::getMapName() const
{
return m_mapname;
}
That's it... although I dont see how any of this could get the map name off a starcraft replay, but maybe im wrong. I wanna convert this into VB, but ive got no idea what to put, can you like, convert this to vb for me?
Re: Need help turning this into VB6 Code
I would say the relevant code is in the code that actually parses the file. The code you posted only exposes the parsed information.
Re: Need help turning this into VB6 Code
Looks like a header file. The method bodies would be defined elsewhere in the source.
Re: Need help turning this into VB6 Code
Yeah I figured as much, I cant find where though... if I post the full source code do you think someone here could find out the source that actually gets the map file name and the creation date?
http://bwchart.teamliquid.net/bin/bw...withsource.zip
There it is, i will appreciate this SO much if someone is actually genius enough to figure this out :)
Re: Need help turning this into VB6 Code
OK, the most relevant function is BWrepFile::Load in BWrepAPI.cpp, and the functions it calls in turn.
But I'm not going to translate those for you. That's a LOT of work.
Re: Need help turning this into VB6 Code
Quote:
Originally Posted by CornedBee
OK, the most relevant function is BWrepFile::Load in BWrepAPI.cpp, and the functions it calls in turn.
But I'm not going to translate those for you. That's a LOT of work.
I told you it would be :-/. Is anyone interested in doin this for me?
Re: Need help turning this into VB6 Code
Re: Need help turning this into VB6 Code
Quote:
Originally Posted by dis1411
do you have paypal?
Paypal? -_- That all depends on how much you actually want. It looks just time consuming, not hard. I thought someone would do this out of kindness, didnt think id have to pay :(
Re: Need help turning this into VB6 Code
It's a lot of work, and we're not that kind.
Re: Need help turning this into VB6 Code
Re: Need help turning this into VB6 Code
Welcome to the real world.
Re: Need help turning this into VB6 Code
well idk if you guys know this or not, but I dont want the whole thing converted, not the whole source, just 1 small part of it :-/
Re: Need help turning this into VB6 Code
Doesn't matter. You either parse all the file, or you don't. Skipping the unknown areas isn't relevantly easier than parsing them.
Re: Need help turning this into VB6 Code
If you cannot pay, try some other forums as well. But IMHO, you will get the same response everywhere.