Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

How to create a global object of a ref class type?

$
0
0

Hi,

In Visual C++ 2013, I am trying to create a global object of a ref class because I need to share the values between various .cpp files.

But I am having an error: "a variable with static storage duration cannot have a ref class type".

Please help me to solve this.

Thanks.


Viewing all articles
Browse latest Browse all 15302

Trending Articles



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