473,385 Members | 1,337 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

using VB6 exe in vb.net project?

Hi,

I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project i'm
making now... i want it as an easter egg or something

Is that possible - without translating it to vb.net - ?
Maybe if i make a dll of it in vb6?

thx for any info on this

Nov 20 '05 #1
11 1727
If you turned it into a VB 6.0 .dll, you could just reference it as a COM
object from .NET and use it in .NET.
"sotto" <ju**@sotto.invalid> wrote in message
news:nj*********************@hestia.telenet-ops.be...
Hi,

I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project i'm
making now... i want it as an easter egg or something

Is that possible - without translating it to vb.net - ?
Maybe if i make a dll of it in vb6?

thx for any info on this

Nov 20 '05 #2
* sotto <ju**@sotto.invalid> scripsit:
I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project
i'm making now... i want it as an easter egg or something

Is that possible - without translating it to vb.net - ?
Maybe if i make a dll of it in vb6?


You can ship it with your .NET application and start the executable
using 'Shell' or 'System.Diagnostic.Process.Start'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #3
But would that get his VB 6 app running "in" his .NET app like he said?
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:er**************@TK2MSFTNGP09.phx.gbl...
* sotto <ju**@sotto.invalid> scripsit:
I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project
i'm making now... i want it as an easter egg or something

Is that possible - without translating it to vb.net - ?
Maybe if i make a dll of it in vb6?


You can ship it with your .NET application and start the executable
using 'Shell' or 'System.Diagnostic.Process.Start'.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #4
* "Scott M." <s-***@BADSPAMsnet.net> scripsit:
But would that get his VB 6 app running "in" his .NET app like he said?


"in"... He can try to create an ActiveX control with the game surface
and use this control in his VB.NET application (the OCX).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5
Why not just turn the vb 6 app into a .dll and put a wrapper around it and
use it from within .NET?

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:Ol**************@TK2MSFTNGP12.phx.gbl...
* "Scott M." <s-***@BADSPAMsnet.net> scripsit:
But would that get his VB 6 app running "in" his .NET app like he said?


"in"... He can try to create an ActiveX control with the game surface
and use this control in his VB.NET application (the OCX).

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #6
Cor
Hi Sotto,

I know comparising to Herfried and probably Scott nothing from VB6.

But for a one page thing I would translate it to VB.net.

When it is ready you have no trouble anymore with Dll that are or are not.

Just my thought,

Cor
I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project i'm
making now... i want it as an easter egg or something

Nov 20 '05 #7
So that would be like making a usercontrol in vb6 that i can use in vb.net?

So i'd have (in vb.Net) a form where-on i put the control & then access
some properties or methods to start the game.

ok ... think it's going to be quite a lot of adaptation of the vb6
project ... but it's good to know that it's possible

thx

Scott M. wrote:
If you turned it into a VB 6.0 .dll, you could just reference it as a COM
object from .NET and use it in .NET.
"sotto" <ju**@sotto.invalid> wrote in message
news:nj*********************@hestia.telenet-ops.be...
Hi,

I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project i'm
making now... i want it as an easter egg or something

Is that possible - without translating it to vb.net - ?
Maybe if i make a dll of it in vb6?

thx for any info on this



Nov 20 '05 #8
sotto wrote:
So that would be like making a usercontrol in vb6 that i can use in vb.net?

So i'd have (in vb.Net) a form where-on i put the control & then access
some properties or methods to start the game.

ok ... think it's going to be quite a lot of adaptation of the vb6
project ... but it's good to know that it's possible

thx


Nov 20 '05 #9
No, i don't feel like rewriting the whole thing ...
it's something that works... so no need to re-invent the wheel ... and
besides, it's not too important.

You got a point with the dll-sh*t,
but i guess that's why we have the beautifull setup-projects :-)

sotto


Cor wrote:
Hi Sotto,

I know comparising to Herfried and probably Scott nothing from VB6.

But for a one page thing I would translate it to VB.net.

When it is ready you have no trouble anymore with Dll that are or are not.

Just my thought,

Cor

I have once made a little game in vb6 ... it's a 1 form application...
Now i'm wondering if i can get that application in my vb.net project i'm
making now... i want it as an easter egg or something



Nov 20 '05 #10
* "Scott M." <s-***@BADSPAMsnet.net> scripsit:
Why not just turn the vb 6 app into a .dll and put a wrapper around it and
use it from within .NET?


Yes, that will work too.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #11
* sotto <ju**@sotto.invalid> scripsit:
[...]

It's a reply to Scott M.'s message.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jimmy Tran | last post by:
Hi Folks, I have a web database written in asp and using access97. I have many projects, but each project is being held responsible by a person. All people and projects come from the database....
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
5
by: Derek Martin | last post by:
I am creating a windows service and have added a reference to a DLL project that I have created. That DLL file is correctly referenced in both a windows app and a web app, all in the same...
2
by: Bill Nguyen | last post by:
I would like to add a new VB.NET project using the same folder being used by another project so that I can share several forms already creaded by the other project. However, .NET created a new...
1
by: Diffident | last post by:
Hello All, I have a question as to why my users are noticing error when I am building the project on the production system. Here is the problem's background. In order to build the project on...
8
by: Bruce | last post by:
I am using VB in Vs2005. Am I missing something or does VB not have the concept of "builds" (release/debug) like in VC? I wrote an assembly and I would like to have a debug version of the DLL...
12
by: BDowling | last post by:
Hi all, I have an existing Visual C++ project that builds a DLL (not COM or ATL or anything). I wish to use this DLL in a Visual Studio 2005 C# project without having to define each function and...
6
by: =?Utf-8?B?WW9naSBXYXRjaGVy?= | last post by:
Hello, I am using Visual Studio-2003. I created a project to build my library. Since I am using third party libraries as well, I have specified those additional library dependencies in project...
6
by: Daniel Kraft | last post by:
Hi all, in my C++ projects, I usually make "heavy use" of namespaces to "encapsulate" my code. When I have for instance something like this: namespace project { namespace part1 { ... }...
3
by: Jeff | last post by:
I have a solution with two projects. Project A is the startup project, while Project B serves as the project with the data logic. At run time, the first thing I need to do is write to Project...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.