Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Problem with intializing  (Read 2052 times)
Titan
Community Member
*
Posts: 41


« on: October 19, 2004, 05:03:44 PM »

When I tried to initialize TV with MFC it crashed. Why? What should I do to get it work?
Logged
JohnPierre
Community Member
*
Posts: 1250


« Reply #1 on: October 19, 2004, 05:50:41 PM »

can you post the error it gave you? or the debug file so that i have some info to try and help you with
Logged

------------------------------------------
A computer once beat me at chess, but it was no match for me at kick boxing.
Titan
Community Member
*
Posts: 41


« Reply #2 on: October 20, 2004, 08:29:56 AM »

When I start debug it says: access violation.
Code:

#pragma implementation_key(23)

inline VARIANT_BOOL TrueVision3D::_TVEngine::Init3DWindowedMode ( long formHandle, VARIANT_BOOL EnableHardwareTNL ) {
    VARIANT_BOOL _result;
    HRESULT _hr = raw_Init3DWindowedMode(formHandle, EnableHardwareTNL, &_result);
    if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
    return _result;


The line beginning with HRESULT is marked with a yellow arrow
Logged
Titan
Community Member
*
Posts: 41


« Reply #3 on: October 20, 2004, 08:37:14 AM »

And another thing. In MFC with a SDI how can I get the correct WindowHandle, to initialize the engine?
Logged
AriusMyst
Guest
« Reply #4 on: October 20, 2004, 12:59:49 PM »

You need to create the engine object first.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks