Click here to Skip to main content
15,886,873 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionc graphics Pin
vinay dahiya6-Apr-15 12:07
vinay dahiya6-Apr-15 12:07 
AnswerRe: c graphics Pin
Richard MacCutchan6-Apr-15 21:00
mveRichard MacCutchan6-Apr-15 21:00 
AnswerRe: c graphics Pin
CPallini6-Apr-15 21:14
mveCPallini6-Apr-15 21:14 
AnswerRe: c graphics Pin
Stefan_Lang8-Apr-15 3:59
Stefan_Lang8-Apr-15 3:59 
QuestionI need to design a visual design tools for a private GUI library. Pin
yu-jian6-Apr-15 6:38
yu-jian6-Apr-15 6:38 
AnswerRe: I need to design a visual design tools for a private GUI library. Pin
David Crow6-Apr-15 7:46
David Crow6-Apr-15 7:46 
AnswerRe: I need to design a visual design tools for a private GUI library. Pin
Sascha Lefèvre6-Apr-15 8:22
professionalSascha Lefèvre6-Apr-15 8:22 
QuestionIoleUndoManager with Excel application Pin
jaafar tribak6-Apr-15 5:45
jaafar tribak6-Apr-15 5:45 
Hi all,
First of all, I would like to apologize for posting this question in the C++ forum as it deals with Classic VB (VBA) ... The reason I posted here is because I can't get an answer (not even a hint) in the VB/VBA foums ... I searched the web extensively but without any luck

I hope you guys can ,at least, point me in the right direction

Problem:

I am trying to control the Undo/Redo Stack in excel but I can't seem to get a pointer to the UndoManager Interface in the ppv out argument when calling the QueryService Method .. it always returns Nothing ..

I hope someone can tell me what I am doing wrong .. I think the "SID_SApplicationObject" is not the right SID for what I am trying to achieve

Note : I am using the olelib.tlb

Code :
VB
Sub Test()
    Dim pUnk As olelib.IUnknown
    Dim IServiceProvider As olelib.IServiceProvider
    Dim IID_IServiceProvider  As olelib.UUID
    Dim IID_IOleUndoManager As olelib.UUID
    Dim SID_SApplicationObject As olelib.UUID
    Dim ppv As IUnknown
    CLSIDFromString IIDSTR_IServiceProvider, IID_IServiceProvider
    CLSIDFromString "{0C539790-12E4-11CF-B661-00AA004CD6D8}", SID_SApplicationObject
    Set pUnk = Excel.Application
    pUnk.QueryInterface IID_IServiceProvider, IServiceProvider
    IServiceProvider.QueryService SID_SApplicationObject, IID_IOleUndoManager, ppv 
End Sub

Any help will be much appreciated
Regards.
GeneralRe: IoleUndoManager with Excel application Pin
David Crow6-Apr-15 7:50
David Crow6-Apr-15 7:50 
GeneralRe: IoleUndoManager with Excel application Pin
jaafar tribak6-Apr-15 13:14
jaafar tribak6-Apr-15 13:14 
QuestionCFileDialog gives error "C:Windows\system32\config\systemprofile\desktop refers to location not available........ Pin
N3KK5-Apr-15 21:06
N3KK5-Apr-15 21:06 
AnswerRe: CFileDialog gives error "C:Windows\system32\config\systemprofile\desktop refers to location not available........ Pin
Richard MacCutchan5-Apr-15 21:56
mveRichard MacCutchan5-Apr-15 21:56 
GeneralRe: CFileDialog gives error "C:Windows\system32\config\systemprofile\desktop refers to location not available........ Pin
N3KK5-Apr-15 22:16
N3KK5-Apr-15 22:16 
GeneralRe: CFileDialog gives error "C:Windows\system32\config\systemprofile\desktop refers to location not available........ Pin
Richard MacCutchan5-Apr-15 22:35
mveRichard MacCutchan5-Apr-15 22:35 
AnswerGot the solution for my problem...Re: CFileDialog gives error "C:Windows\system32\config\systemprofile\desktop refers to location not available........ Pin
N3KK12-Apr-15 20:07
N3KK12-Apr-15 20:07 
QuestionMFC CDialog hosting WPF components Pin
Member 88339813-Apr-15 1:40
Member 88339813-Apr-15 1:40 
SuggestionRe: MFC CDialog hosting WPF components Pin
David Crow3-Apr-15 3:22
David Crow3-Apr-15 3:22 
GeneralRe: MFC CDialog hosting WPF components Pin
Member 88339813-Apr-15 4:36
Member 88339813-Apr-15 4:36 
QuestionHow to download a file from URL without using curl or libcurl ..in c++.? Pin
mbatra311-Apr-15 23:42
mbatra311-Apr-15 23:42 
AnswerRe: How to download a file from URL without using curl or libcurl ..in c++.? Pin
Jochen Arndt2-Apr-15 0:17
professionalJochen Arndt2-Apr-15 0:17 
GeneralRe: How to download a file from URL without using curl or libcurl ..in c++.? Pin
mbatra316-Apr-15 21:44
mbatra316-Apr-15 21:44 
QuestionRe: How to download a file from URL without using curl or libcurl ..in c++.? Pin
David Crow2-Apr-15 4:04
David Crow2-Apr-15 4:04 
QuestionImplementing Finite State Machine using C++ Pin
Member 93502371-Apr-15 22:19
Member 93502371-Apr-15 22:19 
QuestionRe: Implementing Finite State Machine using C++ Pin
David Crow2-Apr-15 4:09
David Crow2-Apr-15 4:09 
AnswerRe: Implementing Finite State Machine using C++ Pin
CPallini2-Apr-15 6:31
mveCPallini2-Apr-15 6:31 

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.