Click here to Skip to main content
15,907,687 members
Home / Discussions / C#
   

C#

 
GeneralRe: Compound Document Pin
Heath Stewart20-Jul-04 9:08
protectorHeath Stewart20-Jul-04 9:08 
As in compound documents that implement COM interfaces? No. You have to declare the necessary COM interfaces with the proper GUIDs (using the GuidAttribute) and declare them as IUnknown, IDispatch, or dual interfaces using the InterfaceTypeAttribute. Make sure the methods and properties are in the same VTBL order for IUnknown and dual interfaces, and that you use the DispIdAttribute to declare the proper DISPID for IDispatch and dual interfaces.

A couple are already defined in System.Runtime.InteropServices, such as UCOMIPersistFile, but other interfaces like IPersistStream are not.

If you mean "compound documents" are self-serializing documents, then you can use runtime serialization. See Serializing Objects[^] in the .NET Framework SDK for more information and examples. These types of files are not like COM compound documents, however.

 

Microsoft MVP, Visual C#
My Articles
GeneralDynamic Help Pin
ravindra23119-Jul-04 23:42
ravindra23119-Jul-04 23:42 
GeneralRe: Dynamic Help Pin
Heath Stewart20-Jul-04 9:31
protectorHeath Stewart20-Jul-04 9:31 
GeneralRe: Dynamic Help Pin
ravindra23121-Jul-04 1:49
ravindra23121-Jul-04 1:49 
GeneralRe: Dynamic Help Pin
Heath Stewart21-Jul-04 4:16
protectorHeath Stewart21-Jul-04 4:16 
GeneralRe: Dynamic Help Pin
ravindra23123-Jul-04 18:58
ravindra23123-Jul-04 18:58 
GeneralRe: Dynamic Help Pin
Heath Stewart26-Jul-04 2:21
protectorHeath Stewart26-Jul-04 2:21 
QuestionHow can I write with different fonts in DirectX? Pin
arik_a19-Jul-04 22:53
arik_a19-Jul-04 22:53 
AnswerRe: How can I write with different fonts in DirectX? Pin
Heath Stewart20-Jul-04 9:37
protectorHeath Stewart20-Jul-04 9:37 
QuestionC# Living or Phazing out? Pin
Xentinel19-Jul-04 21:53
Xentinel19-Jul-04 21:53 
AnswerRe: C# Living or Phazing out? Pin
Michael P Butler19-Jul-04 22:15
Michael P Butler19-Jul-04 22:15 
AnswerRe: C# Living or Phazing out? Pin
Colin Angus Mackay19-Jul-04 22:45
Colin Angus Mackay19-Jul-04 22:45 
GeneralRe: C# Living or Phazing out? Pin
eggie520-Jul-04 9:17
eggie520-Jul-04 9:17 
GeneralRe: C# Living or Phazing out? Pin
Colin Angus Mackay20-Jul-04 11:02
Colin Angus Mackay20-Jul-04 11:02 
QuestionDisabling addition of new rows in DataGrid? Pin
Radoslav Bielik19-Jul-04 20:52
Radoslav Bielik19-Jul-04 20:52 
AnswerSolution :-) Pin
Radoslav Bielik19-Jul-04 21:22
Radoslav Bielik19-Jul-04 21:22 
Generalassigning data to a TextBox in HandlerEvent Pin
Stephan Wright19-Jul-04 20:50
Stephan Wright19-Jul-04 20:50 
Generalfound a solution :-) Pin
Stephan Wright19-Jul-04 23:04
Stephan Wright19-Jul-04 23:04 
Generalvery urgent. about audio mixers Pin
karpurapu_z19-Jul-04 20:37
karpurapu_z19-Jul-04 20:37 
GeneralGlobal variables and ViewState Pin
Alex Getman19-Jul-04 20:12
Alex Getman19-Jul-04 20:12 
GeneralRe: Global variables and ViewState Pin
Syed Abdul Khader20-Jul-04 4:08
Syed Abdul Khader20-Jul-04 4:08 
Generaledit box display formatting Pin
RonBou19-Jul-04 19:10
RonBou19-Jul-04 19:10 
Generalinpout32.dll Pin
ahmedadelfarid19-Jul-04 18:57
ahmedadelfarid19-Jul-04 18:57 
Generalurgent ! handling multiple data tables in a dataset Pin
sharpX19-Jul-04 18:40
sharpX19-Jul-04 18:40 
GeneralRe: urgent ! handling multiple data tables in a dataset Pin
Heath Stewart20-Jul-04 9:49
protectorHeath Stewart20-Jul-04 9:49 

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.