Solved

Compiling a Version 6 App Under Version 2005 - Errors

Posted on 2006-11-10
2
1,074 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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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 …
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.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

705 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now