|
-
Aug 18th, 2004, 10:51 AM
#1
Thread Starter
Frenzied Member
DLLs
Hey,
In C++, I can create a dll where if used in vb, the functions have to be declared. (The Windows dll)
Can I do that in C#??
Thanks,
Don't anthropomorphize computers -- they hate it
-
Aug 19th, 2004, 06:44 AM
#2
Could use something like the following:
PHP Code:
using System;
using System.Runtime.InteropServices;
[DllImport("my_dll.dll")]
//assuming LONG is the return type of your function in the DLL
public static extern long MyFunction(string myString, long MyLong);
//...
static void main(string args[])
{
long bla;
bla = MyFunction("bla", bla);
}
Phreak
Visual Studio 6, Visual Studio.NET 2005, MASM
-
Aug 20th, 2004, 09:29 AM
#3
Not what he asked.
The answer is no.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|