Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Serialize only 1 field: Panel Pin
pahluwalia23-Sep-03 6:55
pahluwalia23-Sep-03 6:55 
GeneralRe: Serialize only 1 field: Panel Pin
Heath Stewart23-Sep-03 8:31
protectorHeath Stewart23-Sep-03 8:31 
GeneralReceiving Input from other processes/OS (aka Standard In) Pin
AJB...23-Sep-03 5:13
AJB...23-Sep-03 5:13 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Heath Stewart23-Sep-03 5:55
protectorHeath Stewart23-Sep-03 5:55 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Blake Coverett23-Sep-03 6:51
Blake Coverett23-Sep-03 6:51 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
AJB...23-Sep-03 7:20
AJB...23-Sep-03 7:20 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Blake Coverett23-Sep-03 8:05
Blake Coverett23-Sep-03 8:05 
GeneralRe: Receiving Input from other processes/OS (aka Standard In) Pin
Heath Stewart23-Sep-03 8:47
protectorHeath Stewart23-Sep-03 8:47 
Ah, I see he posted what he emailed me directly here.

I must've missed that running instance part otherwise I wouldn't have posted that.

What I did mention, however, is that you can use either DDE, but like you said - that's a bit tricky.

Coming from a COM background, I usually prefer the ROT (running object table) for doing this. There is some support in .NET's BCL for this, but you still have to implement various things to make it work. With a document architecture, you could associate a progid with the document type (file extension, for one example) and get an instance of the document type from the ROT. If the document type has a property to get the running app instance, you could then get the instance and load the new doc into the app instance. This means, then, that you have to insert objects into the ROT. There isn't support for this in .NET, but it's not hard to P/Invoke. This is a very simplistic way of doing things (really, it's better to deal with monikers, in which case you could use a simple file moniker) but it requires a pretty good understanding of COM.

It's all about how much you want to write and how much you want to support. If you do use monikers and the ROT, your document app could easily be invoked from COM. With a little extra work, you could implement an out-of-process server, similar to how the Office apps work.

Just my $0.02.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralNewbie in C# Pin
Member 59611223-Sep-03 4:42
Member 59611223-Sep-03 4:42 
GeneralRe: Newbie in C# Pin
Heath Stewart23-Sep-03 6:02
protectorHeath Stewart23-Sep-03 6:02 
GeneralRe: Newbie in C# Pin
Michael P Butler23-Sep-03 6:44
Michael P Butler23-Sep-03 6:44 
GeneralSystem.UnauthorizedAccessException Pin
ich_bins23-Sep-03 4:29
ich_bins23-Sep-03 4:29 
GeneralControl Designer & Child Controls Issue Pin
scott@otech.com23-Sep-03 4:14
scott@otech.com23-Sep-03 4:14 
GeneralRe: Control Designer & Child Controls Issue Pin
Heath Stewart23-Sep-03 5:50
protectorHeath Stewart23-Sep-03 5:50 
GeneralRe: Control Designer & Child Controls Issue Pin
scott@otech.com23-Sep-03 6:20
scott@otech.com23-Sep-03 6:20 
GeneralRe: Control Designer & Child Controls Issue Pin
Heath Stewart23-Sep-03 6:47
protectorHeath Stewart23-Sep-03 6:47 
GeneralRe: Control Designer & Child Controls Issue Pin
scott@otech.com24-Sep-03 7:51
scott@otech.com24-Sep-03 7:51 
GeneralRe: Control Designer & Child Controls Issue Pin
Heath Stewart24-Sep-03 8:50
protectorHeath Stewart24-Sep-03 8:50 
GeneralRe: Control Designer & Child Controls Issue Pin
scott@otech.com24-Sep-03 9:02
scott@otech.com24-Sep-03 9:02 
Questioncopy constructor needed? Pin
berndg23-Sep-03 2:59
berndg23-Sep-03 2:59 
AnswerRe: copy constructor needed? Pin
Heath Stewart23-Sep-03 3:12
protectorHeath Stewart23-Sep-03 3:12 
GeneralRe: copy constructor needed? Pin
Alvaro Mendez23-Sep-03 4:43
Alvaro Mendez23-Sep-03 4:43 
GeneralRe: copy constructor needed? Pin
Heath Stewart23-Sep-03 5:39
protectorHeath Stewart23-Sep-03 5:39 
GeneralRe: copy constructor needed? Pin
Alvaro Mendez23-Sep-03 10:37
Alvaro Mendez23-Sep-03 10:37 
GeneralRe: copy constructor needed? Pin
Heath Stewart23-Sep-03 10:47
protectorHeath Stewart23-Sep-03 10:47 

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.