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

Unmanaged Code

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
Jul 21 '05 #1
5 1078
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

Jul 21 '05 #2
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.
Jul 21 '05 #3
"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/>
Jul 21 '05 #4
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/>

Jul 21 '05 #5
"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/>
Jul 21 '05 #6

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

Similar topics

7
by: Timothy Shih | last post by:
Hi, I am trying to figure out how to use unmanaged code using P/Invoke. I wrote a simple function which takes in 2 buffers (one a byte buffer, one a char buffer) and copies the contents of the byte...
2
by: Paul Kenny | last post by:
Hi, I am trying to expose the functionality of an unmanaged C++ class to the other languages available in the .NET Framework. I have decided to do this by wrapping the unmanaged C++ class in a...
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: repstat | last post by:
Hi I have a project which is going to be doing some string manipulation which needs to be pretty fast. The user interface is going to be written in C#. I am going to write the string handling...
3
by: zhphust | last post by:
I want to convert a object of a managed class to a unmanaged structure that has the same member with that managed class. Can anybody tell me how i can do it? Thanks in advance. -- zhphust...
1
by: Sparhawk | last post by:
Hi, my company is going to migrate a large VC++ application to .NET to make use of Windows Forms (the old class library is not updated any more). We are not planning to migrate the rest of the...
5
by: R. MacDonald | last post by:
Hello, all, I am currently working on a .Net (VB) application that invokes routines in unmanaged (Fortran) DLLs. The unmanaged routines then communicate with the .Net application by means of a...
6
by: Stephen Walch | last post by:
Our application environment consists of three basic layers: 1. Third-party unmanaged DLLs that were written before the CLR was invented and maintain a significant amount of information (including...
6
by: Aston Martin | last post by:
Hi All, ********************** My Situation ********************** I am working on project that involves passing a structure to unmanaged code from .Net world (well using C#). Perhaps an example...
2
by: Jon Slaughter | last post by:
How difficult is it for one to integrate unmanaged C++ into C#? I know for functions one can use DLLimport but how does one go about doing it for classes? Do I have to completely reimplement the...
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: 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?
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
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.