mixing C++ and C

I'm trying to wrap a legacy application with C++ code.

class MyClass
{
_ beginthreadex(NULL,0, OldMain, 0,0,0);
}

int main ()
{
MyClass execute;
Return;
}
void OldMain(LPWSTR lpParam )
{
Return;
}

if so, then what declarations should I make?
De-capitalize "Return", else it won't work.

Also, there are hundreds of declarations and implementations in the Windows API (which I suspect you're using due to the LPWSTR type). We cannot know which you're using.

-Albatross
Topic archived. No new replies allowed.