By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,613 Members | 1,890 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,613 IT Pros & Developers. It's quick & easy.

Unmanaged Code

P: n/a
Hello,

How do you write unmanaged code in vb.net? Currently, If I need to write an
installer or a small program that should not be managed by the .net
framework then I have have to use vb6.0. Is there a way to make small
programs that will run without the .net framework in VS.NET?

Is there a book on this (if it is possible)? If so it's name would be
greatly appreciated.

Chuck
Nov 21 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
Hi,

The only way to write unmanaged code with vs.net 2003 is to write a
win32 project in c++

Ken
-------------
"Charles A. Lackman" <Ch*****@CreateItSoftware.net> wrote in message
news:eB**************@TK2MSFTNGP10.phx.gbl...
Hello,

How do you write unmanaged code in vb.net? Currently, If I need to write an
installer or a small program that should not be managed by the .net
framework then I have have to use vb6.0. Is there a way to make small
programs that will run without the .net framework in VS.NET?

Is there a book on this (if it is possible)? If so it's name would be
greatly appreciated.

Chuck

Nov 21 '05 #2

P: n/a
Charles A. Lackman wrote:
How do you write unmanaged code in vb.net?


All .NET code is managed. Therefore use VB6 or VC++ if you want to make
unmanaged code.
Nov 21 '05 #3

P: n/a
"Leon Mayne [MVP]" <l.********@uea.ac.uk> schrieb:
How do you write unmanaged code in vb.net?


All .NET code is managed. Therefore use VB6 or VC++ if you want to make
unmanaged code.


ACK, but notice that VB6 is /not/ a good choice for an installer because it
would require a bootstrapper written in another programming language to make
sure VB6's runtime files are installed/registered in the right version on
the machine.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #4

P: n/a
OK,
If you write the program in VB6, write the installer with .NET - you need
what now...
It would leave the VB6 program behind with no dependency on .NET other than
for the installation?
Jamie
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:O7**************@TK2MSFTNGP10.phx.gbl...
"Leon Mayne [MVP]" <l.********@uea.ac.uk> schrieb:
How do you write unmanaged code in vb.net?


All .NET code is managed. Therefore use VB6 or VC++ if you want to make
unmanaged code.


ACK, but notice that VB6 is /not/ a good choice for an installer because
it would require a bootstrapper written in another programming language to
make sure VB6's runtime files are installed/registered in the right
version on the machine.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #5

P: n/a
"jamie" <an*******@nospam.somewhere.com> schrieb:
If you write the program in VB6, write the installer with .NET - you need
what now...
It would leave the VB6 program behind with no dependency on .NET other
than for the installation?


VB6 doesn't depend on .NET, but it depends on its own runtime libaries.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.