cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
mixing C++ and C
mixing C++ and C
Jun 2, 2010 at 2:19pm UTC
mlivneh
(1)
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?
Jun 2, 2010 at 2:21pm UTC
Albatross
(4553)
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.