Click here to Skip to main content
15,898,884 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to with Visual c++ and windows sdk, I'm getting nowhere Pin
mtthw21-Oct-09 17:25
mtthw21-Oct-09 17:25 
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 
Hi Cool_Dev,
thanks for reply.

I come to know IE use "Acrobat Browser document" ocx control to open pdf file.

I am using same ocx control but it doesn't expose any function to get open PDF page count.

BUT IE do the same.

I also come to know you can get page count by opening PDF in binary format and search for /Count or /Type /Page pattern.

I opened PDF in binary form using CFile and try to read single line and count " /Type /Page " pattern but as it is binary file, I could not able to read single line.
Line end is specified by '\n' or '\r' or '\r\n' i.e. 0x0A or 0x0D 0r 0x0D 0x0A.
To check the regular expression I used CAtlRegExp class.


If i check all these patterns and read single byte at a time, it takes lot of time. So can you please provide me some c++/VC++ code sample if possible to read the single line in PDF or get the page count.

Thanks,
Subhash Madhukar
AnswerRe: Internet Explorer get PDF page count Pin
Cool_Dev23-Oct-09 0:25
Cool_Dev23-Oct-09 0:25 
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 

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.