Click here to Skip to main content
15,905,913 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: View Console Problem Pin
led mike25-Jan-08 8:55
led mike25-Jan-08 8:55 
GeneralQuick Question about Static variables inside function calls in MC++ [modified] Pin
Richard Green24-Jan-08 0:26
Richard Green24-Jan-08 0:26 
GeneralRe: Quick Question about Static variables inside function calls in MC++ Pin
Richard Green24-Jan-08 1:43
Richard Green24-Jan-08 1:43 
GeneralRe: Quick Question about Static variables inside function calls in MC++ Pin
Luc Pattyn24-Jan-08 2:35
sitebuilderLuc Pattyn24-Jan-08 2:35 
GeneralRe: Quick Question about Static variables inside function calls in MC++ Pin
Richard Green24-Jan-08 4:03
Richard Green24-Jan-08 4:03 
QuestionActivate and deactivate network connection in Fedora Pin
tassadaque23-Jan-08 0:04
tassadaque23-Jan-08 0:04 
GeneralRe: Activate and deactivate network connection in Fedora Pin
led mike23-Jan-08 4:34
led mike23-Jan-08 4:34 
QuestionHow to call Win32 API functions SetClipBoardViewer, ChangeClipboardChain, etc, from C++ .NET app Pin
largenqcd22-Jan-08 16:08
largenqcd22-Jan-08 16:08 
Hi,

I am a "hobby" programmer with a lot of familiarity with pre-.NET C++ programming in Windows, but not too much with .NET. I've written a Form based Windows application and want to set it up so that the app monitors changes to clipboard data. Therefore, I need to call the Win32 functions SetClipBoardViewer, etc. (Or is there another way to do this in .NET that I haven't found)?

As far as I can tell, I need to use the PInvoke mechanism with declarations something like:

[DllImport("User32")]
static int SetClipboardViewer(int hWndNewViewer);

(I would think these should be HWND's, but the above is what I found.)

My problem is that I don't know the correct declarations for these functions, and I don't know how to set up the calls to them. I found an example for C# that shows how to do the whole process of setting up a clipboard monitoring application, but I really want to learn how to do this in C++.

Any help would be appreciated!
Thanks,
Tom
GeneralRe: How to call Win32 API functions SetClipBoardViewer, ChangeClipboardChain, etc, from C++ .NET app Pin
Giorgi Dalakishvili22-Jan-08 21:38
mentorGiorgi Dalakishvili22-Jan-08 21:38 
GeneralRe: How to call Win32 API functions SetClipBoardViewer, ChangeClipboardChain, etc, from C++ .NET app Pin
led mike23-Jan-08 4:32
led mike23-Jan-08 4:32 
GeneralMethod Call problem Pin
newkid22-Jan-08 2:37
newkid22-Jan-08 2:37 
GeneralChange system date style formate through code Pin
Naveed72721-Jan-08 18:02
Naveed72721-Jan-08 18:02 
GeneralDouble Post - please ignore Pin
Giorgi Dalakishvili21-Jan-08 20:14
mentorGiorgi Dalakishvili21-Jan-08 20:14 
GeneralRe: Double Post - please ignore Pin
Naveed72721-Jan-08 22:35
Naveed72721-Jan-08 22:35 
GeneralRe: Double Post - please ignore Pin
George L. Jackson22-Jan-08 0:07
George L. Jackson22-Jan-08 0:07 
GeneralCalling a function issue Pin
newkid21-Jan-08 9:40
newkid21-Jan-08 9:40 
GeneralRe: Calling a function issue Pin
Paul Conrad27-Jan-08 6:20
professionalPaul Conrad27-Jan-08 6:20 
GeneralDataGridView Pin
Member 400952119-Jan-08 0:23
Member 400952119-Jan-08 0:23 
GeneralVS 2005 doesn't give me an .exe file when I build a C++ project Pin
bwilhite16-Jan-08 7:29
bwilhite16-Jan-08 7:29 
GeneralRe: VS 2005 doesn't give me an .exe file when I build a C++ project Pin
led mike16-Jan-08 7:51
led mike16-Jan-08 7:51 
GeneralRe: VS 2005 doesn't give me an .exe file when I build a C++ project Pin
bwilhite16-Jan-08 7:58
bwilhite16-Jan-08 7:58 
QuestionRe: VS 2005 doesn't give me an .exe file when I build a C++ project Pin
Mark Salsbery16-Jan-08 8:17
Mark Salsbery16-Jan-08 8:17 
GeneralRe: VS 2005 doesn't give me an .exe file when I build a C++ project Pin
bwilhite16-Jan-08 8:18
bwilhite16-Jan-08 8:18 
GeneralRe: VS 2005 doesn't give me an .exe file when I build a C++ project Pin
Mark Salsbery16-Jan-08 8:25
Mark Salsbery16-Jan-08 8:25 
GeneralRe: VS 2005 doesn't give me an .exe file when I build a C++ project Pin
bwilhite16-Jan-08 8:29
bwilhite16-Jan-08 8:29 

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.