Click here to Skip to main content
15,891,762 members
Home / Discussions / C#
   

C#

 
AnswerRe: Blocking Queue Pin
Nicholas Butler11-Jan-10 5:31
sitebuilderNicholas Butler11-Jan-10 5:31 
QuestionProblem at second connection attempt Pin
sleepyman11-Jan-10 3:29
sleepyman11-Jan-10 3:29 
AnswerRe: Problem at second connection attempt Pin
OriginalGriff11-Jan-10 4:06
mveOriginalGriff11-Jan-10 4:06 
GeneralRe: Problem at second connection attempt Pin
sleepyman11-Jan-10 4:15
sleepyman11-Jan-10 4:15 
GeneralRe: Problem at second connection attempt Pin
OriginalGriff11-Jan-10 4:37
mveOriginalGriff11-Jan-10 4:37 
GeneralRe: Problem at second connection attempt Pin
sleepyman11-Jan-10 5:57
sleepyman11-Jan-10 5:57 
GeneralRe: Problem at second connection attempt Pin
OriginalGriff11-Jan-10 8:19
mveOriginalGriff11-Jan-10 8:19 
QuestionRead in Cyrillic, Arabic, Japanese with GetWindowText not working Pin
elmernite11-Jan-10 3:04
elmernite11-Jan-10 3:04 
I am trying to read text from an external application using GetWindowText. It works just fine for all of the other languages in the software I am trying to read from. (German, English, French) However, it fails when it tries to read in Cyrillic (Russian), Arabic, Japanese. All it gets is a bunch of question marks. Here is the code that I am using.

[DllImport("User32.dll", CharSet = CharSet.Unicode)]
public static extern Int32 GetWindowText(int hWnd, StringBuilder s, int nMaxCount);


//Form Builder is a StringBuilder
Win32.GetWindowText(hWnd, formDetails, 512);


When I display the text using a textbox is is merely a bunch of "?????? ????? ?? ???????".
I know it has nothing to do with the textboxes inability to display those languages because if I directly drop a string of Cyrillic into a variable in C# and display it in the box, it display just fine. What am I doing wrong?

-Elmernite
AnswerMessage Closed Pin
11-Jan-10 3:14
stancrm11-Jan-10 3:14 
QuestionRe: Read in Cyrillic, Arabic, Japanese with GetWindowText not working Pin
elmernite11-Jan-10 3:24
elmernite11-Jan-10 3:24 
QuestionWhat's the best way to determine viewable portion of custom heading in DataGridView? Pin
arnold_w11-Jan-10 2:34
arnold_w11-Jan-10 2:34 
AnswerRe: What's the best way to determine viewable portion of custom heading in DataGridView? Pin
dan!sh 11-Jan-10 3:32
professional dan!sh 11-Jan-10 3:32 
GeneralRe: What's the best way to determine viewable portion of custom heading in DataGridView? Pin
arnold_w11-Jan-10 3:39
arnold_w11-Jan-10 3:39 
GeneralRe: What's the best way to determine viewable portion of custom heading in DataGridView? Pin
dan!sh 11-Jan-10 3:45
professional dan!sh 11-Jan-10 3:45 
GeneralRe: What's the best way to determine viewable portion of custom heading in DataGridView? Pin
arnold_w11-Jan-10 3:50
arnold_w11-Jan-10 3:50 
GeneralRe: What's the best way to determine viewable portion of custom heading in DataGridView? Pin
arnold_w11-Jan-10 3:53
arnold_w11-Jan-10 3:53 
GeneralRe: What's the best way to determine viewable portion of custom heading in DataGridView? Pin
dan!sh 11-Jan-10 4:00
professional dan!sh 11-Jan-10 4:00 
QuestionCustom Control expandable property ordering [solved] Pin
OriginalGriff11-Jan-10 1:54
mveOriginalGriff11-Jan-10 1:54 
AnswerRe: Custom Control expandable property ordering. Pin
Martin#11-Jan-10 3:43
Martin#11-Jan-10 3:43 
GeneralRe: Custom Control expandable property ordering. Pin
OriginalGriff11-Jan-10 3:57
mveOriginalGriff11-Jan-10 3:57 
GeneralRe: Custom Control expandable property ordering. Pin
Martin#11-Jan-10 4:01
Martin#11-Jan-10 4:01 
QuestionMouse Wheel Scroll Pin
Pavan Navali11-Jan-10 0:44
Pavan Navali11-Jan-10 0:44 
AnswerRe: Mouse Wheel Scroll Pin
Covean11-Jan-10 1:35
Covean11-Jan-10 1:35 
AnswerRe: Mouse Wheel Scroll Pin
PIEBALDconsult11-Jan-10 3:52
mvePIEBALDconsult11-Jan-10 3:52 
QuestionLooping through XMLNodeList problem Pin
jamesc6910-Jan-10 23:32
jamesc6910-Jan-10 23:32 

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.