473,388 Members | 1,400 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,388 software developers and data experts.

What is the best way to moving managed code to unmanaged code?

Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of that,
then i require .net framework installed on that machine where i am going to
run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this problem?

My Goal is without having framework installed i want to run my app.

Thanks
Sachin


Jul 21 '05 #1
7 1473
So what is the problem with having the framework installed? Include the
framework on the installation CD or have the user download it and install it
themselves. In the future everyone will have the framework and this will
not be an issue. I don't understand the reluctance of developers to shy
away from managed code just because the app has to run under the framework.
Why would anyone want to go back to VB 6 from .NET. That's like saying I am
tried of my present day computer give me a computer with a 10 mb hard drive
running dos in 640 k of ram.
"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of that, then i require .net framework installed on that machine where i am going to run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this problem?
My Goal is without having framework installed i want to run my app.

Thanks
Sachin

Jul 21 '05 #2
Hi,

The reason is my cutomers doesn't want to install .net framework coz of
1.download size.
2.My App size is only 2Mb size. So i don't want to put .net framework into
my setup file

also currently framework doesn't come as part of OS.

Sachin
"William Gower" <w_*****@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP11.phx.gbl...
So what is the problem with having the framework installed? Include the
framework on the installation CD or have the user download it and install it themselves. In the future everyone will have the framework and this will
not be an issue. I don't understand the reluctance of developers to shy
away from managed code just because the app has to run under the framework. Why would anyone want to go back to VB 6 from .NET. That's like saying I am tried of my present day computer give me a computer with a 10 mb hard drive running dos in 640 k of ram.
"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of

that,
then i require .net framework installed on that machine where i am going

to
run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this

problem?

My Goal is without having framework installed i want to run my app.

Thanks
Sachin


Jul 21 '05 #3
I must agree with William. It is foolish to do what you are doing.

Windows XP has the framework installed. Windows 2003 has the framework
installed. Over the past two years, millions of Windows 2000 and Windows 98
machines have had the framework installed for some other application.

You cannot run a Java app without the JVM. It is harder to install a JVM
than it is to install the .NET framework IMHO.
Why fret about this?

There is a company that makes a product that creates a smaller download of
the framework by creating a DLL that contains only the classes that your app
uses. It isn't the best technical solution but it will make for a smaller
download. I can't remember the name off the top of my head, but I've seen
it referenced on one of the NGs.

Hope this helps,
--- Nick

"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of that, then i require .net framework installed on that machine where i am going to run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this problem?
My Goal is without having framework installed i want to run my app.

Thanks
Sachin

Jul 21 '05 #4
I must agree with William. It is foolish to do what you are doing.

Windows XP has the framework installed. Windows 2003 has the framework
installed. Over the past two years, millions of Windows 2000 and Windows 98
machines have had the framework installed for some other application.

You cannot run a Java app without the JVM. It is harder to install a JVM
than it is to install the .NET framework IMHO.
Why fret about this?

There is a company that makes a product that creates a smaller download of
the framework by creating a DLL that contains only the classes that your app
uses. It isn't the best technical solution but it will make for a smaller
download. I can't remember the name off the top of my head, but I've seen
it referenced on one of the NGs.

Hope this helps,
--- Nick

"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of that, then i require .net framework installed on that machine where i am going to run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this problem?
My Goal is without having framework installed i want to run my app.

Thanks
Sachin

Jul 21 '05 #5
Hi All,

I understand the way Nick thinks. But I am in a design phase. I have my
engine ready to go. My main concern now is to choose the technology. I am
seeing my product going for 5 to 6 yrs.

I am designing a product people. Its not a project. I don't know whether
this dotnet will stand in future or not. I don't know whether dotnet
supports low level programming as platform SDK does. I am asking to the
experts which technology I can consider to stabilise my product. I know many
people who make hurry in choosing technology and believe me they are
suffering till now. I don't want to make that mistake. Hope you understand
this.

Sachin
"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of that, then i require .net framework installed on that machine where i am going to run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this problem?
My Goal is without having framework installed i want to run my app.

Thanks
Sachin

Jul 21 '05 #6
Hi All,

