Solved

Compiling a Version 6 App Under Version 2005 - Errors

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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
C++ BOOL WINAPI ReadFile fails on windows 10 when reading from USB cable 9 471
Pressing cancel button with C# UI Automation 3 81
EvenOdd challenge 10 125
Making an alias 7 101
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seveā€¦
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.

839 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