Current location: Hot Scripts Forums » Programming Languages » Visual Basic » [SOLVED] Embed a EXE in a VB6 Project


[SOLVED] Embed a EXE in a VB6 Project

Reply
  #1 (permalink)  
Old 04-04-08, 03:20 PM
Newb-Man's Avatar
Newb-Man Newb-Man is offline
Newbie Coder
 
Join Date: Mar 2006
Posts: 84
Thanks: 0
Thanked 0 Times in 0 Posts
Stop [SOLVED] Embed a EXE in a VB6 Project

Is it possible to embed an EXE my friend made using VB6 in my application without getting the source code. The idea is to create a sort of effect similar to an iFrame in a web page. Idk whether this is possible but i'de love to see it happen.

Thx for the help
__________________
Why not check out my website
EXPIRINGLINKS.CO
EXPIRINGLINKS.CO

It's allows you to make secure, encrypted links that expire when tell them to (or not at all if you wish). The best thing for posting links on forums.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 04-04-08, 07:15 PM
TheKiser TheKiser is offline
Wannabe Coder
 
Join Date: Aug 2007
Location: Texas
Posts: 151
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Newb-Man View Post
Is it possible to embed an EXE my friend made using VB6 in my application without getting the source code. The idea is to create a sort of effect similar to an iFrame in a web page. Idk whether this is possible but i'de love to see it happen.

Thx for the help
Ask your friend if they could create a DLL instead of an EXE and then you can include in any project. That is basically what companies selling third party controls are doing.
__________________
6 Steps to Successfully Solving Problems:
Step 1: RTFM ............................. Step 4: Post in ProgrammingTalk
Step 2: See Step 1. ................... Step 5: Wait for answers.
Step 3: See Step 2. ................... Step 6: While Waiting RTFM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 04-05-08, 09:01 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
Quote:
Originally Posted by Newb-Man View Post
Is it possible to embed an EXE my friend made using VB6 in my application without getting the source code. The idea is to create a sort of effect similar to an iFrame in a web page. Idk whether this is possible but i'de love to see it happen.

Thx for the help
Yes, you can embed any file (including exe) into an OLE control, then execute it using:

Code:
OLEControlName.DoVerb
I hope it helps. Let me know if you can't figure it out and I will put a quick example together for you if needed.

Pete
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 04-05-08, 03:20 PM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,167
Thanks: 3
Thanked 8 Times in 8 Posts
I had a few minutes to put an example together for you. See attached project.


Pete
Attached Files
File Type: zip Embeded EXE Using OLE.zip (4.5 KB, 977 views)
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 04-07-08, 08:15 AM
Keithuk's Avatar
Keithuk Keithuk is offline
Newbie Coder
 
Join Date: Sep 2004
Location: Staffordshire, England
Posts: 64
Thanks: 0
Thanked 0 Times in 0 Posts
You can embed any type of file (exe or otherwise) that you want to in a Resource file. Extract it then use it. But rememeber if this exe is 500Kb then it increases the size of your compiled exe by 500Kb.
__________________
I've been programming with VB for 13 years. Started with VB4 16bit Pro, VB5 Pro, VB6 Pro/Enterprise and now VB3 Pro. But I'm no expert, I'm still learning.

http://www.martin2k.co.uk/forums/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 07-14-11, 01:09 AM
ocean-seven ocean-seven is offline
New Member
 
Join Date: Jul 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Hi , i still have a problem, would it be possible to make a video?

im more a visual person.

the thing is that the project i am on requires me to create tabs , in these tabs i need to put the Exe file of a game , that is already instaled on once computer ( go there , if not go there ... all possible locations to get the program , than if not show message error ) i can do that , but putting the exe in the tab , or even another form such i made a radio with vb 2010 , it has 3 player , a menu file etc.. and i would like to add it in a tab of my bigger project , also a web browser , but i can't figure out how to.

can anyone make a video? i would be so greatfull so would lots of other people.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programmers needed for forum-building project Tyler Cole Job Offers & Assistance 15 06-12-05 06:09 PM
I need help with a HUGE new project! Debonair23 Job Offers & Assistance 0 05-30-05 10:05 PM
Need a vb.net programmer to convert vb6 project to vb.net asimkhan Job Offers & Assistance 0 05-24-05 09:44 AM
Looking for PHP Programmers for High Profile Mozilla Project stscac Job Offers & Assistance 3 03-31-05 05:03 AM


All times are GMT -5. The time now is 09:09 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.