#1 Burning Software

It is currently Wed Dec 18, 2024 10:46 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: error about CLSID_StarBurnX
PostPosted: Thu Jul 02, 2009 2:27 pm 
Offline

Joined: Thu Jul 02, 2009 2:22 pm
Posts: 20
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


Top
 Profile  
 
 Post subject: Re: error about CLSID_StarBurnX
PostPosted: Thu Jul 02, 2009 4:15 pm 
Offline

Joined: Thu Dec 13, 2007 8:44 am
Posts: 609
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


Top
 Profile  
 
 Post subject: Re: error about CLSID_StarBurnX
PostPosted: Sat Jul 04, 2009 7:07 am 
Offline

Joined: Thu Jul 02, 2009 2:22 pm
Posts: 20
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.


Top
 Profile  
 
 Post subject: Re: error about CLSID_StarBurnX
PostPosted: Mon Jul 06, 2009 6:42 am 
Offline

Joined: Thu Dec 13, 2007 8:44 am
Posts: 609
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


Top
 Profile  
 
 Post subject: Re: error about CLSID_StarBurnX
PostPosted: Sat Aug 08, 2009 4:31 am 
Offline

Joined: Thu Jul 02, 2009 2:22 pm
Posts: 20
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;
}


Top
 Profile  
 
 Post subject: Re: error about CLSID_StarBurnX
PostPosted: Sat Aug 08, 2009 6:29 am 
Offline

Joined: Thu Jul 02, 2009 2:22 pm
Posts: 20
I use the VC6.0 compilers


Top
 Profile  
 
 Post subject: Re: error about CLSID_StarBurnX
PostPosted: Mon Aug 10, 2009 2:37 pm 
Offline

Joined: Thu Dec 13, 2007 8:44 am
Posts: 609
Hello,

Try to use the next signature of the import directive :

#import "progid:StarBurnX.StarBurnx.10" :)

Regards,

Dmitry Bortsov


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 37 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group