M
Mark Jerde
Yesterday I posted the message below to microsoft.public.dotnet.languages.vb
and microsoft.public.vc.language. The two replies are also posted.
I need to write some ISO C++ functions, more information below. Is C# a
better language to use than VB.NET for calling these C++ functions? If so I
would appreciate some links on calling C++ from C#.
Thanks!
-- Mark
============= Calling VC++ From VB.NET ============
I have been searching google, google groups and MSDN but haven't found any
simple examples yet. Suggestions and/or URLs would be appreciated!
I need to write some ISO C++ functions to verify data streams. (It is
expected these will also eventually be run in Linux.) The application also
needs a management GUI. For Windows I plan to write the GUI in VB .NET
2003.
How do I call C++ from VB.NET? I'm trying to start small:
bool AlwaysReturnsTrue(void)
and work up to:
bool StreamIsValid(IN ByteArray, IN Length, OUT ErrorMessage, OUT ErrorByte)
I'm uncertain about memory issues: Who allocates, etc. I'm also unclear
about internalization of the error messages.
Thanks.
-- Mark
============== bonj reply =============
Why don't you write it in java, then you won't even have to write a
different one for linux.
Use Declare.
Read up on System.InteropServices.Marshal et al.
Caller allocates. .NET also has some 'magic' classes such as
StringBuilder that can be 'passed to be filled' without having a maximum
size pre-specified - this is done by the GC.
=============== Crouchie1998 reply ================
I wrote a simple C++ DLL & called it from VB.NET. Here's the sample:
http://www.gotdotnet.com/Community/...mpleGuid=06613cc5-2134-404c-a4e2-ca46ef086c12
I hope this will help
and microsoft.public.vc.language. The two replies are also posted.
I need to write some ISO C++ functions, more information below. Is C# a
better language to use than VB.NET for calling these C++ functions? If so I
would appreciate some links on calling C++ from C#.
Thanks!
-- Mark
============= Calling VC++ From VB.NET ============
I have been searching google, google groups and MSDN but haven't found any
simple examples yet. Suggestions and/or URLs would be appreciated!
I need to write some ISO C++ functions to verify data streams. (It is
expected these will also eventually be run in Linux.) The application also
needs a management GUI. For Windows I plan to write the GUI in VB .NET
2003.
How do I call C++ from VB.NET? I'm trying to start small:
bool AlwaysReturnsTrue(void)
and work up to:
bool StreamIsValid(IN ByteArray, IN Length, OUT ErrorMessage, OUT ErrorByte)
I'm uncertain about memory issues: Who allocates, etc. I'm also unclear
about internalization of the error messages.
Thanks.
-- Mark
============== bonj reply =============
I have been searching google, google groups and MSDN but haven't found any
simple examples yet. Suggestions and/or URLs would be appreciated!
I need to write some ISO C++ functions to verify data streams. (It is
expected these will also eventually be run in Linux.) The application
also
needs a management GUI. For Windows I plan to write the GUI in VB .NET
2003.
Why don't you write it in java, then you won't even have to write a
different one for linux.
How do I call C++ from VB.NET? I'm trying to start small:
Use Declare.
bool AlwaysReturnsTrue(void)
and work up to:
bool StreamIsValid(IN ByteArray, IN Length, OUT ErrorMessage, OUT
ErrorByte)
Read up on System.InteropServices.Marshal et al.
I'm uncertain about memory issues: Who allocates, etc. I'm also unclear
about internalization of the error messages.
Caller allocates. .NET also has some 'magic' classes such as
StringBuilder that can be 'passed to be filled' without having a maximum
size pre-specified - this is done by the GC.
=============== Crouchie1998 reply ================
I wrote a simple C++ DLL & called it from VB.NET. Here's the sample:
http://www.gotdotnet.com/Community/...mpleGuid=06613cc5-2134-404c-a4e2-ca46ef086c12
I hope this will help