3rd step in managed C++: problem with NULL

  • Thread starter Thread starter Lloyd Dupont
  • Start date Start date
L

Lloyd Dupont

I have a function like that:
static void InitEngine(String^, String^);

I try to pass a NULL value as an argument, like that:
InitEngine(NULL, NULL);

The compiler said NULL: unknown identifier.
I tried to include STDDEF.H but the compiler complains: can't convert int to
String^

Any idea?
 
Lloyd Dupont said:
I have a function like that:
static void InitEngine(String^, String^);

I try to pass a NULL value as an argument, like that:
InitEngine(NULL, NULL);

The compiler said NULL: unknown identifier.
I tried to include STDDEF.H but the compiler complains: can't convert int
to String^

Any idea?

nullptr is the equivalent fot NULL when dealing with managed references.

Willy.
 
Back
Top