Ho Aitor,
do you have initialized OpenSg?
For example I have:
// OSG init
osgInit(0,NULL);
in my Application class.
HTH,
Patrik
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Aitor
Moreno
Gesendet: Dienstag, 22. März 2005 10:43
An: [email protected]
Betreff: [Opensg-users] MFC and OpenSG problems
Hello all,
I am trying to link / integrate OpenSG with MFC.
When the WIN32Window windows is initialized, an error ocurred:
win = WIN32Window::create();
HWND hWnd = this->GetSafeHwnd();
win->setHwnd (hWnd );
win->init(); <--------------------- ERROR
win->deactivate();
The hWnd handle is correct, because it can be used for other "MFC-Stuff".
I am developing a simple demo with MFC and OpenSG. It is based in a
Doc/View MFC architecture and with OpenSG code from the Win32WindowTest and
some piece of code I found in this forum:
https://sourceforge.net/mailarchive/message.php?msg_id=9713463
Any suggestion will be wellcome.
Additionally, the compilation stage outputs a lot of warnings (261) like
those:
...
c:\OpenSG\include\OpenSG\OSGSFVecTypes.h(413) : warning C4231:
nonstandard extension used : 'extern' before template explicit instantiation
c:\OpenSG\include\OpenSG\OSGSFVecTypes.h(423) : warning C4231:
nonstandard extension used : 'extern' before template explicit instantiation
c:\OpenSG\include\OpenSG\OSGSFVecTypes.h(433) : warning C4231:
nonstandard extension used : 'extern' before template explicit instantiation
...
Currently, I am working with the OpenSG 1.4.0 (official release).
Thanks in advance
--
Aitor Moreno
[EMAIL PROTECTED]
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
-------------------------------------------------------
This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
for the chance to win $25,000 and application distribution. Enter today at
http://ads.osdn.com/?ad_idh82&alloc_id148&opÿick
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users