Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Singleton class Pin
ThatsAlok17-Oct-07 19:35
ThatsAlok17-Oct-07 19:35 
GeneralRe: Singleton class Pin
Vinod CS17-Oct-07 20:08
Vinod CS17-Oct-07 20:08 
GeneralRe: Singleton class Pin
ThatsAlok17-Oct-07 20:53
ThatsAlok17-Oct-07 20:53 
GeneralRe: Singleton class Pin
Cedric Moonen17-Oct-07 20:10
Cedric Moonen17-Oct-07 20:10 
GeneralRe: Singleton class Pin
ThatsAlok17-Oct-07 20:54
ThatsAlok17-Oct-07 20:54 
AnswerRe: Singleton class Pin
Cedric Moonen17-Oct-07 20:13
Cedric Moonen17-Oct-07 20:13 
AnswerRe: Singleton class Pin
jhwurmbach17-Oct-07 23:47
jhwurmbach17-Oct-07 23:47 
QuestionA problem Pin
minihotto17-Oct-07 18:23
minihotto17-Oct-07 18:23 
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


AnswerRe: A problem Pin
baerten17-Oct-07 21:17
baerten17-Oct-07 21:17 
GeneralRe: A problem Pin
Hamid_RT17-Oct-07 21:56
Hamid_RT17-Oct-07 21:56 
GeneralRe: A problem Pin
jhwurmbach17-Oct-07 23:57
jhwurmbach17-Oct-07 23:57 
GeneralRe: A problem Pin
Hamid_RT18-Oct-07 0:03
Hamid_RT18-Oct-07 0:03 
GeneralRe: A problem Pin
minihotto25-Oct-07 0:36
minihotto25-Oct-07 0:36 
QuestionString^ problem Pin
minihotto17-Oct-07 18:13
minihotto17-Oct-07 18:13 
AnswerRe: String^ problem Pin
Hamid_RT17-Oct-07 19:26
Hamid_RT17-Oct-07 19:26 
GeneralRe: String^ problem Pin
minihotto17-Oct-07 19:30
minihotto17-Oct-07 19:30 
GeneralRe: String^ problem Pin
ThatsAlok17-Oct-07 20:55
ThatsAlok17-Oct-07 20:55 
QuestionRe: String^ problem Pin
Hamid_RT17-Oct-07 21:17
Hamid_RT17-Oct-07 21:17 
AnswerRe: String^ problem Pin
ThatsAlok17-Oct-07 22:27
ThatsAlok17-Oct-07 22:27 
GeneralRe: String^ problem Pin
Hamid_RT18-Oct-07 0:14
Hamid_RT18-Oct-07 0:14 
GeneralRe: String^ problem Pin
ThatsAlok18-Oct-07 0:55
ThatsAlok18-Oct-07 0:55 
GeneralRe: String^ problem Pin
minihotto18-Oct-07 11:25
minihotto18-Oct-07 11:25 
GeneralRe: String^ problem Pin
Hamid_RT19-Oct-07 6:22
Hamid_RT19-Oct-07 6:22 
QuestionHow to create auto snap function on Images? Pin
TooShy2Talk17-Oct-07 14:23
TooShy2Talk17-Oct-07 14:23 
Questionmaking .dll file in VC++ from C code written in unix Pin
dfn17-Oct-07 12:49
dfn17-Oct-07 12:49 

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.