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

S

sachin

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
 
W

William Gower

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.
 
S

sachin

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
 
N

Nick Malik

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
 
S

sachin

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
 
S

Steve McLellan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top