Click here to Skip to main content
15,914,943 members
Home / Discussions / C#
   

C#

 
GeneralRe: Retrieve DateTime Pin
Apusnaias21-Apr-04 4:21
Apusnaias21-Apr-04 4:21 
GeneralRe: Retrieve DateTime Pin
Heath Stewart21-Apr-04 6:23
protectorHeath Stewart21-Apr-04 6:23 
GeneralRe: Retrieve DateTime Pin
Apusnaias22-Apr-04 6:12
Apusnaias22-Apr-04 6:12 
Generalwindows media player question Pin
Marveyles20-Apr-04 15:57
Marveyles20-Apr-04 15:57 
GeneralRe: windows media player question Pin
Mazdak21-Apr-04 2:27
Mazdak21-Apr-04 2:27 
GeneralRe: windows media player question Pin
Marveyles22-Apr-04 15:09
Marveyles22-Apr-04 15:09 
Generalexposing a class library as a COM object Pin
User 96257820-Apr-04 9:40
User 96257820-Apr-04 9:40 
GeneralRe: exposing a class library as a COM object Pin
Heath Stewart20-Apr-04 9:47
protectorHeath Stewart20-Apr-04 9:47 
You create a new GUID using the GUID generate in the Tools menu, or the uuidgen.exe, or whatever preferred method you want. Then use the GuidAttribute on your class. Typically, you never change this GUID. You also attribute any class interfaces with a different GUID and after publishing your interfaces (i.e., releasing your code, etc.), never change it. Instead, inherit from that interface with a new one and a different GUID, and implement that as the first interface instead making it the class interface.

The GUID you're looking at is a category ID. I'm not sure what you're trying to do, but if you simply want to implement the interface, you can use any GUID you want. If you're trying to manually interop an existing class, then you can use oleview.exe to find the class and get its CLSID, which is what you'd put in the GuidAttribute on your class declaration.

 

Microsoft MVP, Visual C#
My Articles
GeneralCould someone please post a tutorial Pin
MeterMan20-Apr-04 8:54
MeterMan20-Apr-04 8:54 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart20-Apr-04 9:09
protectorHeath Stewart20-Apr-04 9:09 
GeneralRe: Could someone please post a tutorial Pin
MeterMan20-Apr-04 15:34
MeterMan20-Apr-04 15:34 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart21-Apr-04 3:01
protectorHeath Stewart21-Apr-04 3:01 
GeneralRe: Could someone please post a tutorial Pin
MeterMan20-Apr-04 23:21
MeterMan20-Apr-04 23:21 
GeneralRe: Could someone please post a tutorial Pin
Heath Stewart21-Apr-04 3:12
protectorHeath Stewart21-Apr-04 3:12 
GeneralOleDbDataAdapter Pin
Mehdi Mousavi20-Apr-04 8:49
Mehdi Mousavi20-Apr-04 8:49 
GeneralRe: OleDbDataAdapter Pin
Heath Stewart20-Apr-04 9:06
protectorHeath Stewart20-Apr-04 9:06 
GeneralRe: OleDbDataAdapter Pin
Mehdi Mousavi20-Apr-04 9:55
Mehdi Mousavi20-Apr-04 9:55 
GeneralRe: OleDbDataAdapter Pin
Heath Stewart20-Apr-04 10:07
protectorHeath Stewart20-Apr-04 10:07 
Questionhow can communicate with a router Pin
kashif anwar syed20-Apr-04 8:33
kashif anwar syed20-Apr-04 8:33 
AnswerRe: how can communicate with a router Pin
Heath Stewart20-Apr-04 8:51
protectorHeath Stewart20-Apr-04 8:51 
AnswerRe: how can communicate with a router Pin
Klaus Weisser20-Apr-04 9:17
Klaus Weisser20-Apr-04 9:17 
GeneralRe: how can communicate with a router Pin
Anonymous23-Apr-04 17:43
Anonymous23-Apr-04 17:43 
GeneralEmbed C# controls in MFC views/dialogs Pin
rkvs20-Apr-04 7:51
rkvs20-Apr-04 7:51 
GeneralRe: Embed C# controls in MFC views/dialogs Pin
Heath Stewart20-Apr-04 8:48
protectorHeath Stewart20-Apr-04 8:48 
Generalserial communication in c# Pin
balsmn20-Apr-04 7:34
balsmn20-Apr-04 7:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.