Solved

Compiling a Version 6 App Under Version 2005 - Errors

Posted on 2006-11-10
2
1,097 Views
Last Modified: 2013-11-20
Hi guys,

I just downloaded this:

http://www.codeproject.com/internet/CustomBrowser.asp

And opened it in Visual Studio 2005, it converted it, and now when I went to compile it I got these errors:


Error      1      fatal error C1083: Cannot open include file: '..\src\occimpl.h': No such file or directory      c:\documents and settings\justin nel\my documents\browser\custombrowser_demo\custombrowser\custombrowser.cpp      9
      
Error      2      fatal error C1083: Cannot open include file: '..\src\occimpl.h': No such file or directory      c:\documents and settings\justin nel\my documents\browser\custombrowser_demo\custombrowser\custsite.cpp      25      

Warning      3      warning C4800: 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)      c:\documents and settings\justin nel\my documents\browser\custombrowser_demo\custombrowser\idispimp.cpp      194      



Could somebody help me compile this on 2005 please?


Cheers guys 'n gals!
0
Comment
Question by:Cyber-Drugs
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 17918191
That is no compiler version issue, it's about where the files reside - locate the directory where you have 'occimpl.h' on your installation and add that directory as an 'Additional Include Directory' in your project settings. These paths have changed since VC6. And #3 is a warning you can usually ignore or change the line

bool bResult = pDlg->CB_IsOurCustomBrowser();

to

bool bResult = pDlg->CB_IsOurCustomBrowser() ? true : false;
0
 
LVL 4

Author Comment

by:Cyber-Drugs
ID: 17918224
Hi jkr,

I read further down the article, it seems 2003/2005 need to replace that line with this:

#include <afxocc.h>

compiles fine now, but will also make your change to remove the Warning issue.

Cheers! :)
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 52
substring method in java 1 135
pre4 challenge 19 110
zeroMAx challenge 20 125
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question