On 2004-01-26, Paul <an*******@discussions.microsoft.com> wrote:
Hi I have a vb.net app and am trying to call a C program from it, perhaps a dll or executable. This is unmanaged code, just wondering if someone could provide a brief example? Thanks Paul.
Paul,
An executable can be run from VB's shell statement or you can use the
System.Diagnostics.Process class if you need more control. If your
trying to call exported functions, then you'll want to look into using
P/Invoke... If you have the C definitions for the functions, we would
be happy to help you translate some of them and give you pointers...
--
Tom Shelton [MVP]