Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: How to suspend a process in c# Pin
Dave Kreskowiak29-Oct-04 4:37
mveDave Kreskowiak29-Oct-04 4:37 
AnswerRe: How to suspend a process in c# Pin
Alvaro Mendez29-Oct-04 5:20
Alvaro Mendez29-Oct-04 5:20 
Generaladdress of an object reference variable in C# Pin
Diana Fernandez28-Oct-04 20:16
Diana Fernandez28-Oct-04 20:16 
Generalexception generated from graphics.FromImage Pin
cchere28-Oct-04 18:43
cchere28-Oct-04 18:43 
GeneralRe: exception generated from graphics.FromImage Pin
Maqsood Ahmed28-Oct-04 23:26
Maqsood Ahmed28-Oct-04 23:26 
GeneralRe: exception generated from graphics.FromImage Pin
cchere29-Oct-04 4:19
cchere29-Oct-04 4:19 
Questionhow to make a bmp image editor with grid Pin
tom_dx28-Oct-04 16:42
tom_dx28-Oct-04 16:42 
Generalp/Invoke using sendmessage in C# Pin
ting66828-Oct-04 16:32
ting66828-Oct-04 16:32 
Hi~

In C# compact framework, I would like to send a message to a window written using "SendMessage" method by p/Invoke.

How can I pass the string to p/invoke method so that the C++ window can get the message? If a pass string, How to convert the lparam into string in C++
windows message loop function? If pass the string as other type, then what is the type?

In compact framework, the key word "MarshalAs" is not supported. Then is there any other way to solve it?

[DllImport("coredll.dll",EntryPoint="SendMessage", CharSet=CharSet.Auto)]
private static extern void SendMessage(IntPtr hwnd, uint msg, int wparam, [MarshalAs(UnmanagedType.LPSTR)] string lparam);

Thanks
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart30-Oct-04 2:31
protectorHeath Stewart30-Oct-04 2:31 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting66831-Oct-04 14:55
ting66831-Oct-04 14:55 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart31-Oct-04 20:11
protectorHeath Stewart31-Oct-04 20:11 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting6681-Nov-04 3:45
ting6681-Nov-04 3:45 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart1-Nov-04 5:27
protectorHeath Stewart1-Nov-04 5:27 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting6683-Nov-04 19:51
ting6683-Nov-04 19:51 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart4-Nov-04 4:41
protectorHeath Stewart4-Nov-04 4:41 
GeneralRe: p/Invoke using sendmessage in C# Pin
ting6684-Nov-04 14:56
ting6684-Nov-04 14:56 
GeneralRe: p/Invoke using sendmessage in C# Pin
Heath Stewart8-Nov-04 5:03
protectorHeath Stewart8-Nov-04 5:03 
GeneralSorting DataGrid from DataView Problems Pin
Rebecca Gao28-Oct-04 16:23
Rebecca Gao28-Oct-04 16:23 
GeneralRe: Sorting DataGrid from DataView Problems Pin
sreejith ss nair28-Oct-04 18:38
sreejith ss nair28-Oct-04 18:38 
GeneralRe: Sorting DataGrid from DataView Problems Pin
Rebecca Gao28-Oct-04 20:39
Rebecca Gao28-Oct-04 20:39 
GeneralRe: Sorting DataGrid from DataView Problems Pin
sreejith ss nair28-Oct-04 22:57
sreejith ss nair28-Oct-04 22:57 
GeneralRe: Sorting DataGrid from DataView Problems Pin
Rebecca Gao29-Oct-04 4:02
Rebecca Gao29-Oct-04 4:02 
Generalforms maximize and minimum Pin
webhay28-Oct-04 16:05
webhay28-Oct-04 16:05 
GeneralRe: forms maximize and minimum Pin
Heath Stewart28-Oct-04 16:16
protectorHeath Stewart28-Oct-04 16:16 
GeneralGDI+ usercontrol problem Pin
bobrad28-Oct-04 15:44
bobrad28-Oct-04 15:44 

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.