I understand the way Nick thinks. But I am in a design phase. I have my
engine ready to go. My main concern now is to choose the technology. I am
seeing my product going for 5 to 6 yrs.

I am designing a product people. Its not a project. I don't know whether
this dotnet will stand in future or not. I don't know whether dotnet
supports low level programming as platform SDK does. I am asking to the
experts which technology I can consider to stabilise my product. I know many
people who make hurry in choosing technology and believe me they are
suffering till now. I don't want to make that mistake. Hope you understand
this.

Sachin
"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of that, then i require .net framework installed on that machine where i am going to run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in VC++.

My Question is, Do u people have any better approach to solve this problem?
My Goal is without having framework installed i want to run my app.

Thanks
Sachin

Jul 21 '05 #7
20MB isn't much nowadays, and it's also part of Windows Update. Going
backwards will cause you heartache and pain - unless you really expect your
users to rebel if you ask them to download the framework (or keep their OS's
up to date), stick with what you've got.

Steve

"sachin" <sa****@oopsystems.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Hi,

The reason is my cutomers doesn't want to install .net framework coz of
1.download size.
2.My App size is only 2Mb size. So i don't want to put .net framework into
my setup file

also currently framework doesn't come as part of OS.

Sachin
"William Gower" <w_*****@hotmail.com> wrote in message
news:er**************@TK2MSFTNGP11.phx.gbl...
So what is the problem with having the framework installed? Include the
framework on the installation CD or have the user download it and install
it
themselves. In the future everyone will have the framework and this
will not be an issue. I don't understand the reluctance of developers to shy
away from managed code just because the app has to run under the

framework.
Why would anyone want to go back to VB 6 from .NET. That's like saying I am
tried of my present day computer give me a computer with a 10 mb hard

drive
running dos in 640 k of ram.
"sachin" <sa****@oopsystems.com> wrote in message
news:eE**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have an application which is web based. I am hosting it on VB.Net
container, ie winform. Now i am facing a problem. If i make an exe of

that,
then i require .net framework installed on that machine where i am going to
run this.

So I want to move this managed code to unmanaged side i,e to VC++ by
converting VB.Net code to VB 6.0 and then importing VB 6.0 dll in

VC++.
My Question is, Do u people have any better approach to solve this

problem?

My Goal is without having framework installed i want to run my app.

Thanks
Sachin



Jul 21 '05 #8

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

Similar topics

44
by: lester | last post by:
a pre-beginner's question: what is the pros and cons of .net, compared to ++ I am wondering what can I get if I continue to learn C# after I have learned C --> C++ --> C# ?? I think there...
22
by: Alper AKCAYOZ | last post by:
Hello Esteemed Developers and Experts, I have been using Microsoft Visual C++ .NET for 1 year. During this time, I have searhed some topics over internets. Most of the topics about .NET is...
5
by: VM | last post by:
What's marshalling? I've had to use it extensively for a project but I don't know what it means. I tried to look for a definition in the Internet but I couldn't find anything that would explain...
5
by: Philippe Bertrand | last post by:
Using C#, I want to send a byte array to an unmanaged function with the minimum amount of copies. The array is input only and won't be modified (its copied on the unmanaged side). I'm currently...
4
by: 0to60 | last post by:
I'm trying to create a .dll with VS.NET 2003 Architect that contains a math computational component. I need the guts of the thing to be in native code, as performance is key for that part. But, I...
4
by: Rachel Suddeth | last post by:
What is the difference between a managed/unmanaged resource, and how do you tell which is which? I'm trying to understand how to write some Dispose() methods, and we are supposed to put code that...
4
by: Bae,Hyun-jik | last post by:
Hi, What is the best case for accessing managed code from unmanaged C++ code, considering that the unmanaged code doesn't have managed extension? Please reply. Thanks in advance. Regards,...
5
by: sachin | last post by:
Hi All, I have an application which is web based. I am hosting it on VB.Net container, ie winform. Now i am facing a problem. If i make an exe of that, then i require .net framework installed on...
20
by: Joe | last post by:
Is any one charting packing considered to be the "best"? We've used ChartFX but wasn't too happy about the way data had to be populated along with some other issues which slip my mind right now and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.