473,396 Members | 2,018 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,396 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
Nov 21 '05 #1
5 1368
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
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
"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
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
"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 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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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,...
0
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...

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.