|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
__declspec(dllexport) c++Hello...
How can I do an exported function in Visual Basic.Net? In Visual C++ the source is the next... but I need the same in VB.Net Thank you /* This is an example of an exported function. */ __declspec(dllexport) int fnDLLSAMPLE(void) { return 42; }
Show quote
Hide quote
"Luis" <L***@discussions.microsoft.com> schrieb In the OO world, all methods are parts of classes. Create an assembly, add a > Hello... > How can I do an exported function in Visual Basic.Net? > > In Visual C++ the source is the next... but I need the same in > VB.Net > > Thank you > > /* This is an example of an exported function. */ > __declspec(dllexport) int fnDLLSAMPLE(void) > { > > return 42; > } class and add the method. In the client app, set a reference to the assembly. The client language must support the .Net Framework. Armin "Luis" <L***@discussions.microsoft.com> schrieb: You cannot export functions that way. All you can do is creating a .NET API > How can I do an exported function in Visual Basic.Net? > > In Visual C++ the source is the next... but I need the same in VB.Net > > Thank you > > /* This is an example of an exported function. */ > __declspec(dllexport) int fnDLLSAMPLE(void) > { > > return 42; > } (classes, interfaces) and/or make this API visible to COM. -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://classicvb.org/petition/>
HttpWebRequest using Certificates
Pulling specific words from a string Basic question MenuItem.RadioCheck Asynchronous Invoke and the UI thread (using delegates) How to use my default mail client to mail any file? Radio Button Grouping in vb/VS 2005 Accessing Mdi Child Form Control form another one How to pass parameter? error "concurency violation" |
|||||||||||||||||||||||