Click here to Skip to main content
14,668,261 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running multiple exe's in same window Pin
2249171-Jul-05 22:38
Member2249171-Jul-05 22:38 
GeneralRe: Running multiple exe's in same window Pin
Bill Chan2-Jul-05 15:36
MemberBill Chan2-Jul-05 15:36 
GeneralWrong behavior of __int64 Pin
Kristian Kratzenstein1-Jul-05 10:49
MemberKristian Kratzenstein1-Jul-05 10:49 
GeneralRe: Wrong behavior of __int64 Pin
PJ Arends1-Jul-05 15:49
professionalPJ Arends1-Jul-05 15:49 
GeneralRe: Wrong behavior of __int64 Pin
evilhehe1-Jul-05 15:59
Memberevilhehe1-Jul-05 15:59 
GeneralRe: Wrong behavior of __int64 [ edited ] Pin
PJ Arends1-Jul-05 16:14
professionalPJ Arends1-Jul-05 16:14 
GeneralRe: Wrong behavior of __int64 [ edited ] Pin
Kristian Kratzenstein1-Jul-05 19:23
MemberKristian Kratzenstein1-Jul-05 19:23 
GeneralAccessing VB Com collection Item Pin
hulinning1-Jul-05 8:47
Memberhulinning1-Jul-05 8:47 
Hi all,
I try to access to VB com collection Item method but I got a bad type error.
I import VB COM library into vc++ application. From the smart pointer of the collection, the function requests a VARIANT* data type. I create a variant variable as assigned 1 to it to get first item in the collection.

Here is my code:
_clsMacManPtr Mac ;
if ( Mac->ReadDailyMachiningReport (bstrFilePath) != 0 )
{
Reports = Mac->GetDailyMachiningReport () ;

if ( Reports->Count > 0 )
{
vValue.iVal = 1 ;


Report = Reports->GetItem(&vValue ) ; // failed here

bstrValue = Report->NoWork ;

}
}

I appreciate for any comments
GeneralRe: Accessing VB Com collection Item Pin
Jose Lamas Rios1-Jul-05 9:15
MemberJose Lamas Rios1-Jul-05 9:15 
GeneralRe: Accessing VB Com collection Item Pin
Anonymous5-Jul-05 15:39
MemberAnonymous5-Jul-05 15:39 
GeneralRe: Accessing VB Com collection Item Pin
Anonymous5-Jul-05 15:39
MemberAnonymous5-Jul-05 15:39 
GeneralRe: Accessing VB Com collection Item Pin
Jose Lamas Rios5-Jul-05 17:06
MemberJose Lamas Rios5-Jul-05 17:06 
GeneralRe: Accessing VB Com collection Item Pin
hulinning10-Jul-05 5:00
Memberhulinning10-Jul-05 5:00 
QuestionHow to use CScrollBar from a template? Pin
IlanTal1-Jul-05 8:47
MemberIlanTal1-Jul-05 8:47 
AnswerRe: How to use CScrollBar from a template? Pin
Cedric Moonen1-Jul-05 9:20
MemberCedric Moonen1-Jul-05 9:20 
GeneralRe: How to use CScrollBar from a template? Pin
IlanTal2-Jul-05 19:12
MemberIlanTal2-Jul-05 19:12 
AnswerRe: How to use CScrollBar from a template? Pin
Jose Lamas Rios1-Jul-05 9:23
MemberJose Lamas Rios1-Jul-05 9:23 
Generalclipping child windows Pin
nt231-Jul-05 7:29
Membernt231-Jul-05 7:29 
GeneralRe: clipping child windows Pin
John R. Shaw2-Jul-05 19:05
MemberJohn R. Shaw2-Jul-05 19:05 
Generaltheme Pin
Lampros Giampouras1-Jul-05 6:34
MemberLampros Giampouras1-Jul-05 6:34 
GeneralRe: theme Pin
Alexander M.,1-Jul-05 6:57
MemberAlexander M.,1-Jul-05 6:57 
GeneralRe: theme Pin
Lampros Giampouras1-Jul-05 9:21
MemberLampros Giampouras1-Jul-05 9:21 
GeneralRe: theme Pin
Alexander M.,1-Jul-05 10:56
MemberAlexander M.,1-Jul-05 10:56 
GeneralRe: theme Pin
badal_akr4-Jul-05 22:07
Memberbadal_akr4-Jul-05 22:07 
QuestionHow can I handle message of a class that drived from COleControl? Pin
Behzad Ebrahimi1-Jul-05 6:30
MemberBehzad Ebrahimi1-Jul-05 6:30 

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.