Hello mailing-list,
I want to develop a simple COM object (ATL control) in VS2005, so that i
can use some functions in managed code (C#).
I get the device context in a function of the ATL-Control. But i have
Problems with the right setting up. I use a WIN32WindowPtr. Is this
right the right way?
Moreover i get Linking errors:
HGLRC m_hRC;
HDC m_hDC;
WIN32WindowPtr myWin;
static PIXELFORMATDESCRIPTOR pfd = {
sizeof(PIXELFORMATDESCRIPTOR), // Size of
this structure
1, // Version of
this structure
PFD_DRAW_TO_WINDOW | // Draw to
Window(not to bitmap)
PFD_SUPPORT_OPENGL | // Support
OpenGLcalls in window
PFD_DOUBLEBUFFER, //
Doublebuffered mode
PFD_TYPE_RGBA, // RGBA Color mode
24, // Want 24bit
color
0,0,0,0,0,0, // Not used to
select mode
0,0, // Not used to
select mode
0,0,0,0,0, // Not used to
select mode
32, // Size of
depth buffer
0, // Not used to
select mode
0, // Not used to
select mode
PFD_MAIN_PLANE, // Draw in main
plane
0, // Not used to
select mode
0,0,0 }; // Not used to
select mode
// Choose a pixel format that best matches that described in pfd
nPixelFormat = ChoosePixelFormat(m_hDC, &pfd);
// Create the rendering context
m_hRC = wglCreateContext(m_hDC);
myWin = WIN32Window::create();
myWin->setHwnd (this->m_hWnd);
myWin->setHdc(m_hDC);
myWin->setHglrc(m_hRC);
// init the OSG window
myWin->init();
Moreover i get Linking errors:
Fehler 288 error LNK2001: Nicht aufgelöstes externes Symbol
""class osg::NullFieldContainerPtr const osg::NullFC"
([EMAIL PROTECTED]@@[EMAIL PROTECTED]@B)". atlCTL.obj
Fehler 289 error LNK2001: Nicht aufgelöstes externes Symbol
""public: static unsigned short const
osg::FieldContainerPtrBase::InvalidParentEPos"
([EMAIL PROTECTED]@osg@@2GB)". atlCTL.obj
Fehler 290 error LNK2001: Nicht aufgelöstes externes Symbol
""protected: static class osg::FieldContainerType osg::Node::_type"
([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A)". atlCTL.obj
Fehler 291 error LNK2001: Nicht aufgelöstes externes Symbol
""private: static class osg::FieldContainerType osg::GroupBase::_type"
([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A)". atlCTL.obj
Fehler 292 error LNK2001: Nicht aufgelöstes externes Symbol
""private: static class osg::FieldContainerType
osg::TransformBase::_type"
([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A)". atlCTL.obj
Fehler 293 error LNK2001: Nicht aufgelöstes externes Symbol
""private: static class osg::FieldContainerType
osg::PerspectiveCameraBase::_type"
([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A)".
atlCTL.obj
Fehler 294 error LNK2001: Nicht aufgelöstes externes Symbol
""private: static class osg::FieldContainerType
osg::DirectionalLightBase::_type"
([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A)".
atlCTL.obj
Fehler 295 error LNK2001: Nicht aufgelöstes externes Symbol
""private: static class osg::FieldContainerType
osg::WIN32WindowBase::_type"
([EMAIL PROTECTED]@osg@@[EMAIL PROTECTED]@A)". atlCTL.obj
I would be deeply grateful
<http://dict.leo.org/ende?lp=ende&p=/gQPU.&search=grateful> for an answer.
Daniel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users