We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,599 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

WIn32 DLL Wrapper

I have a managed class library developed in C#.
Now i need to create a win 32 dll wrapper around it.

So in my Win 32 DLL i need to import that class library and call the starting point functions from it.

I am new on this. I was able to create functions and use it in test code.

int _stdcall sum(int x , int y)
{
	return x + y;
} 

char* _stdcall to_upper(char *lowerstring)
{
	_strupr(lowerstring);
	return lowerstring;
}

But i need to call external dll (C# class library) and call functions from the functions created here in Win32 DLL.

Help would really be appreciated.

1
Contributor
1
Reply
5 Hours
Discussion Span
2 Years Ago
Last Updated
2
Views
Question
Answered
chintan_1671
Light Poster
39 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

I have a managed class library developed in C#.
Now i need to create a win 32 dll wrapper around it.

So in my Win 32 DLL i need to import that class library and call the starting point functions from it.

I am new on this. I was able to create functions and use it in test code.

int _stdcall sum(int x , int y)
{
	return x + y;
} 

char* _stdcall to_upper(char *lowerstring)
{
	_strupr(lowerstring);
	return lowerstring;
}

But i need to call external dll (C# class library) and call functions from the functions created here in Win32 DLL.

Help would really be appreciated.

I think i got the answer:
http://support.microsoft.com/kb/828736

Thanks

chintan_1671
Light Poster
39 posts since Jun 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
Question Self-Answered as of 2 Years Ago

This question has already been solved: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
View similar articles that have also been tagged:
 
© 2013 DaniWeb® LLC
Page generated in 0.0578 seconds using 2.67MB