Click here to Skip to main content
16,007,277 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Terminate a process for "sure" Pin
David Crow6-Jul-06 2:41
David Crow6-Jul-06 2:41 
AnswerRe: Terminate a process for "sure" Pin
Jörgen Sigvardsson5-Jul-06 12:39
Jörgen Sigvardsson5-Jul-06 12:39 
QuestionVideo Control, some help heeded Pin
hell_admin5-Jul-06 10:19
hell_admin5-Jul-06 10:19 
AnswerRe: Video Control, some help heeded Pin
Justin Tay5-Jul-06 11:31
Justin Tay5-Jul-06 11:31 
QuestionProblems with xml generation Pin
Alex Cutovoi5-Jul-06 9:31
Alex Cutovoi5-Jul-06 9:31 
AnswerRe: Problems with xml generation [modified] Pin
Zac Howland5-Jul-06 9:55
Zac Howland5-Jul-06 9:55 
GeneralRe: Problems with xml generation Pin
Alex Cutovoi5-Jul-06 10:15
Alex Cutovoi5-Jul-06 10:15 
GeneralRe: Problems with xml generation Pin
Zac Howland5-Jul-06 10:36
Zac Howland5-Jul-06 10:36 
_bstr_t is a helper class that Microsoft wrote. Check here for the documentation.

Line by line, the code I wrote does the following:

// declare a method StringToBSTR that takes a std::string and returns a _bstr_t
_bstr_t myClass::StringToBSTR(const std::string& value)
{
	// declare the return value and initialize it
	// using the constructor that takes a const char*
	_bstr_t bstrValue(value.c_str());
	// return the _bstr_t
	return bstrValue;
}


I believe I forgot the return line in the previous post ... sorry about that.

If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week

Zac
AnswerRe: Problems with xml generation Pin
Michael Dunn5-Jul-06 11:08
sitebuilderMichael Dunn5-Jul-06 11:08 
Questionmodeless dialog Pin
Desmo165-Jul-06 6:10
Desmo165-Jul-06 6:10 
AnswerRe: modeless dialog Pin
farshad.f5-Jul-06 6:18
farshad.f5-Jul-06 6:18 
AnswerRe: modeless dialog Pin
David Crow5-Jul-06 6:26
David Crow5-Jul-06 6:26 
AnswerRe: modeless dialog Pin
Zac Howland5-Jul-06 6:40
Zac Howland5-Jul-06 6:40 
AnswerRe: modeless dialog Pin
led mike5-Jul-06 7:04
led mike5-Jul-06 7:04 
AnswerRe: modeless dialog Pin
Hamid_RT5-Jul-06 19:28
Hamid_RT5-Jul-06 19:28 
QuestionStatic unsigned int Pin
Jay035-Jul-06 5:57
Jay035-Jul-06 5:57 
AnswerRe: Static unsigned int Pin
cppcook5-Jul-06 6:07
cppcook5-Jul-06 6:07 
GeneralRe: Static unsigned int Pin
Jörgen Sigvardsson5-Jul-06 8:20
Jörgen Sigvardsson5-Jul-06 8:20 
AnswerRe: Static unsigned int Pin
Justin Tay5-Jul-06 6:08
Justin Tay5-Jul-06 6:08 
AnswerRe: Static unsigned int Pin
toxcct5-Jul-06 6:58
toxcct5-Jul-06 6:58 
GeneralRe: Static unsigned int Pin
Jörgen Sigvardsson5-Jul-06 8:20
Jörgen Sigvardsson5-Jul-06 8:20 
GeneralRe: Static unsigned int Pin
super_ttd5-Jul-06 9:56
super_ttd5-Jul-06 9:56 
GeneralRe: Static unsigned int Pin
Jörgen Sigvardsson5-Jul-06 9:57
Jörgen Sigvardsson5-Jul-06 9:57 
QuestionHow to pass data to scanf() without entering in the console? Pin
cppcook5-Jul-06 5:46
cppcook5-Jul-06 5:46 
AnswerRe: How to pass data to scanf() without entering in the console? Pin
led mike5-Jul-06 5:54
led mike5-Jul-06 5:54 

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.