pm100 wrote:
Hi,
I'm using a C header and functions under a c++ class. The problem is
when I call the c func, say foo(...) directly under main there is no
problem, when I use it in the class VS debugger takes me to xmtx.c.
What does "VS debugger takes me to xmtx.c" mean? What is xmtx.c? How does
the debugger take you there? What happens in your program instead of foo
being executed?
MyClass::executeFoo(...) {
foo(...);
}
int main(void) {
foo(...) //no problem
MyClass X;
X.executeFoo(); //problem
....
}
Well, from that code fragment and without knowing what actually happens, one
can only guess. Maybe your MyClass has a member function foo() that is
called instead of the global foo(), or foo() is in some namespace that
MyClass doesn't know about.