-
February 25th, 2003, 07:28 AM
#1
"Include" other files into exe...
I'm sure I read somewhere on codeguru about how to include other files into the .exe (Like .ocx, .dll). Do anyone here know about it or have a link where I can read about it?
VB6 SP5 ACCESS MSSQL mySQL CR
-
February 25th, 2003, 07:35 AM
#2
.Dll- menu Project>References
.Ocx- menu project>Components
For the above to apear they must be registered on your computer. If you created them in VB this is done automaticaly, but if you downloaded them or copied them you'll have to run regsvr32 to register them on your computer.
Your code can only be as good as your algorithm.
-
February 25th, 2003, 07:40 AM
#3
Hmm... I mean that when I made the exe I want to include them into the exe, so I don't need a Setup... Sounds strange maybee... But I have read about it...
VB6 SP5 ACCESS MSSQL mySQL CR
-
February 25th, 2003, 07:42 AM
#4
Your code can only be as good as your algorithm.
-
February 25th, 2003, 07:45 AM
#5
Yes you can do it in VB. in Tools menu you have Resource editor (if not, then add it from the Add-ins menu). There add custom resource to you program. Then use LoadResData to get that data.
-
February 25th, 2003, 07:54 AM
#6
How do you use LoadResData to load a DLL as I understand it this function only works with
1 Cursor resource
2 Bitmap resource
3 Icon resource
4 Menu resource
5 Dialog box
6 String resource
7 Font directory resource
8 Font resource
9 Accelerator table
10 User-defined resource
12 Group cursor
14 Group icon
How do you use it to load a DLL?
Your code can only be as good as your algorithm.
-
February 25th, 2003, 08:16 AM
#7
In 10 User-defined resource you can store any data you like, including files. as far as I understand stickan didn't want to load it, just keep it with the exe.
To load a dll, you save that resource as a dll in runtime and just use it (depending on the type of dll you may also have to register or Load it with LoadLibrary API)
-
February 25th, 2003, 09:16 AM
#8
Ok
I solved the problem. Maybee I was a little indistinct... What I wanted to do was to include my own made Active X:s. Then I just need to add the user control module to the standard exe project.
Last edited by stickan; February 25th, 2003 at 09:18 AM.
VB6 SP5 ACCESS MSSQL mySQL CR
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
|