Forum moved here!

Home / Compiling failed (SumatraPDF code 3.11 plus VS2017)

Ma_Jordan

Hello Guys,

I downloaded SumatraPDF 3.11 source code and launch the project with VS2017. With little change, the compiling and linking worked well for both win32 and x64 settings.

Then I modified the code in the function UpdateCheckAsync( ):
( presented at the up red rectangle of screenshot )

  1. comment out original code in this function.
  2. add a couple lines of code to read the filename and current page.
  3. then copy the info of filename and current page to clipboard.

Nothing else has been touched of the source code. But the errors ( showed at the down red rectangle of screenshot ) never got out of the way. From the error message, it is suggested that there might be redefined type or some type is not complete. However, I didn’t alter any types (struct, class, head file and so on) at all. This problem totally confused me.

Is there any one who encountered the similar issue? pls kindly advise.

Merry Christmas and a Happy New Year!

=====================================================

Brs
Jordan Ma

GitHubRulesOK

Not the dev so as you know my code knowledge is limited however the 3.11 codebase is old thus always best to use a more recent one, but that is likely to require the VS be just as modern due to high inter-related code updates. Having said that the best place for raising such issues in on GitHub.

As to the specifics of detecting current tab there were some very recent re-factorings to make tooltab filenames work and those went through some minor syncronisation hiccups until the most recent updates, thus again suggesting the current code base would perhaps make your task easier.

As a user the easiest way to get current file name is to trigger externalviewers command since that exports both current filename and pagenumber.(and user word selection via web search)