Click here to Skip to main content
15,127,128 members
Home / Discussions / C#
   

C#

 
AnswerRe: Sieve of Eratosthenes Pin
Thomas Daniels12-Sep-12 6:29
mvaThomas Daniels12-Sep-12 6:29 
AnswerRe: Sieve of Eratosthenes Pin
Kenneth Haugland13-Sep-12 4:33
professionalKenneth Haugland13-Sep-12 4:33 
AnswerRe: Sieve of Eratosthenes Pin
PIEBALDconsult12-Sep-12 15:23
professionalPIEBALDconsult12-Sep-12 15:23 
QuestionSubstitution of Paths in HyperLinkField with File Names Pin
ASPnoob12-Sep-12 5:23
MemberASPnoob12-Sep-12 5:23 
AnswerRe: Substitution of Paths in HyperLinkField with File Names Pin
Pete O'Hanlon12-Sep-12 5:55
mvePete O'Hanlon12-Sep-12 5:55 
GeneralRe: Substitution of Paths in HyperLinkField with File Names Pin
ASPnoob12-Sep-12 10:59
MemberASPnoob12-Sep-12 10:59 
QuestionRetrieve name of Printer using SendMessage Pin
toBeH_S11-Sep-12 23:10
MembertoBeH_S11-Sep-12 23:10 
AnswerRe: Retrieve name of Printer using SendMessage Pin
Rage12-Sep-12 7:40
professionalRage12-Sep-12 7:40 
toBeH_S wrote:
SendMessageW( hwn, WM_GETTEXT, (IntPtr)sSize, sbTitle);

You probably meant hwnd.

What is the following code doing:

C#
StringBuilder title = new StringBuilder();

Int32 sSize = SendMessage((int)hWnd, WM_GETTEXTLENGTH, 0, 0).ToInt32();

// If the return is 0, there is no title. 
if (sSize > 0)
{
        sbTitle = new StringBuilder(sSize + 1);
        SendMessage(hwnd,( int)WM_GETTEXT, sbTitle.Capacity, sbTitle);

}
return sbTitle.ToString();


There could also be a Unicode problem.
~RaGE();

I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb


GeneralRe: Retrieve name of Printer using SendMessage Pin
toBeH_S12-Sep-12 9:33
MembertoBeH_S12-Sep-12 9:33 
GeneralRe: Retrieve name of Printer using SendMessage Pin
Rage12-Sep-12 22:25
professionalRage12-Sep-12 22:25 
GeneralRe: Retrieve name of Printer using SendMessage Pin
toBeH_S16-Sep-12 16:18
MembertoBeH_S16-Sep-12 16:18 
QuestionRandom Permutation Interface Pin
Skippums11-Sep-12 16:58
MemberSkippums11-Sep-12 16:58 
AnswerRe: Random Permutation Interface Pin
Dave Kreskowiak11-Sep-12 18:44
mveDave Kreskowiak11-Sep-12 18:44 
AnswerRe: Random Permutation Interface Pin
BillWoodruff12-Sep-12 1:05
mveBillWoodruff12-Sep-12 1:05 
AnswerRe: Random Permutation Interface Pin
Pete O'Hanlon12-Sep-12 1:18
mvePete O'Hanlon12-Sep-12 1:18 
GeneralRe: Random Permutation Interface Pin
Dave Kreskowiak12-Sep-12 3:21
mveDave Kreskowiak12-Sep-12 3:21 
AnswerRe: Random Permutation Interface Pin
BobJanova12-Sep-12 2:17
MemberBobJanova12-Sep-12 2:17 
GeneralRe: Random Permutation Interface Pin
Pete O'Hanlon12-Sep-12 2:27
mvePete O'Hanlon12-Sep-12 2:27 
GeneralRe: Random Permutation Interface Pin
Skippums12-Sep-12 7:41
MemberSkippums12-Sep-12 7:41 
AnswerRe: Random Permutation Interface Pin
PIEBALDconsult12-Sep-12 4:07
professionalPIEBALDconsult12-Sep-12 4:07 
AnswerRe: Random Permutation Interface Pin
Skippums12-Sep-12 8:32
MemberSkippums12-Sep-12 8:32 
GeneralRe: Random Permutation Interface Pin
BillWoodruff13-Sep-12 3:37
mveBillWoodruff13-Sep-12 3:37 
GeneralRe: Random Permutation Interface Pin
PIEBALDconsult13-Sep-12 4:23
professionalPIEBALDconsult13-Sep-12 4:23 
GeneralRe: Random Permutation Interface Pin
PIEBALDconsult13-Sep-12 4:27
professionalPIEBALDconsult13-Sep-12 4:27 
GeneralRe: Random Permutation Interface Pin
Skippums13-Sep-12 8:27
MemberSkippums13-Sep-12 8:27 

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.