Click here to Skip to main content
15,914,500 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to with Visual c++ and windows sdk, I'm getting nowhere Pin
Randor 21-Oct-09 17:38
professional Randor 21-Oct-09 17:38 
GeneralRe: How to with Visual c++ and windows sdk, I'm getting nowhere Pin
mtthw22-Oct-09 1:28
mtthw22-Oct-09 1:28 
GeneralRe: How to with Visual c++ and windows sdk, I'm getting nowhere Pin
Randor 22-Oct-09 3:21
professional Randor 22-Oct-09 3:21 
GeneralRe: How to with Visual c++ and windows sdk, I'm getting nowhere Pin
Richard MacCutchan22-Oct-09 3:46
mveRichard MacCutchan22-Oct-09 3:46 
QuestionInternet Explorer get PDF page count Pin
Subhash Madhukar21-Oct-09 14:45
Subhash Madhukar21-Oct-09 14:45 
AnswerRe: Internet Explorer get PDF page count Pin
Cool_Dev21-Oct-09 22:38
Cool_Dev21-Oct-09 22:38 
GeneralRe: Internet Explorer get PDF page count Pin
Subhash Madhukar22-Oct-09 22:58
Subhash Madhukar22-Oct-09 22:58 
AnswerRe: Internet Explorer get PDF page count Pin
Cool_Dev23-Oct-09 0:25
Cool_Dev23-Oct-09 0:25 
I think Adobe Reader(AR) supports OLE Automation, so that another applications can embed AR with in them and automate it programatically. If IE automates AR to open pdf files, there will be two process running in task manager: iexplorer.exe (IE) & AcroRd32.exe (AR). This is not happening when I opened a pdf document in IE. That means IE uses an ActiveX control (Program Files\Common Files\Adobe\Acrobat\ActiveX\AcroPDF.dll) provided by Adobe. You can use this control in your MFC App by inserting "Adobe Reader" activeX control on dialog. You can generate wrapper class for this OCX, but i couldn't find any method to get no. of pages there.

Another way is to automate AR from you application. The Type Library for AR is Program Files\Adobe\Reader 9.0\Reader\AcroRd32.dll. Use OLEView.exe tool of Visual Studio to see the interfaces that AcroRd32.dll provides. There is CAcroPDDoc interface and it has a methods 'Open' to open a pdf document and 'GetNumPages(long*)' to get no. of pages Smile | :) Create wrapper classes for all necessary interfaces using "Add Class from Type Library" in visual studio, instantiate those classes in specified order, invoke methods on them, finally close the document and release the interfaces. Iam sure that this will work for you...

Every problem has n+1 solutions. 'n' is the number of solutions I have tried and '1' is that which is waiting to be tried.
--Cool_Dev--
GeneralRe: Internet Explorer get PDF page count Pin
Subhash Madhukar25-Oct-09 14:45
Subhash Madhukar25-Oct-09 14:45 
GeneralRe: Internet Explorer get PDF page count Pin
Cool_Dev25-Oct-09 18:33
Cool_Dev25-Oct-09 18:33 
QuestionRe: Static maps, visual studio and memory leaks Pin
Draemstars21-Oct-09 12:09
Draemstars21-Oct-09 12:09 
AnswerRe: Static maps, visual studio and memory leaks Pin
«_Superman_»21-Oct-09 13:09
professional«_Superman_»21-Oct-09 13:09 
GeneralRe: Static maps, visual studio and memory leaks Pin
Draemstars22-Oct-09 0:25
Draemstars22-Oct-09 0:25 
GeneralRe: Static maps, visual studio and memory leaks Pin
«_Superman_»22-Oct-09 5:36
professional«_Superman_»22-Oct-09 5:36 
GeneralRe: Static maps, visual studio and memory leaks Pin
Draemstars22-Oct-09 13:19
Draemstars22-Oct-09 13:19 
GeneralRe: Static maps, visual studio and memory leaks Pin
«_Superman_»22-Oct-09 13:33
professional«_Superman_»22-Oct-09 13:33 
GeneralRe: Static maps, visual studio and memory leaks Pin
Chuck O'Toole22-Oct-09 14:16
Chuck O'Toole22-Oct-09 14:16 
GeneralRe: Static maps, visual studio and memory leaks Pin
Draemstars22-Oct-09 23:57
Draemstars22-Oct-09 23:57 
QuestionFindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 8:31
Ismaele.Jr21-Oct-09 8:31 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 8:54
David Crow21-Oct-09 8:54 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 9:23
Ismaele.Jr21-Oct-09 9:23 
QuestionRe: FindWindowEx, 'handle' and notepad.exe Pin
David Crow21-Oct-09 9:29
David Crow21-Oct-09 9:29 
AnswerRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 9:55
Ismaele.Jr21-Oct-09 9:55 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
«_Superman_»21-Oct-09 11:11
professional«_Superman_»21-Oct-09 11:11 
GeneralRe: FindWindowEx, 'handle' and notepad.exe Pin
Ismaele.Jr21-Oct-09 11:26
Ismaele.Jr21-Oct-09 11:26 

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.