Click here to Skip to main content
15,892,161 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhat is difference of &buf and *buf?? Pin
beardy janggut8-Mar-06 3:56
beardy janggut8-Mar-06 3:56 
AnswerRe: what is difference of &buf and *buf?? Pin
toxcct8-Mar-06 4:13
toxcct8-Mar-06 4:13 
AnswerRe: what is difference of &buf and *buf?? Pin
Cedric Moonen8-Mar-06 4:18
Cedric Moonen8-Mar-06 4:18 
QuestionBrowseObject Pin
MON2058-Mar-06 3:41
MON2058-Mar-06 3:41 
QuestionMS Word Pin
micutzu8-Mar-06 3:37
micutzu8-Mar-06 3:37 
AnswerRe: MS Word Pin
David Crow8-Mar-06 5:08
David Crow8-Mar-06 5:08 
GeneralRe: MS Word Pin
micutzu8-Mar-06 19:24
micutzu8-Mar-06 19:24 
AnswerRe: MS Word Pin
David Crow13-Mar-06 9:18
David Crow13-Mar-06 9:18 
You might be able to get away with something like:

_Application WordApp;
_Document Doc;
LPDISPATCH pDisp;
LPUNKNOWN pUnk;
CLSID clsid;
 
::CLSIDFromProgID(L"Word.Application", &clsid);
if (::GetActiveObject(clsid, NULL, &pUnk) == S_OK)
{
    VERIFY(pUnk->QueryInterface(IID_IDispatch, (void**) &pDisp) == S_OK);
    WordApp.AttachDispatch(pDisp);
    pUnk->Release();
 
    Doc = WordApp.GetActiveDocument();
    CString str = Doc.GetFullName();
}


"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain

"There is no death, only a change of worlds." - Native American Proverb


QuestionUsing STL classes in a DLL Pin
pplshero548-Mar-06 3:34
pplshero548-Mar-06 3:34 
AnswerRe: Using STL classes in a DLL Pin
pplshero548-Mar-06 3:37
pplshero548-Mar-06 3:37 
AnswerRe: Using STL classes in a DLL Pin
toxcct8-Mar-06 3:40
toxcct8-Mar-06 3:40 
GeneralRe: Using STL classes in a DLL Pin
pplshero548-Mar-06 5:52
pplshero548-Mar-06 5:52 
QuestionPointers to IE Pin
folkenmax8-Mar-06 3:11
folkenmax8-Mar-06 3:11 
AnswerRe: Pointers to IE Pin
Hamid_RT8-Mar-06 7:50
Hamid_RT8-Mar-06 7:50 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 8:10
folkenmax8-Mar-06 8:10 
GeneralRe: Pointers to IE Pin
Hamid_RT8-Mar-06 8:52
Hamid_RT8-Mar-06 8:52 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 8:59
folkenmax8-Mar-06 8:59 
GeneralRe: Pointers to IE Pin
Hamid_RT8-Mar-06 9:14
Hamid_RT8-Mar-06 9:14 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 9:18
folkenmax8-Mar-06 9:18 
GeneralRe: Pointers to IE Pin
Hamid_RT8-Mar-06 9:27
Hamid_RT8-Mar-06 9:27 
GeneralRe: Pointers to IE Pin
folkenmax8-Mar-06 9:39
folkenmax8-Mar-06 9:39 
QuestionCapturing the LogOff Event Pin
Eytukan8-Mar-06 2:57
Eytukan8-Mar-06 2:57 
AnswerRe: Capturing the LogOff Event Pin
James R. Twine8-Mar-06 3:30
James R. Twine8-Mar-06 3:30 
GeneralRe: Capturing the LogOff Event Pin
Eytukan8-Mar-06 3:36
Eytukan8-Mar-06 3:36 
QuestionNeed some help! Pin
munsiyari8-Mar-06 2:12
munsiyari8-Mar-06 2:12 

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.