1

I've searched here and the internet and no one seems to be having a similar problem to me and I can't quite figure out why I cannot get this to work.

The line that is preventing me from compiling is:

LitCiterCommon::LitCiterTrace->Init();

If I call LitCiterTrace.Init() from a different file (c#) it compiles just fine, but for some reason I cannot call it from managed cpp.

Any ideas or suggestions?

DaveShaw
  • 52,123
  • 16
  • 112
  • 141
doyler
  • 147
  • 1
  • 8

1 Answers1

5

If Init is a static method then it would not be any different than in C++:

// this is no different than calling a static member method in C++
LitCiterCommon::LitCiterTrace::Init();
Community
  • 1
  • 1
user7116
  • 63,008
  • 17
  • 141
  • 172
  • 1
    Haha, I didn't even notice that my partner changed it to a static method while I was gone...I really need to stop taking vacations away from this codebase. Thanks again for catching my stupidity. – doyler Jan 30 '12 at 15:21