Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

Pass data from GUI to DLL project

$
0
0

Hi all,

I have a solution with two projects in it. One of them is a DLL project in C++ and the other is the GUI in C#.  I supposed to enter the data from GUI and process them in DLL. I have added reference of DLL to GUI.  Say DLL has a class named DLLClass.  The data I would like to pass from GUI to DLL is NumberofStudents.

Delcare DLLClass myDLLClass in GUI

Get the value of myDLLClass.NumberofStudents from GUI

When go back to DLL project, NumberofStudents become zero not the input value.

Could anybody help me to figure out what is wrong with it?  BTW, I am a beginner to VS.

Thanks in advance!!


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>