|
-
June 26th, 2012, 11:05 PM
#1
Passing variables from C++ DLL to C# program
Hello!
I have written a C++ DLL for a friend, and his program is coded in C#. I currently make use of the Dllimport function to reference functions in the program, but I have seemed to hit a bit of a wall.
My final goal is to be able to change the value of a variable in the DLL through the C# program.
IE: If I have a boolean in my DLL, that is somehow made external, the C# program would be able to set it to true.
I know I could just pass variables through an "empty function" that takes input parameters and sets them to variables in the DLL, but I am looking for a bit of a better solution.
I am sure there is a Windows veteran out there who can help me! I would more than appreciate the help.
-Kaleb
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
|