Click here to Skip to main content
16,011,870 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproperty storage(persistance) Pin
Pankaj Mongia5-Sep-01 23:01
Pankaj Mongia5-Sep-01 23:01 
QuestionHow do you change the highlite color of a listbox? Pin
12-Mar-01 6:24
suss12-Mar-01 6:24 
AnswerTry owner draw listbox Pin
12-Mar-01 10:26
suss12-Mar-01 10:26 
AnswerRe: How do you change the highlite color of a listbox? Pin
Erik Funkenbusch12-Mar-01 10:56
Erik Funkenbusch12-Mar-01 10:56 
AnswerRe: How do you change the highlite color of a listbox? Pin
Chris Maunder12-Mar-01 12:51
cofounderChris Maunder12-Mar-01 12:51 
AnswerRe: How do you change the highlite color of a listbox? Pin
Ravi Bhavnani12-Mar-01 14:47
professionalRavi Bhavnani12-Mar-01 14:47 
GeneralCOM Pin
12-Mar-01 6:13
suss12-Mar-01 6:13 
GeneralRe: COM Pin
Erik Thompson12-Mar-01 7:00
sitebuilderErik Thompson12-Mar-01 7:00 
ewhh.. that's just nasty.

C++ COM methods return HRESULT not VARIANT. If you want to return a variant array to your VB code, then you will need to define your method like the following:


IDL:
interface IMyClass : IDispatch
{
    [id(1), helpstring("method MyFunctionInVC")] HRESULT MyFunctionInVC([in]long lngData, [in]short nData, [out,retval] VARIANT** ppVariantArray);
};


C++ Code:
/* STDMETHODIMP == HRESULT */
STDMETHODIMP CMyClass::MyFunctionInVC(long lngData, short nData, VARIANT **ppVariantArray)
{
	// TODO: Add your implementation code here

	return S_OK;
}

GeneralSizing a floating controlbar window Pin
NormDroid12-Mar-01 4:23
professionalNormDroid12-Mar-01 4:23 
GeneralRe: Sizing a floating controlbar window Pin
12-Mar-01 7:05
suss12-Mar-01 7:05 
GeneralRe: Sizing a floating controlbar window Pin
NormDroid12-Mar-01 8:51
professionalNormDroid12-Mar-01 8:51 
GeneralAVICap: Capture from camera to bitmap when preview window is hidden Pin
Yong Haur TAY12-Mar-01 3:59
Yong Haur TAY12-Mar-01 3:59 
GeneralRe: AVICap: Capture from camera to bitmap when preview window is hidden Pin
bobbies9-May-01 2:06
bobbies9-May-01 2:06 
QuestionHow I can place FileDialog in a view? Pin
vik12-Mar-01 3:17
vik12-Mar-01 3:17 
AnswerRe: How I can place FileDialog in a view? Pin
Christian Graus12-Mar-01 9:42
protectorChristian Graus12-Mar-01 9:42 
AnswerRe: How I can place FileDialog in a view? Pin
Michael Dunn12-Mar-01 14:51
sitebuilderMichael Dunn12-Mar-01 14:51 
Generalzooming a bitmap Pin
12-Mar-01 2:47
suss12-Mar-01 2:47 
GeneralRe: zooming a bitmap Pin
l a u r e n12-Mar-01 5:58
l a u r e n12-Mar-01 5:58 
GeneralRe: zooming a bitmap Pin
Christian Graus12-Mar-01 9:39
protectorChristian Graus12-Mar-01 9:39 
GeneralHelp for CRecordSet and MDB Pin
12-Mar-01 0:58
suss12-Mar-01 0:58 
GeneralHelp !!!!!! Pin
12-Mar-01 0:07
suss12-Mar-01 0:07 
GeneralRe: Help !!!!!! Pin
Yong Haur TAY12-Mar-01 4:03
Yong Haur TAY12-Mar-01 4:03 
GeneralRe: Help !!!!!! Pin
Naveen12-Mar-01 7:34
Naveen12-Mar-01 7:34 
GeneralRe: Help !!!!!! Pin
Erik Funkenbusch12-Mar-01 11:10
Erik Funkenbusch12-Mar-01 11:10 
GeneralRe: Help !!!!!! Pin
12-Mar-01 7:34
suss12-Mar-01 7:34 

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.