Re: GetWindowText und msctls_statusbar32

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Harald M. Genauck (hmg.ng.entfernen_at_aboutvb.de)
Date: 12/14/04


Date: Tue, 14 Dec 2004 17:36:51 +0100

Hallo Michaela,

> Mit
> r = SendMessage(hwndstatus, SB_GETPARTS, 0, 0)
> schaffe ich es nun schon, die Anzahl der Felder auszulesen.
>
> Wenn ich aber versuche, mit
> r = SendMessage(hwndstatus, SB_GETTEXT, i, lpBuffer)
> den Text der einzelnen Teile abzugreifen, so macht es *BUMM*
> Und zwar stürzt dann nicht VB ab - oh nein - sondern Netscape, dem die
> StatusBar gehört.
>
> Dies passiert unabhängig davon, ob ich einen String oder einen Pointer
> übergebe.

Netscape ist doch Open Source? Dann müsste es doch auch Newsgroups oder
Foren dazu geben...

Viele Grüße

Harald M. Genauck

ABOUT Visual Basic - das Webmagazin
http://www.aboutvb.de



Relevant Pages

  • Re: "Mastering C Pointers"....
    ... A pointer is a kind of variable that can "point to" some object. ... has a type (pointer to int), and a value of some kind. ... You may know that you can access these integers by using array notation ... The function will take one argument, a string, and will return the length ...
    (comp.lang.c)
  • Re: pesky Pointers !!
    ... > and the function takes it as a reference instead of a copy. ... function may access the string passed directly, ... > *px dereferences the pointer to get the value ... If pTest is a pointer-to-string, *pTest is the string it points to ...
    (alt.comp.lang.learn.c-cpp)
  • Re: strtok ( ) help
    ... > splitCommandssomehow modifying the pointer, but I HAVE to call that ... Here's an idea of how to use the strtok() function. ... don't mind trashing the contents of a string s, ... will give you a loop that extracts the tokens one at a time from s. ...
    (comp.lang.c)
  • Re: new IL: C (sort of...).
    ... C doesn't need a string type... ... variant of PL/1 which was very Pascal-ish. ... - C does implement an array declaration. ... effectively converted into a pointer that can be used with the offset ...
    (comp.lang.misc)
  • Re: copy a string into a 2d array of chars
    ... This split function should allocate a 2D array of chars ... >focus the program the string is not actually split. ... later) is an array of char containing the original contents of the ... The i-th pointer will contain the starting address of the ...
    (comp.lang.c)