Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralContext Sensitive help for Edit Box Pin
topagarwal16-Jun-05 0:46
topagarwal16-Jun-05 0:46 
GeneralRe: Context Sensitive help for Edit Box Pin
samit116-Jun-05 1:24
samit116-Jun-05 1:24 
Questionhow to create a temporary DC using ATL without a Parent Window? Pin
ThinkingPrometheus16-Jun-05 0:43
ThinkingPrometheus16-Jun-05 0:43 
AnswerRe: how to create a temporary DC using ATL without a Parent Window? Pin
Bob Stanneveld16-Jun-05 1:13
Bob Stanneveld16-Jun-05 1:13 
GeneralRe: how to create a temporary DC using ATL without a Parent Window? Pin
ThinkingPrometheus16-Jun-05 3:04
ThinkingPrometheus16-Jun-05 3:04 
GeneralRe: how to create a temporary DC using ATL without a Parent Window? Pin
Bob Stanneveld16-Jun-05 3:17
Bob Stanneveld16-Jun-05 3:17 
Questionconvert Variant to CString? Pin
ThinkingPrometheus15-Jun-05 23:08
ThinkingPrometheus15-Jun-05 23:08 
AnswerRe: convert Variant to CString? Pin
Graham Bradshaw15-Jun-05 23:18
Graham Bradshaw15-Jun-05 23:18 
I'll help with the conversion (I'm sure you can handle the MessageBox!)

CString GetString(const VARIANT* pvaData)
{
	if (pvaData->vt == VT_BSTR)
		return pvaData->bstrVal;

	if (pvaData->vt == (VT_BSTR | VT_BYREF))
		return *pvaData->pbstrVal;

	if (pvaData->vt == (VT_VARIANT | VT_BYREF))
		return GetString(pvaData->pvarVal);


	VARIANT varDest;
	VariantInit(&varDest);


	if (SUCCEEDED(VariantChangeTypeEx(&varDest, (VARIANT*) pvaData, LOCALE_SYSTEM_DEFAULT, 0, VT_BSTR)))
		return GetString(&varDest);

	return _T("");
}

AnswerRe: convert Variant to CString? Pin
Nilesh K.15-Jun-05 23:21
Nilesh K.15-Jun-05 23:21 
GeneralRe: convert Variant to CString? Pin
ThinkingPrometheus15-Jun-05 23:51
ThinkingPrometheus15-Jun-05 23:51 
AnswerRe: convert Variant to CString? Pin
Anonymous16-Jun-05 0:09
Anonymous16-Jun-05 0:09 
AnswerRe: convert Variant to CString? Pin
James R. Twine16-Jun-05 8:34
James R. Twine16-Jun-05 8:34 
GeneralSent data from Doc to dialog Pin
mafuza15-Jun-05 22:58
mafuza15-Jun-05 22:58 
GeneralRe: Sent data from Doc to dialog Pin
Nilesh K.15-Jun-05 23:17
Nilesh K.15-Jun-05 23:17 
GeneralRe: Sent data from Doc to dialog Pin
mafuza21-Jun-05 17:21
mafuza21-Jun-05 17:21 
GeneralRe: Sent data from Doc to dialog Pin
Nilesh K.21-Jun-05 17:50
Nilesh K.21-Jun-05 17:50 
GeneralPicture on dialog based application Pin
Rostfrei15-Jun-05 22:48
Rostfrei15-Jun-05 22:48 
GeneralRe: Picture on dialog based application Pin
Nilesh K.15-Jun-05 23:06
Nilesh K.15-Jun-05 23:06 
GeneralRe: Picture on dialog based application Pin
Rostfrei15-Jun-05 23:32
Rostfrei15-Jun-05 23:32 
GeneralRe: Picture on dialog based application Pin
toxcct16-Jun-05 0:14
toxcct16-Jun-05 0:14 
GeneralRe: Picture on dialog based application Pin
Nilesh K.16-Jun-05 0:45
Nilesh K.16-Jun-05 0:45 
QuestionHow to set TicFreq in a dialog box? Pls Help Pin
Member 191502415-Jun-05 22:25
Member 191502415-Jun-05 22:25 
AnswerRe: How to set TicFreq in a dialog box? Pls Help Pin
RChin15-Jun-05 22:42
RChin15-Jun-05 22:42 
GeneralWhy Release version don't Run. Pin
tranglt15-Jun-05 22:02
tranglt15-Jun-05 22:02 
GeneralRe: Why Release version don't Run. Pin
One Stone15-Jun-05 22:14
One Stone15-Jun-05 22:14 

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.