Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralRe: MDI app and hosted controls Pin
Dave Kreskowiak29-Oct-04 5:05
mveDave Kreskowiak29-Oct-04 5:05 
GeneralGetting properties of a MS Word file Pin
Weckmann29-Oct-04 1:09
Weckmann29-Oct-04 1:09 
GeneralSize assignment to a control Pin
eDip29-Oct-04 0:07
eDip29-Oct-04 0:07 
GeneralRe: Size assignment to a control Pin
Stanciu Vlad29-Oct-04 4:49
Stanciu Vlad29-Oct-04 4:49 
GeneralRe: Size assignment to a control Pin
Dave Kreskowiak29-Oct-04 4:54
mveDave Kreskowiak29-Oct-04 4:54 
GeneralRe: Size assignment to a control Pin
Ketty Avashia29-Oct-04 9:45
Ketty Avashia29-Oct-04 9:45 
GeneralPrint RichTextBox Docs... Pin
Zamolxes28-Oct-04 23:56
Zamolxes28-Oct-04 23:56 
GeneralRe: Print RichTextBox Docs... Pin
sreejith ss nair29-Oct-04 4:44
sreejith ss nair29-Oct-04 4:44 
GeneralRe: Print RichTextBox Docs... Pin
Dave Kreskowiak29-Oct-04 4:49
mveDave Kreskowiak29-Oct-04 4:49 
Generalpixel matrix and neural network Pin
Phu Nguyen Si28-Oct-04 22:01
Phu Nguyen Si28-Oct-04 22:01 
GeneralInteresting error Pin
StephenMcAllister28-Oct-04 21:28
StephenMcAllister28-Oct-04 21:28 
GeneralRe: Interesting error Pin
Stanciu Vlad29-Oct-04 4:46
Stanciu Vlad29-Oct-04 4:46 
GeneralRe: Deployment Project Pin
Dave Kreskowiak29-Oct-04 4:40
mveDave Kreskowiak29-Oct-04 4:40 
QuestionHow to do this in C#? Pin
momer28-Oct-04 20:58
momer28-Oct-04 20:58 
AnswerRe: How to do this in C#? Pin
Daniel Turini28-Oct-04 21:31
Daniel Turini28-Oct-04 21:31 
QuestionHow to suspend a process in c# Pin
mendi_198328-Oct-04 20:21
mendi_198328-Oct-04 20:21 
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 

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.