G
Gianco
Hello
I have a problem using the GetTextExtentPoint (the OS is Windows CE 4)
Probably I made a mistake but I don't understand which is. I have no
problems with the other GDI functions, I can draw the text but not
measure it
This is the declaration:
[DllImport("coredll.dll")]
private static extern int GetTextExtentPoint(IntPtr DC, string Str,
int Len, out SIZE size);
And when I use the function:
.....
SIZE Size;
String sValue;
.....
.....
sValue = dXScales.ToString();
GetTextExtentPoint(m_MemoryDC, sValue, sValue.Length, out Size);
......
I obtain the error message:
An unhandled exception of type 'System.MissingMethodException'
occurred in Test.exe
Which is the my error? Any help will be appreciated
Gianco
I have a problem using the GetTextExtentPoint (the OS is Windows CE 4)
Probably I made a mistake but I don't understand which is. I have no
problems with the other GDI functions, I can draw the text but not
measure it
This is the declaration:
[DllImport("coredll.dll")]
private static extern int GetTextExtentPoint(IntPtr DC, string Str,
int Len, out SIZE size);
And when I use the function:
.....
SIZE Size;
String sValue;
.....
.....
sValue = dXScales.ToString();
GetTextExtentPoint(m_MemoryDC, sValue, sValue.Length, out Size);
......
I obtain the error message:
An unhandled exception of type 'System.MissingMethodException'
occurred in Test.exe
Which is the my error? Any help will be appreciated
Gianco