Results 1 to 5 of 5

Thread: EXE, Graphics, etc.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Hiyas,

    I don't know too much about VB, but I'm hoping this'll be easy enough for someone to answer.

    I have form with an Image, and I have opened a BMP into the Image. The FRX file is quite big though, about 500 kb, and when I compile the EXE it's about 400 kb as well.

    My questions are :

    1. Is the FRX file a sort of resources file with 'built in' stuff rather than stuff just loaded during runtime?
    2. Is the BMP compiled with the EXE rather than just being left in it's original location and being accessed for loading?
    3. Is there any way to keep it in the original location without it getting compiled in the EXE? I thought maybe putting LoadPicture blah blah blah in Form_Load, but it could be a pain if I add more images (I'm planning to).

    Thanks,

    -Git

  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Vaxjo, Sweden
    Posts
    85
    1) The frx file contains all the graphics in the form.
    2) The picture is compiled into the exe.
    3) You could have a directory called "Pictures" or something in the directory you're exe is stored in. Then you'd do this to load the picture.
    Code:
    Set Picture1.Picture = LoadPicture(App.Path & "\Pictures\WhateverPicture.bmp")
    If you have many large pictures, this is preferable, since a large exe would take longer to execute.

    //Anders
    Reality is what you make up when you can't handle your fantasies.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Thanks. =) Just converted it over, seems to work just as quick uncompiled. I'll compile and test it soon.

    Btw, how do you capture what a user types? Eg. for cheat codes, how do you detect that?

    -Git

  4. #4
    Guest
    you mean while the person is using your program?
    or like a keylogger or something?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Posts
    225
    Yeah, basically just something which monitors key strokes or whatever...

    -Git

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