Solved

Compiling a Version 6 App Under Version 2005 - Errors

Posted on 2006-11-10
2
1,102 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
repeatEnd java challenge 42 85
not able to insert into temp table 68 179
List out all word 7 359
post4 challenge 28 122
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Suggested Courses

751 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