Click here to Skip to main content
15,928,626 members
Home / Discussions / C#
   

C#

 
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 
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 
You really need to understand the difference between LPSTR, LPWSTR, and LPTSTR. Since CharSet.Auto is specified in the DllImportAttribute, the string (always Unicode in .NET) will be marshaled as ANSI strings on Win9x/Me and Unicode strings on Windows NT (includes 2K, XP, 2K3, and future versions of Windows).

If you need to marshal from an IntPtr to a string (assuming that memory address points to a string) then use the relevent Marshal class methods, like Marshal.PtrToStringAuto. Read more about the class in the .NET Framework SDK for more information.

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: 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 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart28-Oct-04 16:32
protectorHeath Stewart28-Oct-04 16:32 
GeneralRe: GDI+ usercontrol problem Pin
bobrad28-Oct-04 17:10
bobrad28-Oct-04 17:10 
GeneralRe: GDI+ usercontrol problem Pin
Heath Stewart29-Oct-04 5:37
protectorHeath Stewart29-Oct-04 5: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.