Rocket Division Software http://www.starburnsoftware.com/forum/ |
|
error about CLSID_StarBurnX http://www.starburnsoftware.com/forum/starburn-sdk-f3/error-about-clsid-starburnx-t1911.html |
Page 1 of 1 |
Author: | jyu_730 [ Thu Jul 02, 2009 2:27 pm ] |
Post subject: | error about CLSID_StarBurnX |
hi: I use vc6 to develop the StarBurnX. The code like this: m_starBurnX.CreateInstance(CLSID_StarBurnX); if (m_starBurnX == NULL) { AfxMessageBox(_T("Error creating the StarBurnX component")); return FALSE; } The error is: error C2065: 'CLSID_StarBurnX' : undeclared identifier But I have include the starburnx.tlh file. please help me. thanks |
Author: | dima (staff) [ Thu Jul 02, 2009 4:15 pm ] |
Post subject: | Re: error about CLSID_StarBurnX |
Hello, 1) Probably COM is not initialized? 2) You may use the #import directive stdafx.h ... #import "progid:StarBurnX.StarBurnX.10" named_guids ... See the StarBurnX VC examples from SDK!!! Regards, Dmitry Bortsov Rocket Division Software |
Author: | jyu_730 [ Sat Jul 04, 2009 7:07 am ] |
Post subject: | Re: error about CLSID_StarBurnX |
But I can't find the "StarBurnX.StarBurnX.10" file. please tell me where it is. And what does it use for. I only find "starburnx.tlb" file. |
Author: | dima (staff) [ Mon Jul 06, 2009 6:42 am ] |
Post subject: | Re: error about CLSID_StarBurnX |
Hello, The "fileName" parameter of the #import derective can be one of the following: - the name of a file that contains a type library, such as an .olb, .tlb, or .dll file. Example: #import "file:StarBurnX.tlb" named_guids or #import "file:StarBurnX.dll" named_guids - the progid of a control in the type library. Example: #import "progid:StarBurnX.StarBurnx.10" Regards, Dmitry Bortsov Rocket Division Software |
Author: | jyu_730 [ Sat Aug 08, 2009 4:31 am ] |
Post subject: | Re: error about CLSID_StarBurnX |
I use #import "starburnx.tlb" named_guids in stdafx.h, and the debug directory have starburnx.tlh and starburnx.tli files. But I still get the error : error C2065: 'CLSID_StarBurnX' : undeclared identifier the code is m_starBurnX.CreateInstance(CLSID_StarBurnX); if (m_starBurnX == NULL) { AfxMessageBox(_T("Error creating the StarBurnX component")); return FALSE; } |
Author: | jyu_730 [ Sat Aug 08, 2009 6:29 am ] |
Post subject: | Re: error about CLSID_StarBurnX |
I use the VC6.0 compilers |
Author: | dima (staff) [ Mon Aug 10, 2009 2:37 pm ] |
Post subject: | Re: error about CLSID_StarBurnX |
Hello, Try to use the next signature of the import directive : #import "progid:StarBurnX.StarBurnx.10" Regards, Dmitry Bortsov |
Page 1 of 1 | All times are UTC |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |