Click here to Skip to main content
15,922,155 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: for( ; ; ) ???? Pin
tongc27-Oct-02 1:16
tongc27-Oct-02 1:16 
AnswerRe: for( ; ; ) ???? Pin
Hugo Hallman27-Oct-02 1:52
Hugo Hallman27-Oct-02 1:52 
GeneralRe: for( ; ; ) ???? Pin
tongc27-Oct-02 1:58
tongc27-Oct-02 1:58 
QuestionHow to use CHtmlView in SDI? Pin
Gilad Novik27-Oct-02 0:46
Gilad Novik27-Oct-02 0:46 
AnswerRe: How to use CHtmlView in SDI? Pin
Stephane Rodriguez.27-Oct-02 1:51
Stephane Rodriguez.27-Oct-02 1:51 
Generalexample for using the progress bar Pin
a_hic26-Oct-02 22:13
a_hic26-Oct-02 22:13 
GeneralRe: example for using the progress bar Pin
Ravi Bhavnani27-Oct-02 3:46
professionalRavi Bhavnani27-Oct-02 3:46 
QuestionCollections, SAFEARRAY, ATL Which to and how to use? Pin
Paul Farry26-Oct-02 19:32
professionalPaul Farry26-Oct-02 19:32 
Hi,

I've previously only dealt with collections of BSTRs that really were just 1 layer.

I currently am working on a project where I need a Property of my Main Interface to return the Collection of Objects that are constructed.

IApplication(CApplication) (the main location of all the properties and processing information)
IProcess(CProcess) (1 individual process) (EXEName, ProcessID, Caption, memory etc)
IProcesses(Processes) (I want to have a all running processes(IProcess) returned inside this)
CProcessInfo (is a class only not an ATL object) to temporarily hold all the process information

I've looked at the ATL Collection wizard here on codeproject, and it's made it easy to construct the actual collection code, BUT how do I actually setup the collection to be returned.

I call ExecQuery, and this is currently populating a vector of all the process infomation (into CProcessInfo.

Then I want to call set xx = myObj.QueryResult from VB and have it return the Collection of Processes. and then
for each oProcess of myObj.QueryResult
debug.print oProcess.EXEPath
next

How do I do this... I feel really lame..

Links or examples greatly appreciated.

AnswerRe: Collections, SAFEARRAY, ATL Which to and how to use? Pin
dabs27-Oct-02 2:54
dabs27-Oct-02 2:54 
QuestionHow to retrieve information from .ini file without letting the users see the content Pin
joji26-Oct-02 19:21
joji26-Oct-02 19:21 
AnswerRe: How to retrieve information from .ini file without letting the users see the content Pin
Paul M Watt26-Oct-02 19:33
mentorPaul M Watt26-Oct-02 19:33 
QuestionHow can I add Toolbar button event handler In VC++ 7.0? Pin
Anonymous26-Oct-02 18:55
Anonymous26-Oct-02 18:55 
Generaladding an image Pin
Mel Feik26-Oct-02 18:51
Mel Feik26-Oct-02 18:51 
GeneralRe: adding an image Pin
Michael Dunn26-Oct-02 18:59
sitebuilderMichael Dunn26-Oct-02 18:59 
GeneralRe: adding an image Pin
Mel Feik26-Oct-02 19:21
Mel Feik26-Oct-02 19:21 
GeneralRe: adding an image Pin
Paul M Watt26-Oct-02 19:35
mentorPaul M Watt26-Oct-02 19:35 
GeneralRe: adding an image Pin
Mel Feik26-Oct-02 19:41
Mel Feik26-Oct-02 19:41 
GeneralRe: adding an image Pin
Mel Feik26-Oct-02 19:33
Mel Feik26-Oct-02 19:33 
GeneralRe: adding an image Pin
Michael Dunn26-Oct-02 19:35
sitebuilderMichael Dunn26-Oct-02 19:35 
GeneralRe: adding an image Pin
Mel Feik26-Oct-02 19:41
Mel Feik26-Oct-02 19:41 
GeneralRe: adding an image Pin
peterchen27-Oct-02 7:57
peterchen27-Oct-02 7:57 
GeneralRe: adding an image Pin
Mel Feik27-Oct-02 8:28
Mel Feik27-Oct-02 8:28 
QuestionAny other C++ forum?? Pin
vishwadev26-Oct-02 15:09
vishwadev26-Oct-02 15:09 
AnswerRe: Any other C++ forum?? Pin
Mel Feik26-Oct-02 15:59
Mel Feik26-Oct-02 15:59 
GeneralRe: Any other C++ forum?? Pin
vishwadev26-Oct-02 16:30
vishwadev26-Oct-02 16: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.