473,503 Members | 2,107 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1486
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
4123
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
528
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
96473
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
4765
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
2494
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
39934
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
1250
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
299
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
9996
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
7205
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
7093
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7011
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...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5023
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3180
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.