Click here to Skip to main content
15,892,643 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
AnswerRe: Checking for presence of System::IO::Ports::SerialPort Pin
zhushaolin20052-Dec-09 18:44
zhushaolin20052-Dec-09 18:44 
QuestionCamera-Control (firewire) Pin
LoKi.aK2-Dec-09 1:25
LoKi.aK2-Dec-09 1:25 
AnswerRe: Camera-Control (firewire) Pin
Jonathan Davies11-Dec-09 5:54
Jonathan Davies11-Dec-09 5:54 
QuestionManaged forms application with 'autosave' wanted Pin
iMikki1-Dec-09 7:28
iMikki1-Dec-09 7:28 
AnswerRe: Managed forms application with 'autosave' wanted Pin
zhushaolin20051-Dec-09 20:18
zhushaolin20051-Dec-09 20:18 
GeneralRe: Managed forms application with 'autosave' wanted Pin
iMikki2-Dec-09 1:23
iMikki2-Dec-09 1:23 
GeneralRe: Managed forms application with 'autosave' wanted Pin
Mark Salsbery2-Dec-09 7:59
Mark Salsbery2-Dec-09 7:59 
GeneralRe: Managed forms application with 'autosave' wanted Pin
iMikki2-Dec-09 9:05
iMikki2-Dec-09 9:05 
Thanks for your reply.
I currently have this:

public ref class Form1 : public System::Windows::Forms::Form
{
public: 
System::Threading::Thread ^thd;
Form1::MyClass() {
thd = gcnew System::Threading::Thread(gcnew ThreadStart(this, &Form1::autoSave)); 
}

private: System::Void autoSave(void) { 
Threading::Thread::Sleep(5000);
warningBox("Test? 5000");
}

private: System::Void LoadFiles(void) {
thd->Start();
}
}


But it doesnt work due the following errors:
1>d:\app2\app2\Form1.h(61) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\app2\app2\Form1.h(63) : warning C4183: 'MyClass': missing return type; assumed to be a member function returning 'int'
1>d:\app2\app2\Form1.h(62) : error C2061: syntax error : identifier 'ThreadStart'
1>d:\app2\app2\Form1.h(62) : error C2143: syntax error : missing ';' before ')'
1>d:\app2\app2\Form1.h(62) : error C2143: syntax error : missing ';' before ')'

GeneralRe: Managed forms application with 'autosave' wanted Pin
Mark Salsbery2-Dec-09 10:29
Mark Salsbery2-Dec-09 10:29 
GeneralRe: Managed forms application with 'autosave' wanted Pin
iMikki2-Dec-09 10:36
iMikki2-Dec-09 10:36 
GeneralRe: Managed forms application with 'autosave' wanted [modified] Pin
iMikki3-Dec-09 1:38
iMikki3-Dec-09 1:38 
QuestionRead Excel sheet Pin
mikobi29-Nov-09 22:01
mikobi29-Nov-09 22:01 
AnswerRe: Read Excel sheet Pin
T210230-Nov-09 1:16
T210230-Nov-09 1:16 
GeneralRe: Read Excel sheet Pin
mikobi1-Dec-09 6:51
mikobi1-Dec-09 6:51 
GeneralRe: Read Excel sheet Pin
T21021-Dec-09 15:17
T21021-Dec-09 15:17 
GeneralRe: Read Excel sheet Pin
mikobi2-Dec-09 4:19
mikobi2-Dec-09 4:19 
AnswerRe: Read Excel sheet Pin
mikobi4-Dec-09 20:53
mikobi4-Dec-09 20:53 
QuestionHow to make a delay and latch in C++ Pin
chan1127-Nov-09 3:46
chan1127-Nov-09 3:46 
AnswerRe: How to make a delay and latch in C++ Pin
Luc Pattyn27-Nov-09 4:17
sitebuilderLuc Pattyn27-Nov-09 4:17 
QuestionVisual C++ CLR,How to design the UI like Adobe After Effects's TimeLine Panel Pin
akira3223-Nov-09 16:35
akira3223-Nov-09 16:35 
AnswerRe: Visual C++ CLR,How to design the UI like Adobe After Effects's TimeLine Panel Pin
N a v a n e e t h26-Nov-09 0:32
N a v a n e e t h26-Nov-09 0:32 
QuestionCLR,How do I calculate FPS Pin
akira3223-Nov-09 0:03
akira3223-Nov-09 0:03 
QuestionRe: CLR,How do I calculate FPS Pin
Mark Salsbery23-Nov-09 6:39
Mark Salsbery23-Nov-09 6:39 
Answer[Message Deleted] [modified] Pin
akira3223-Nov-09 16:38
akira3223-Nov-09 16:38 
GeneralRe: CLR,How do I calculate FPS Pin
Mark Salsbery23-Nov-09 16:50
Mark Salsbery23-Nov-09 16:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.