Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / December 2004

Tip: Looking for answers? Try searching our database.

Unmanaged Code

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Charles A. Lackman - 25 Dec 2004 19:46 GMT
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
Ken Tucker [MVP] - 25 Dec 2004 20:09 GMT
Hi,

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

Ken
-------------
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
Leon Mayne [MVP] - 25 Dec 2004 22:15 GMT
> 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.
Herfried K. Wagner [MVP] - 26 Dec 2004 01:31 GMT
"Leon Mayne [MVP]" <l.rmvmayne@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.

Signature

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

jamie - 26 Dec 2004 02:27 GMT
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
> "Leon Mayne [MVP]" <l.rmvmayne@uea.ac.uk> schrieb:
>>> How do you write unmanaged code in vb.net?
[quoted text clipped - 6 lines]
> make sure VB6's runtime files are installed/registered in the right
> version on the machine.
Herfried K. Wagner [MVP] - 26 Dec 2004 09:35 GMT
"jamie" <anonymous@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.

Signature

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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.