Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: Changing screen resolution Pin
Dave Kreskowiak2-Dec-04 16:14
mveDave Kreskowiak2-Dec-04 16:14 
GeneralRe: Changing screen resolution Pin
Alex Korchemniy2-Dec-04 16:28
Alex Korchemniy2-Dec-04 16:28 
GeneralRe: Changing screen resolution Pin
Anonymous3-Dec-04 3:08
Anonymous3-Dec-04 3:08 
GeneralRe: Changing screen resolution Pin
Alex Korchemniy3-Dec-04 3:21
Alex Korchemniy3-Dec-04 3:21 
GeneralAutomation server in C# Pin
Member 871962-Dec-04 10:22
Member 871962-Dec-04 10:22 
GeneralRe: Automation server in C# Pin
Heath Stewart2-Dec-04 11:22
protectorHeath Stewart2-Dec-04 11:22 
GeneralRe: Automation server in C# Pin
Member 871963-Dec-04 5:00
Member 871963-Dec-04 5:00 
GeneralRe: Automation server in C# Pin
Heath Stewart3-Dec-04 7:11
protectorHeath Stewart3-Dec-04 7:11 
VS.NET can't reference EXE assemblies, but you can if you use the command-line compiler (VS.NET is trying to avoid circular references).

You really need to define "to be called by other applications". That's easy. Just invoke the executable. You can use CreateProcess or CreateProcessEx in native code, you can use WshShell.Exec in Windows Script (VBScript, JScript, WSH, WSC, etc.), exec in Perl, etc. All that without automation. You only need to support automation when you want to automate with that application, but there's still other ways to do that: anonymous pipes, named pipes, DDE (archaic, but still supported), and much more.

And how you use "call" is ambiquous. So what if you create a DLL in C#? Do you simply use Process.Start to run it? How then will you interact with it? You could use .NET Remoting (preferred between managed applications) but then you need to develop a protocol for other apps to tell your DLL assembly what to do. Too much complexity.

That wouldn't easily work anyway. Native applications can't simply load your managed DLL into memory. You need to expose that to COM and then COM clients load a shim (mscoree.dll, or a custom shim like Office 2003 apps use) whichs hosts the AppDomain and marshals calls to your .NET components.

Please be clear on your requirements. If all you need to do is start the application than just use one of the methods I mentioned above. No complexity is necessary.

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles] [My Blog]
GeneralRe: Automation server in C# Pin
Member 871963-Dec-04 8:12
Member 871963-Dec-04 8:12 
GeneralRe: Automation server in C# Pin
Heath Stewart3-Dec-04 8:44
protectorHeath Stewart3-Dec-04 8:44 
GeneralRe: Automation server in C# Pin
Member 8719615-Dec-04 3:14
Member 8719615-Dec-04 3:14 
GeneralRe: Automation server in C# Pin
Heath Stewart15-Dec-04 5:25
protectorHeath Stewart15-Dec-04 5:25 
GeneralRe: Automation server in C# Pin
Member 8719615-Dec-04 6:26
Member 8719615-Dec-04 6:26 
GeneralRe: Automation server in C# Pin
Member 8719615-Dec-04 6:22
Member 8719615-Dec-04 6:22 
GeneralRe: Automation server in C# Pin
Heath Stewart15-Dec-04 6:50
protectorHeath Stewart15-Dec-04 6:50 
GeneralInstalling .NET Framework Pin
Ami Bar2-Dec-04 9:26
Ami Bar2-Dec-04 9:26 
GeneralRe: Installing .NET Framework Pin
Heath Stewart2-Dec-04 11:03
protectorHeath Stewart2-Dec-04 11:03 
GeneralRe: Installing .NET Framework Pin
Daniel Turini2-Dec-04 11:32
Daniel Turini2-Dec-04 11:32 
GeneralDownload files ListBox and Thread Pin
fredza2-Dec-04 8:28
fredza2-Dec-04 8:28 
GeneralRe: Download files ListBox and Thread Pin
Nick Parker2-Dec-04 9:31
protectorNick Parker2-Dec-04 9:31 
GeneralRe: Download files ListBox and Thread Pin
fredza2-Dec-04 10:04
fredza2-Dec-04 10:04 
GeneralRe: Download files ListBox and Thread Pin
Heath Stewart2-Dec-04 11:08
protectorHeath Stewart2-Dec-04 11:08 
GeneralClose Windows Form automatically Pin
realmontanakid2-Dec-04 6:27
realmontanakid2-Dec-04 6:27 
GeneralRe: Close Windows Form automatically Pin
Judah Gabriel Himango2-Dec-04 7:34
sponsorJudah Gabriel Himango2-Dec-04 7:34 
GeneralRe: Close Windows Form automatically Pin
Heath Stewart2-Dec-04 7:40
protectorHeath Stewart2-Dec-04 7:40 

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.