TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
ZanettiEsteban
NA
11
0
Calling methods of a class in a Win32 Dll
Jan 14 2005 9:05 AM
I know that you can call functions of a Win32 library from C#. So if you have the following function: void Foo(unsigned short msg, unsigned int param); You can write in C# the following P/Invoke code: [DllImport("whatever.dll", CharSet=CharSet.Auto, SetLastError=true)] public static extern uint Foo(ushort messge, uint param); The problem is, how can I call methods of an exported class inside a Win32 Library, for example: class Foo { public: void Method1() { /* ... */ } }; Thanks in advance.
Reply
Answers (
4
)
Patchbay type connections
Can't get example on this site to work