Click here to Skip to main content
15,903,817 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I use system cmd without opening console? Pin
YanivNahum12-May-03 3:11
YanivNahum12-May-03 3:11 
AnswerRe: How can I use system cmd without opening console? Pin
swarup12-May-03 3:31
swarup12-May-03 3:31 
AnswerRe: How can I use system cmd without opening console? Pin
David Crow12-May-03 3:44
David Crow12-May-03 3:44 
Answerthanks swarup & DavidCrow - great help Pin
YanivNahum12-May-03 4:20
YanivNahum12-May-03 4:20 
GeneralAdobe Acrobat ActiveX Control Pin
Poul Haahr Klemmensen12-May-03 2:17
Poul Haahr Klemmensen12-May-03 2:17 
GeneralRe: Adobe Acrobat ActiveX Control Pin
Paul Selormey12-May-03 4:27
Paul Selormey12-May-03 4:27 
GeneralRe: Adobe Acrobat ActiveX Control Pin
Poul Haahr Klemmensen12-May-03 20:27
Poul Haahr Klemmensen12-May-03 20:27 
GeneralRe: Adobe Acrobat ActiveX Control Pin
Paul Selormey12-May-03 20:42
Paul Selormey12-May-03 20:42 
Raggamuffin wrote:
My problem is that when I try to have Class wizard generate something it reports the error I mentioned in my first post.

I know. This is because the pdf.ocx is only an automation interface OCX for the real pdf ActiveX control.

Use the Class Wizard and select the pdf.tlb, it will generate the Automation interface and empty event interface for you, say CPdf.

You may search your system to find the real ActiveX or use the ClassWizard to generate a wrapper for any simple ActiveX control, then delete everything with the exception of the Create and GetClsid methods.

Replace the GetClsid method with the one I have provided in my earlier reply. Create the window, use GetControlUnknown method to retrieve IUnknown interface, and the IDispatch interface from the IUnknown. Pass the IDispatch interface to the CPdf instance, and use the CPdf instance to control it. It has LoadFile, which you can use to open a file etc.

If it is getting confusing, write to me privately, I will try to help. If interested, I could write an article with sample for CodeProject Wink | ;)

Best regards,
Paul.


Jesus Christ is LOVE! Please tell somebody.
GeneralUploading file thru WININET Pin
Tili12-May-03 2:12
Tili12-May-03 2:12 
GeneralRe: Uploading file thru WININET Pin
Asmenok30-Sep-03 3:16
Asmenok30-Sep-03 3:16 
General3d game.. like DOOM for console:) Pin
Member 25795612-May-03 2:12
Member 25795612-May-03 2:12 
QuestionHow to knew that a NT/2000 User has logon on? Pin
GooBears12-May-03 2:09
GooBears12-May-03 2:09 
AnswerRe: How to knew that a NT/2000 User has logon on? Pin
Maxwell Chen13-May-03 1:19
Maxwell Chen13-May-03 1:19 
QuestionWhere to Find MFC FAQ? Pin
Haja12-May-03 1:52
Haja12-May-03 1:52 
AnswerRe: Where to Find MFC FAQ? Pin
Kevin McFarlane12-May-03 1:58
Kevin McFarlane12-May-03 1:58 
GeneralRe: Where to Find MFC FAQ? Pin
GooBears12-May-03 2:06
GooBears12-May-03 2:06 
AnswerRe: Where to Find MFC FAQ? Pin
David Crow12-May-03 2:29
David Crow12-May-03 2:29 
GeneralClickety police ! Pin
Trollslayer12-May-03 2:56
mentorTrollslayer12-May-03 2:56 
GeneralBitmap Pin
midupk12-May-03 1:52
midupk12-May-03 1:52 
GeneralRe: Bitmap Pin
midupk12-May-03 1:53
midupk12-May-03 1:53 
Generaltext in video Pin
sharlila12-May-03 1:17
sharlila12-May-03 1:17 
GeneralButton with Bitmap Pin
Rage12-May-03 0:10
professionalRage12-May-03 0:10 
GeneralRe: Button with Bitmap Pin
macmac3812-May-03 0:18
macmac3812-May-03 0:18 
GeneralRe: Button with Bitmap Pin
Rage12-May-03 1:29
professionalRage12-May-03 1:29 
GeneralRe: Button with Bitmap Pin
Member 25795612-May-03 0:20
Member 25795612-May-03 0:20 

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.