Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Compiling a Version 6 App Under Version 2005 - Errors

Posted on 2006-11-10
2
Medium Priority
?
1,137 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 2000 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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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.
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses

824 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