Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
AnswerRe: COM interoperability Pin
ThetaClear27-Mar-07 23:04
ThetaClear27-Mar-07 23:04 
QuestionMaking COM+ Application. Pin
Vlad~26-Mar-07 23:50
Vlad~26-Mar-07 23:50 
QuestionReport viewer Pin
kalyan_241626-Mar-07 23:47
kalyan_241626-Mar-07 23:47 
Questionproblem with WindowService and InternetExplorer Object Pin
Amit Agarrwal26-Mar-07 23:46
Amit Agarrwal26-Mar-07 23:46 
QuestionHow to use C# syntax in RDL report expressions Pin
AndrusM26-Mar-07 23:15
AndrusM26-Mar-07 23:15 
QuestionIn case of web service, a remote call is required for a dynamically loaded assembly Pin
2508197426-Mar-07 23:02
2508197426-Mar-07 23:02 
Questioncustom url handler in MS Word Pin
kamPooh26-Mar-07 22:55
kamPooh26-Mar-07 22:55 
Questionsize requested in a EM_GETLINE Pin
manustone26-Mar-07 22:28
manustone26-Mar-07 22:28 
Hi all

I'm doing a C# function retrieving a line of text from a Win32 edit box.
Platform SDK says the folowing: before sending the message, set the first
word of this buffer to the size in TCHARs, of the buffer. For ANSI text, this is the
number of bytes; for Unicode text, this is the number of characters.

How to do that with StringBuilder? I tried to set

StringBuilder ItemText = new StringBuilder(256);
//ItemText[0] = 250; //I'm not usre of that!!!!

IntPtr lenOfString =
Win32Api.SendMessage(
_hWnd,
EM_GETLINE,
IntPtr.Zero,
ItemText
);

but it doesn't work even if for example I set ItemTex[0] = 'a'
with a caracter.
How to handle dimension I want into first character of the stringBuilder
so that WinApi read it correctly?
Regards
ManuStone




-- modified at 4:48 Tuesday 27th March, 2007
AnswerRe: size requested in a EM_GETLINE Pin
Christian Graus27-Mar-07 2:26
protectorChristian Graus27-Mar-07 2:26 
QuestionExporting Data from Windows form to MSExcel Pin
seemadavid26-Mar-07 21:18
seemadavid26-Mar-07 21:18 
QuestionHow to save the data while moving from one page to another page Pin
AR Reddy26-Mar-07 20:54
AR Reddy26-Mar-07 20:54 
AnswerRe: How to save the data while moving from one page to another page Pin
Harini N K26-Mar-07 22:50
Harini N K26-Mar-07 22:50 
GeneralRe: How to save the data while moving from one page to another page Pin
AR Reddy27-Mar-07 1:39
AR Reddy27-Mar-07 1:39 
AnswerRe: How to save the data while moving from one page to another page Pin
Christian Graus27-Mar-07 2:29
protectorChristian Graus27-Mar-07 2:29 
Questionusing Reflection Pin
goldli26-Mar-07 20:49
goldli26-Mar-07 20:49 
AnswerRe: using Reflection Pin
m@u26-Mar-07 21:41
m@u26-Mar-07 21:41 
GeneralRe: using Reflection Pin
goldli26-Mar-07 21:56
goldli26-Mar-07 21:56 
QuestionCrash Reports Pin
Mridang Agarwalla26-Mar-07 20:37
Mridang Agarwalla26-Mar-07 20:37 
QuestionListView Question? Pin
Khoramdin26-Mar-07 20:33
Khoramdin26-Mar-07 20:33 
AnswerRe: ListView Question? Pin
Christian Graus27-Mar-07 2:31
protectorChristian Graus27-Mar-07 2:31 
QuestionFolderBrowserDialog Pin
HUMPPAAA!26-Mar-07 20:04
HUMPPAAA!26-Mar-07 20:04 
AnswerRe: FolderBrowserDialog Pin
stancrm26-Mar-07 20:08
stancrm26-Mar-07 20:08 
GeneralRe: FolderBrowserDialog Pin
HUMPPAAA!26-Mar-07 20:24
HUMPPAAA!26-Mar-07 20:24 
NewsRe: FolderBrowserDialog Pin
HUMPPAAA!26-Mar-07 23:22
HUMPPAAA!26-Mar-07 23:22 
AnswerRe: FolderBrowserDialog Pin
HUMPPAAA!27-Mar-07 0:38
HUMPPAAA!27-Mar-07 0:38 

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.