i made a dll in C# with Class Library
this dll has one function.
then i added this dll in an MFC project
with Add Reference
then i define a variable with type Mydll::Class1
while this definition is placed in a function, there is no problem but when i want to define it as global or member variable of class i got an error.
the help offers this message:
You can only define CLR objects within function scope
is there any solution to define a global variable?
]might help you!
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)