Simple Example

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Simple Example

Postby robodna » Sat Jan 19, 2013 12:50 pm

Hi,

I need to create a simple C++ or C# app which opens a web browser to google.com. I have Visual Studio 2012 Express, and have not been able to get the Visual Studio example code to compile. I don't need to compile source, I just need to use a pre-compiled binary, and add a reference to it from my C++ OR C# project ( either one does not matter ) I created a new C++ Project, but what do I need to include/reference to get the 'Usage' example code to work? How exactly do I link to the library? I tried 'Add->Existing Item' to no avail... Any help would be appricated. Steps would be great...
robodna
Techie
 
Posts: 17
Joined: Sat Jan 19, 2013 12:43 pm

Re: Simple Example

Postby magreenblatt » Sat Jan 19, 2013 3:51 pm

Have you trying building the cefclient sample application included with the binary distribution available from the project dowload page? If so, what errors do you get?

This might also help: viewtopic.php?f=6&t=391&start=10#p15397
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Simple Example

Postby robodna » Sat Jan 19, 2013 4:07 pm

With Visual Studio 2012 Express, I get the atlthung.h error. It does not come with Express, and I don't want to purchase VS Professional just to get this to compile...

When I tried with VS 2005 Professional, it does not compile either. I get the following message:

The following error has orccurred during XML parsing:

File C:\...
Line 1
Column:222
Erro Messsage:
"9.00' violates enumeration constraint of '7.00, 7.10.......) the attribute Version with value 9.00 failed to parse etc...
robodna
Techie
 
Posts: 17
Joined: Sat Jan 19, 2013 12:43 pm

Re: Simple Example

Postby magreenblatt » Sat Jan 19, 2013 4:18 pm

See viewtopic.php?f=6&t=940 for how to fix the atlthunk error.

See viewtopic.php?f=6&t=508 for how to fix the VS2005 error.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Simple Example

Postby robodna » Sat Jan 19, 2013 4:29 pm

I found the problem and have things compiling now...

Thanks
robodna
Techie
 
Posts: 17
Joined: Sat Jan 19, 2013 12:43 pm

Re: Simple Example

Postby magreenblatt » Sat Jan 19, 2013 4:53 pm

Unfortunately it's not possible to support every imaginable Windows setup out of the box. It helps if you use one of the supported versions of VS (2008 or 2010). Using the express versions seem to work for the majority of people if you install the WDK (http://msdn.microsoft.com/en-us/windows ... 52363.aspx). Other than that you're welcome to ask if you run into additional problems. Google search is also a good source of information -- you can add "site:magpcss.org" to your search query in order to get only results from this forum.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 221 guests