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

C / C++ / MFC

 
AnswerRe: what happen to my <string> please? Pin
Erik Funkenbusch12-Mar-01 10:54
Erik Funkenbusch12-Mar-01 10:54 
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 
We have developed a COM object in VC++ and the graphical interface in VB.
We have defined in VB a variant array where will be stored the value returned by a VC++ function which is also a Variant.
The problem is that we get a “Type mismatch” error when an empty value is returned.

Can anybody help us? How would you do it?

Below you can find our code:

VB code

Dim MyArray() As Variant

MyArray = COMObject.MyFunctionInVC(CLng(IntData), IntData)

VC code

VARIANT MyClass::MyFunctionInVC (long ldata, SHORT ndata)
{
VARIANT vaResult;
VariantInit(&vaResult);

If (conditions)
{
……………
while (more conditions){
COleVariant vOle(csline, VT_BSTR);
safRet.PutElement(index, &vOle);
index[0]++;
}
vaResult=safRet.Detach();
}
else
{
COleVariant vOle("", VT_BSTR);
vaResult=vOle.Detach();
}
return vaResult;
}Rose | [Rose]
GeneralRe: COM Pin
Erik Thompson12-Mar-01 7:00
sitebuilderErik Thompson12-Mar-01 7:00 
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 

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.