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

Managed C++/CLI

 
Questionhelp Pin
maybe?18-Oct-07 21:28
maybe?18-Oct-07 21:28 
AnswerRe: help Pin
led mike19-Oct-07 4:25
led mike19-Oct-07 4:25 
Questionnegative binary number Pin
maybe?18-Oct-07 21:25
maybe?18-Oct-07 21:25 
AnswerRe: negative binary number Pin
led mike19-Oct-07 4:21
led mike19-Oct-07 4:21 
AnswerRe: negative binary number Pin
Mark Salsbery19-Oct-07 5:37
Mark Salsbery19-Oct-07 5:37 
QuestionI just want a simple explanation. Pin
maybe?18-Oct-07 21:24
maybe?18-Oct-07 21:24 
AnswerRe: I just want a simple explanation. Pin
slimtim19-Oct-07 1:11
slimtim19-Oct-07 1:11 
QuestionA problem Pin
minihotto18-Oct-07 11:27
minihotto18-Oct-07 11:27 
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
Jonathan [Darka]19-Oct-07 7:26
professionalJonathan [Darka]19-Oct-07 7:26 
GeneralRe: A problem [modified] Pin
minihotto25-Oct-07 0:26
minihotto25-Oct-07 0:26 
QuestionNeeded Connection string to connect SQL server Pin
Exelioindia18-Oct-07 3:36
Exelioindia18-Oct-07 3:36 
AnswerRe: Needed Connection string to connect SQL server Pin
Giorgi Dalakishvili18-Oct-07 3:45
mentorGiorgi Dalakishvili18-Oct-07 3:45 
GeneralRe: Needed Connection string to connect SQL server Pin
Exelioindia18-Oct-07 20:59
Exelioindia18-Oct-07 20:59 
GeneralRe: Needed Connection string to connect SQL server Pin
Giorgi Dalakishvili18-Oct-07 21:02
mentorGiorgi Dalakishvili18-Oct-07 21:02 
AnswerRe: Needed Connection string to connect SQL server Pin
Mark Salsbery18-Oct-07 9:14
Mark Salsbery18-Oct-07 9:14 
QuestionHow to send a message to the actual window Pin
strizi18-Oct-07 1:52
strizi18-Oct-07 1:52 
QuestionBeep with managed C++ Pin
strizi18-Oct-07 1:34
strizi18-Oct-07 1:34 
AnswerRe: Beep with managed C++ Pin
Giorgi Dalakishvili18-Oct-07 1:46
mentorGiorgi Dalakishvili18-Oct-07 1:46 
QuestionString^ problem Pin
minihotto17-Oct-07 17:42
minihotto17-Oct-07 17:42 
AnswerRe: String^ problem Pin
led mike18-Oct-07 4:35
led mike18-Oct-07 4:35 
Questionstatic_cast [modified] Pin
steve_rm17-Oct-07 17:21
steve_rm17-Oct-07 17:21 
AnswerRe: static_cast Pin
Christian Graus17-Oct-07 18:01
protectorChristian Graus17-Oct-07 18:01 
AnswerRe: static_cast Pin
Hamid_RT19-Oct-07 6:55
Hamid_RT19-Oct-07 6:55 
QuestionCan tab pages be shared? Pin
BuckBrown17-Oct-07 6:07
BuckBrown17-Oct-07 6:07 
AnswerRe: Can tab pages be shared? Pin
led mike17-Oct-07 6:35
led mike17-Oct-07 6:35 

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.