Click here to Skip to main content
16,007,443 members
Home / Discussions / C#
   

C#

 
GeneralRe: uploading to images to remote server Pin
Heath Stewart28-Sep-04 5:14
protectorHeath Stewart28-Sep-04 5:14 
GeneralInverse colour in GDI+ Pin
benjymous28-Sep-04 3:48
benjymous28-Sep-04 3:48 
GeneralRe: Inverse colour in GDI+ Pin
Heath Stewart28-Sep-04 7:02
protectorHeath Stewart28-Sep-04 7:02 
GeneralRe: Inverse colour in GDI+ Pin
leppie28-Sep-04 21:36
leppie28-Sep-04 21:36 
GeneralRe: Inverse colour in GDI+ Pin
Heath Stewart29-Sep-04 5:39
protectorHeath Stewart29-Sep-04 5:39 
GeneralRe: Inverse colour in GDI+ Pin
benjymous28-Sep-04 21:37
benjymous28-Sep-04 21:37 
GeneralCommunication between C++ program and a GUI in C# Pin
Luís Brás28-Sep-04 3:30
Luís Brás28-Sep-04 3:30 
GeneralRe: Communication between C++ program and a GUI in C# Pin
Heath Stewart28-Sep-04 6:34
protectorHeath Stewart28-Sep-04 6:34 
Yes, but define "C++". Are you talking about managed or "unmanaged" (formerly just known as C++) C++? If you're speaking of unmanaged C++, then you're stuck with the ways of doing it between two native applications. That includes DDE, RPC, and the like - all of thich are not supported in the current .NET releases (IPC is supported in .NET 2.0 - at least last time I checked). If you want to some IPC mechanism you'll have to P/Invoke the necessary functions or find a library that already does it (there are a couple here on CodeProject; just search).

The other option is an oldie but a goodie: HWNDs. The use of FindWindow, FindWindowEx, SendMessage, PostMessage, and the like is supported because Windows Forms encapsulates the Windows APIs (among other APIs, like GDI in some cases). Most of the controls (sans DataGrid) encapsulates the Windows Common Controls, and every control - by nature on Windows - is tied to an HWND.

Using Spy++ can help you realize the classes used by the controls, although you'll find most use the same classes as the Common Controls because they are the same window classes.

This has been discussed here on this forum before, and there are articles about this on CodeProject. A quick search should find you the answers you need if you don't have them already.

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

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralRe: Communication between C++ program and a GUI in C# Pin
Christian Graus28-Sep-04 11:53
protectorChristian Graus28-Sep-04 11:53 
GeneralRe: Communication between C++ program and a GUI in C# Pin
Heath Stewart28-Sep-04 13:06
protectorHeath Stewart28-Sep-04 13:06 
GeneralDelegates, thread pool, asynchronous invocation Pin
Serge Lobko-Lobanovsky28-Sep-04 2:10
Serge Lobko-Lobanovsky28-Sep-04 2:10 
Generalwindow flickers Pin
Ajmoda28-Sep-04 1:04
Ajmoda28-Sep-04 1:04 
GeneralRe: window flickers Pin
sreejith ss nair28-Sep-04 1:29
sreejith ss nair28-Sep-04 1:29 
GeneralRe: window flickers Pin
Ajmoda28-Sep-04 1:58
Ajmoda28-Sep-04 1:58 
GeneralRe: window flickers Pin
sreejith ss nair28-Sep-04 2:18
sreejith ss nair28-Sep-04 2:18 
GeneralRe: window flickers Pin
Ajmoda28-Sep-04 2:36
Ajmoda28-Sep-04 2:36 
GeneralRe: window flickers Pin
sreejith ss nair28-Sep-04 2:46
sreejith ss nair28-Sep-04 2:46 
GeneralRe: window flickers Pin
Jay Shankar28-Sep-04 21:44
Jay Shankar28-Sep-04 21:44 
GeneralRe: window flickers Pin
Ajmoda28-Sep-04 21:53
Ajmoda28-Sep-04 21:53 
GeneralRe: window flickers Pin
Jay Shankar28-Sep-04 22:16
Jay Shankar28-Sep-04 22:16 
GeneralRe: window flickers Pin
Ajmoda28-Sep-04 22:23
Ajmoda28-Sep-04 22:23 
GeneralRe: window flickers Pin
Andrzej Markowski28-Sep-04 22:45
Andrzej Markowski28-Sep-04 22:45 
GeneralRe: System.UInt32 -> Integer Pin
El'Cachubrey28-Sep-04 0:35
El'Cachubrey28-Sep-04 0:35 
GeneralAddTabType for PropertyGrid Pin
Claudia Peschke27-Sep-04 23:38
Claudia Peschke27-Sep-04 23:38 
GeneralRe: AddTabType for PropertyGrid Pin
leppie28-Sep-04 0:37
leppie28-Sep-04 0:37 

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.