Christopher Back wrote on Thursday, December 04, 2008 3:34 PM:

> Hi,
> 
> I was looking to use the OSG in what is basically a MFC class for a
final
> project. I downloaded the example from the website but it does not
compile
> properly. The largest issue is the message that is added to make sure
the
> other windows keeps rendering. I get an error that says:   
> 
> error C2665:  'AfxMessageBox' : none of the 2 overloads could convert
all the
> argument types 
> 
> the other error is:
> 
> error C2664: 'cOSG::InitOSG' : cannot convert parameter 1 from 'const
wchar_t
> *' to 'std::string' 
> 
> I saw a posting a year ago about the second error but no solution was
given.
> I could not find anything mentioning the AfxMessageBox error. 
> 
> I am using visual studios 8 and running OSG 2.2. If anyone could help
me with
> the problem I would be extremely grateful. 
> 
> Thanks in advance,
> 
> Chris

It seems likely that the two are related; probably you need to set the
"Character Set" configuration property (under "General") in your Visual
Studio project to "Not Set"; it looks like you're having a clash between
multi-character strings and standard C strings.

HTH,
-- 
Bryan Thrall
FlightSafety International
[EMAIL PROTECTED]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to