-
Oct 3rd, 2006, 02:51 AM
#1
Thread Starter
Junior Member
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.
-
Oct 3rd, 2006, 04:01 AM
#2
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 3rd, 2006, 04:02 AM
#3
Thread Starter
Junior Member
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 :-/
-
Oct 3rd, 2006, 04:06 AM
#4
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 3rd, 2006, 04:21 AM
#5
Thread Starter
Junior Member
Re: Need help turning this into VB6 Code
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?
-
Oct 3rd, 2006, 04:28 AM
#6
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 3rd, 2006, 04:29 AM
#7
Re: Need help turning this into VB6 Code
Looks like a header file. The method bodies would be defined elsewhere in the source.
-
Oct 3rd, 2006, 04:44 AM
#8
Thread Starter
Junior Member
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
-
Oct 3rd, 2006, 04:53 AM
#9
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 3rd, 2006, 05:12 AM
#10
Thread Starter
Junior Member
Re: Need help turning this into VB6 Code
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?
-
Oct 3rd, 2006, 01:07 PM
#11
Frenzied Member
Re: Need help turning this into VB6 Code
-
Oct 3rd, 2006, 03:51 PM
#12
Thread Starter
Junior Member
Re: Need help turning this into VB6 Code
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
Last edited by Hurricane; Oct 3rd, 2006 at 04:09 PM.
-
Oct 3rd, 2006, 09:23 PM
#13
Re: Need help turning this into VB6 Code
It's a lot of work, and we're not that kind.
-
Oct 3rd, 2006, 11:02 PM
#14
Thread Starter
Junior Member
Re: Need help turning this into VB6 Code
-
Oct 3rd, 2006, 11:11 PM
#15
Re: Need help turning this into VB6 Code
Welcome to the real world.
-
Oct 3rd, 2006, 11:32 PM
#16
Thread Starter
Junior Member
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 :-/
-
Oct 4th, 2006, 01:43 AM
#17
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Oct 4th, 2006, 07:24 AM
#18
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|