Using VB .Net and VC at the same time in .Net 
Author Message
 Using VB .Net and VC at the same time in .Net

I have a VB .Net program that creates test data in arrays and then calls VB
.Net coded sort routines to test the timing of the sort algorithms.

I also have some old C code  for some sorting algorithms.
How do I get the C code into the project so the VB .Net code can call the C
code?

Is there a recommended book that describes the MDE in enough detail for me
to figure this out?
--
http://www.*-*-*.com/ ; Programming and support for  Word macros,
including converting from WordBasic to VBA; Technical reviewing; Standards;
Product functional/design/specifications
------------------------------------------------



Sun, 16 Jan 2005 04:31:29 GMT  
 Using VB .Net and VC at the same time in .Net

Quote:
> How do I get the C code into the project so the VB .Net code can call the
C
> code?

Create a .NET assembly using Managed C++.  The Managed C++ methods can call
C code directly.  Reference this new assembly in your VB.NET project and
call the MC++ methods (which in turn call C code).

-Sean



Sun, 16 Jan 2005 05:39:41 GMT  
 Using VB .Net and VC at the same time in .Net
THanx.

Is there a good book that describes this stuff?

--
http://www.standards.com/; Programming and support for  Word macros,
including converting from WordBasic to VBA; Technical reviewing; Standards;
Product functional/design/specifications
------------------------------------------------

Quote:
> > How do I get the C code into the project so the VB .Net code can call
the
> C
> > code?

> Create a .NET assembly using Managed C++.  The Managed C++ methods can
call
> C code directly.  Reference this new assembly in your VB.NET project and
> call the MC++ methods (which in turn call C code).

> -Sean



Sun, 16 Jan 2005 11:35:45 GMT  
 Using VB .Net and VC at the same time in .Net
There is only one book on Managed C++ in print today:
http://www.amazon.com/exec/obidos/ASIN/1893115283/qid=1028135321

It's will teach you the language, but not how to use it well.  It presents
you with the language features, but does not show you how to solve problems
with them.  This book makes a good reference, but you'll also need to search
the web for Managed C++ tutorials and examples.

Also, I disagree with the way this book describes ugly hacks when there are
much more elegant solutions to solve the same problems.  (Eg. Marshalling
delegates into C function pointers through kernel32.dll when you could just
use gcroot<> in an unmanaged callback function).

Amazon.com shows that there are three other books not yet published.

-Sean


Quote:
> THanx.

> Is there a good book that describes this stuff?

> --
> http://www.standards.com/; Programming and support for  Word macros,
> including converting from WordBasic to VBA; Technical reviewing;
Standards;
> Product functional/design/specifications
> ------------------------------------------------


> > > How do I get the C code into the project so the VB .Net code can call
> the
> > C
> > > code?

> > Create a .NET assembly using Managed C++.  The Managed C++ methods can
> call
> > C code directly.  Reference this new assembly in your VB.NET project and
> > call the MC++ methods (which in turn call C code).

> > -Sean



Mon, 17 Jan 2005 01:23:02 GMT  
 Using VB .Net and VC at the same time in .Net
Unmanaged code can be called from VB.NET project via Interop. You can
simply keep the lagacy code as it is, and call it from VB.NET project. For
more information about .NET Interop, you can have a look at:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgu...
l/cpconinteroperatingwithunmanagedcode.asp

David Yuan
This posting is provided "AS IS" with no warranties, and confers no rights.
"Got .Net?  http://www.gotdotnet.com".  



Mon, 17 Jan 2005 13:35:47 GMT  
 Using VB .Net and VC at the same time in .Net
Thanx.

I'm also looking for books.

I've heard that Apress has a book on interop.

Is the .Net Framework DEvelopers Guide available as a book.

--
http://www.standards.com/; Programming and support for  Word macros,
including converting from WordBasic to VBA; Technical reviewing; Standards;
Product functional/design/specifications
------------------------------------------------

Quote:
> Unmanaged code can be called from VB.NET project via Interop. You can
> simply keep the lagacy code as it is, and call it from VB.NET project. For
> more information about .NET Interop, you can have a look at:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpgu...
Quote:
> l/cpconinteroperatingwithunmanagedcode.asp

> David Yuan
> This posting is provided "AS IS" with no warranties, and confers no
rights.
> "Got .Net?  http://www.gotdotnet.com".



Tue, 18 Jan 2005 02:31:29 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. ADO.NET with ASP.NET using VB.NET

2. Find good book about using CR.NET with VS.NET and .NET Framework

3. ASP .Net using VB .Net Speed issue

4. Using VB.NET programming ASP.NET

5. Transferring data through internet in VB.net without using ASP.Net

6. what create table using ADO.NET to VB.NET

7. Html editing in a asp.net project using vb.net

8. I can not INSERT into Access95 using ADO.net and VB.NET

9. i am using vb.net and crystal reports for visual studio.net

10. Using VB.Net, ADO.Net and Access

11. Fatal Error, using VB .NET + ADO .NET

12. INSERT into access database using vb.net/ado.net..problem

 

 
Powered by phpBB® Forum Software