Results 1 to 18 of 18

Thread: Need help turning this into VB6 Code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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 :-/

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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?

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  7. #7
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Need help turning this into VB6 Code

    Looks like a header file. The method bodies would be defined elsewhere in the source.

  8. #8

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  10. #10

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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?

  11. #11
    Frenzied Member dis1411's Avatar
    Join Date
    Mar 2001
    Posts
    1,048

    Re: Need help turning this into VB6 Code

    do you have paypal?

  12. #12

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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
    Last edited by Hurricane; Oct 3rd, 2006 at 04:09 PM.

  13. #13
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Need help turning this into VB6 Code

    It's a lot of work, and we're not that kind.

  14. #14

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    Re: Need help turning this into VB6 Code

    That sucks.

  15. #15
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Need help turning this into VB6 Code

    Welcome to the real world.

  16. #16

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Posts
    22

    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 :-/

  17. #17
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  18. #18
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    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.
    Show Appreciation. Rate Posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width