Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionversion change Pin
Purish Dwivedi14-Apr-09 18:28
Purish Dwivedi14-Apr-09 18:28 
AnswerRe: version change Pin
_AnsHUMAN_ 14-Apr-09 18:48
_AnsHUMAN_ 14-Apr-09 18:48 
QuestionRe: version change Pin
Purish Dwivedi14-Apr-09 19:25
Purish Dwivedi14-Apr-09 19:25 
AnswerRe: version change Pin
_AnsHUMAN_ 14-Apr-09 19:34
_AnsHUMAN_ 14-Apr-09 19:34 
GeneralRe: version change Pin
Rajesh R Subramanian14-Apr-09 20:49
professionalRajesh R Subramanian14-Apr-09 20:49 
AnswerRe: version change Pin
beko14-Apr-09 19:57
beko14-Apr-09 19:57 
QuestionRe: version change Pin
Purish Dwivedi14-Apr-09 21:08
Purish Dwivedi14-Apr-09 21:08 
AnswerRe: version change Pin
KarstenK14-Apr-09 21:29
mveKarstenK14-Apr-09 21:29 
QuestionRe: version change Pin
Purish Dwivedi14-Apr-09 21:59
Purish Dwivedi14-Apr-09 21:59 
QuestionC++ client Connectivy with asp.NET webservice Pin
shaina223114-Apr-09 17:38
shaina223114-Apr-09 17:38 
QuestionIs it possible to use SDL and GDI together? Pin
JeffPaine14-Apr-09 10:21
JeffPaine14-Apr-09 10:21 
AnswerRe: Is it possible to use SDL and GDI together? Pin
Cedric Moonen14-Apr-09 21:00
Cedric Moonen14-Apr-09 21:00 
GeneralRe: Is it possible to use SDL and GDI together? Pin
JeffPaine15-Apr-09 4:38
JeffPaine15-Apr-09 4:38 
Questionerror C2850: 'PCH header file' : only allowed at file scope; may not be in a nested construct Pin
chris_kuizon14-Apr-09 9:46
chris_kuizon14-Apr-09 9:46 
AnswerRe: error C2850: 'PCH header file' : only allowed at file scope; may not be in a nested construct Pin
Stuart Dootson14-Apr-09 22:51
professionalStuart Dootson14-Apr-09 22:51 
QuestionAdobe Reader : #import "...\acrobat.tbl" : Getting Compile Error Pin
snacker214-Apr-09 9:43
snacker214-Apr-09 9:43 
AnswerRe: Adobe Reader : #import "...\acrobat.tbl" : Getting Compile Error Pin
snacker214-Apr-09 11:24
snacker214-Apr-09 11:24 
Looks like this might be what I want:
stdafx.h:
#pragma once

#include "targetver.h"

#include <stdio.h>
#include <tchar.h>
#include <conio.h>
#include <iostream>
#include <windows.h>

#import "c:\junk\adobe\acrobat.tlb" no_namespace


main.cpp:
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{   
    CoInitialize( NULL );

    CAcroApp* app = NULL;
    
    LPOLESTR lpolestr;
    StringFromCLSID(__uuidof(AcroApp), &lpolestr);
    wprintf_s(L"\n%s", lpolestr);
    CoTaskMemFree(lpolestr);

    HRESULT hr = CoCreateInstance(
                                    __uuidof( AcroApp )
                                    ,NULL
                                    ,/**/ CLSCTX_ALL /*/ CLSCTX_INPROC_SERVER /**/ // note: "ALL" fails on W95
                                    ,__uuidof( AcroApp )
                                    ,(void**) &app
                                )
                                ;

    wprintf( L"\nHRESULT=%d", hr );
    if( SUCCEEDED( hr ) ){
        wprintf( L"\nSUCCESS!! : %d", hr );
        app->Release();
        app = NULL;
        return 0;
    }else{
        wprintf( L"\nFAILED!! : %d", hr );
        return 1;
    }
}


The best part about this is there aren't any com-specific headers that are NOT included in the VC++ Express Edition.
Questionapplication scripting advice Pin
Dave Calkins14-Apr-09 7:45
Dave Calkins14-Apr-09 7:45 
AnswerRe: application scripting advice Pin
CPallini14-Apr-09 9:24
mveCPallini14-Apr-09 9:24 
GeneralRe: application scripting advice Pin
Dave Calkins14-Apr-09 9:58
Dave Calkins14-Apr-09 9:58 
QuestionRe: application scripting advice Pin
CPallini14-Apr-09 22:55
mveCPallini14-Apr-09 22:55 
QuestionMFC static variable Pin
bhanu_850914-Apr-09 7:44
bhanu_850914-Apr-09 7:44 
QuestionRe: MFC static variable Pin
Eytukan14-Apr-09 8:25
Eytukan14-Apr-09 8:25 
AnswerRe: MFC static variable Pin
bhanu_850914-Apr-09 8:31
bhanu_850914-Apr-09 8:31 
AnswerRe: MFC static variable Pin
Iain Clarke, Warrior Programmer14-Apr-09 8:57
Iain Clarke, Warrior Programmer14-Apr-09 8:57 

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.