Click here to Skip to main content
15,120,814 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Running multiple exe's in same window Pin
2249171-Jul-05 23:38
Member2249171-Jul-05 23:38 
GeneralRe: Running multiple exe's in same window Pin
Bill Chan2-Jul-05 16:36
MemberBill Chan2-Jul-05 16:36 
GeneralWrong behavior of __int64 Pin
Kristian Kratzenstein1-Jul-05 11:49
MemberKristian Kratzenstein1-Jul-05 11:49 
GeneralRe: Wrong behavior of __int64 Pin
PJ Arends1-Jul-05 16:49
professionalPJ Arends1-Jul-05 16:49 
GeneralRe: Wrong behavior of __int64 Pin
evilhehe1-Jul-05 16:59
Memberevilhehe1-Jul-05 16:59 
GeneralRe: Wrong behavior of __int64 [ edited ] Pin
PJ Arends1-Jul-05 17:14
professionalPJ Arends1-Jul-05 17:14 
GeneralRe: Wrong behavior of __int64 [ edited ] Pin
Kristian Kratzenstein1-Jul-05 20:23
MemberKristian Kratzenstein1-Jul-05 20:23 
GeneralAccessing VB Com collection Item Pin
hulinning1-Jul-05 9:47
Memberhulinning1-Jul-05 9: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 10:15
MemberJose Lamas Rios1-Jul-05 10:15 
GeneralRe: Accessing VB Com collection Item Pin
Anonymous5-Jul-05 16:39
MemberAnonymous5-Jul-05 16:39 
GeneralRe: Accessing VB Com collection Item Pin
Anonymous5-Jul-05 16:39
MemberAnonymous5-Jul-05 16:39 
GeneralRe: Accessing VB Com collection Item Pin
Jose Lamas Rios5-Jul-05 18:06
MemberJose Lamas Rios5-Jul-05 18:06 
GeneralRe: Accessing VB Com collection Item Pin
hulinning10-Jul-05 6:00
Memberhulinning10-Jul-05 6:00 
QuestionHow to use CScrollBar from a template? Pin
IlanTal1-Jul-05 9:47
MemberIlanTal1-Jul-05 9:47 
AnswerRe: How to use CScrollBar from a template? Pin
Cedric Moonen1-Jul-05 10:20
MemberCedric Moonen1-Jul-05 10:20 
GeneralRe: How to use CScrollBar from a template? Pin
IlanTal2-Jul-05 20:12
MemberIlanTal2-Jul-05 20:12 
AnswerRe: How to use CScrollBar from a template? Pin
Jose Lamas Rios1-Jul-05 10:23
MemberJose Lamas Rios1-Jul-05 10:23 
Generalclipping child windows Pin
nt231-Jul-05 8:29
Membernt231-Jul-05 8:29 
GeneralRe: clipping child windows Pin
John R. Shaw2-Jul-05 20:05
MemberJohn R. Shaw2-Jul-05 20:05 
Generaltheme Pin
Lampros Giampouras1-Jul-05 7:34
MemberLampros Giampouras1-Jul-05 7:34 
GeneralRe: theme Pin
Alexander M.,1-Jul-05 7:57
MemberAlexander M.,1-Jul-05 7:57 
GeneralRe: theme Pin
Lampros Giampouras1-Jul-05 10:21
MemberLampros Giampouras1-Jul-05 10:21 
GeneralRe: theme Pin
Alexander M.,1-Jul-05 11:56
MemberAlexander M.,1-Jul-05 11:56 
GeneralRe: theme Pin
badal_akr4-Jul-05 23:07
Memberbadal_akr4-Jul-05 23:07 
QuestionHow can I handle message of a class that drived from COleControl? Pin
Behzad Ebrahimi1-Jul-05 7:30
MemberBehzad Ebrahimi1-Jul-05 7: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.