|
-
Aug 11th, 2000, 01:36 AM
#1
Thread Starter
Addicted Member
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
-
Aug 11th, 2000, 03:15 AM
#2
Lively Member
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.
-
Aug 11th, 2000, 04:53 AM
#3
Thread Starter
Addicted Member
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
-
Aug 11th, 2000, 10:03 AM
#4
you mean while the person is using your program?
or like a keylogger or something?
-
Aug 11th, 2000, 10:12 AM
#5
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|