A problem
-
Hello, I create a "MFC application" project in MSVC 2005. But I want to add a class ref from tThread. For example, public ref class tThread { public: XXXXXXXXXXXXX }; I add this code in the Form1.h. But it has a default class From1. I create a new header file to include. #include "mythread.h" But it come some errors. This is mythread.h /////////////////////////// #ifndef MYTHREAD_H #define MYTHREAD_H public ref class tThread { public: static void Threadsend(); } #endif ///////////////////////////// This is mythread.cpp #include "mythread" using namespace System::Threading; static void Threadsend(){ Thread::Sleep( 0 ); } What's wrong with my code or are there better method to do it? Appreciate your reply. Thank you. Jane
-
Hello, I create a "MFC application" project in MSVC 2005. But I want to add a class ref from tThread. For example, public ref class tThread { public: XXXXXXXXXXXXX }; I add this code in the Form1.h. But it has a default class From1. I create a new header file to include. #include "mythread.h" But it come some errors. This is mythread.h /////////////////////////// #ifndef MYTHREAD_H #define MYTHREAD_H public ref class tThread { public: static void Threadsend(); } #endif ///////////////////////////// This is mythread.cpp #include "mythread" using namespace System::Threading; static void Threadsend(){ Thread::Sleep( 0 ); } What's wrong with my code or are there better method to do it? Appreciate your reply. Thank you. Jane
Please post on the correct form, you are much more likely to get an answer.
Jonathan Wilkes Darka[Xanya.net]
-
Please post on the correct form, you are much more likely to get an answer.
Jonathan Wilkes Darka[Xanya.net]