0

I cannot get the BitConverter class to work. I get the error 'BitConverter' undeclared (first use this function). I have tried putting 'using System;' at the top of my code because I saw that in some examples online, but it then tells me that 'System' has not been declared. What am i missing? A #include file?

pmg
  • 106,608
  • 13
  • 126
  • 198
Seth Nelson
  • 143
  • 1
  • 1
  • 6

1 Answers1

0

BitConverter is a CLI class, If you don't mean the CLI class then you've lost me completely and can ignore the rest of this answer. #include is c++. Is this managed c++? Please clarify and re-tag the question as approriate.

If it's Managed C++ you use

using namespace System

to include namespaces instead of C#´s

using System
dutt
  • 7,909
  • 11
  • 52
  • 85