Search:

Type: Posts; User: stormbringer

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Getting the position of a dialog without parent on the screen

    hi

    i have a little program that just displays a dialog. now i want to remember the position of the dialog, wenn the user presses next to reach the next dialog and place the new dialog at the same...
  2. That was what i was looking for such a long time....

    That was what i was looking for such a long time.
    Thank you.
  3. config files for exe's that are called with a batch

    hi

    i have the folowing problem: i wrote a small comandline programm, that works on textfiles. it's behavior can be configured in a file called keywords.cfg. this file shall be in the same...
  4. Replies
    6
    Views
    1,347

    why?

    why?
  5. Replies
    1
    Views
    2,093

    sending messages to a scrollbar

    hi

    i have a scrollbar for an error-log output area on the main window. now i want that everytime the contet of that area is updated, the srcollbar goes to the BOTTOM (with the content moving...
  6. Replies
    4
    Views
    1,565

    thank you two. another question, that's slightly...

    thank you two. another question, that's slightly connected to this one, i think.

    reading petzolds book "Windows Programming 5th Edition", i saw he's always using (this far) CS_VREDRAW |...
  7. Replies
    4
    Views
    1,565

    DrawText and different backgounr colors

    Hi

    I' changing the main windows backgoundcolor to grea with this class definition:



    wndclass.style = CS_HREDRAW |CS_VREDRAW;
    wndclass.lpfnWndProc = WndProc;...
  8. Replies
    3
    Views
    1,317

    another question. i set the number of text in the...

    another question. i set the number of text in the dit window to unlimited (well, limited by memory) with:



    SendMessage(hwndEditWin,EM_LIMITTEXT,-1,0L);


    lets say i open a 25meg text file in...
  9. Replies
    3
    Views
    1,317

    i'll post more proper formatet code next time....

    i'll post more proper formatet code next time. anyway, i found the error, which was a pretty simple one. i had ID_EDITWIN defined like that:

    #define NUMOFBUTTONS 14
    #define ID_EDITWIN...
  10. Replies
    3
    Views
    1,317

    problem with edit-window

    hi

    i'm just reading petzold and learning to programm the winapi. i'm doing this, by writing an ide (or gui if you want like that) for a command line tool i once wrote. i am setting up a control...
  11. Replies
    1
    Views
    878

    Directories

    Hi

    I want to make a programm similar to "dir", except that it does not diplay the files found, but work with it. Let's call my prog dir2. Finding files like "dir2 *.sys" is easy. I use...
  12. Replies
    3
    Views
    1,623

    Regular Expressions

    Hi

    I'm using MS Visual C++ 6.0 to develop some small console applications under win2000. i need to scan a phrase for certain patterns. that would be easyest using a regex-library. here my...
  13. Replies
    4
    Views
    1,019

    that's done before. i assure that it is a valid...

    that's done before. i assure that it is a valid string, so checking for '\0' would just be an overhead.
  14. Replies
    4
    Views
    1,019

    thanks, stupid error

    thanks, stupid error
  15. Replies
    4
    Views
    1,019

    pointer to char

    hi

    i'm evaluating a string. ppos (char *) points to the beginning. it's assured that '"' or ' ' occures befor the beginning of the string is reached. however, whats wrong with this expression

    ...
  16. Replies
    8
    Views
    1,257

    well, i once wrote a programm scaning, converting...

    well, i once wrote a programm scaning, converting and replacing expressions in a 8gb logfile.
    with a buffer the file runs for about half an hour or so, without two days.....

    however, what...
  17. Replies
    8
    Views
    1,257

    but if the file is too large to read into memory,...

    but if the file is too large to read into memory, there's a problem. and there's no way to get the lenght of a line in an acceptable time (we could determine it by going from \n to \n with fgetc, but...
  18. Replies
    8
    Views
    1,257

    i see. so if i want to read a small file into...

    i see. so if i want to read a small file into memory (parts of the line, which specify options) i qould do best to write a function with a array of let's say thousand. then get the real stringlength...
  19. Replies
    8
    Views
    1,257

    ok another question: if i have functions...

    ok

    another question:

    if i have functions like:



    int main()
    {
  20. Replies
    8
    Views
    1,257

    strings and memory

    hi

    i'm a little confused about strings and memory. if i specify a statement like:


    char *mystring;

    mystring="Hello";

    what happens then? is memory allocated automaticaly or is this...
  21. Replies
    4
    Views
    1,510

    i did initialize it, but did another stupid...

    i did initialize it, but did another stupid error. i had a statement from a former version, that used to work with a pointer with the same name. so the prog didn't crash, but not do what i did...
  22. Replies
    4
    Views
    1,510

    ok, bad error. the malloc has to be in the if...

    ok, bad error. the malloc has to be in the if statement. and it'll be freed at termination of programm, becaus it's needed till then.

    the programm does compile. it seems like accessing the elemts...
  23. Replies
    4
    Views
    1,510

    "dynamic array"

    hi

    i need to allocate a "dynamic array". the user can enter the size of it (eg: myprog 100) and this array will be generatet and worked with as a range checker (i'm checking numbers in files and...
  24. Replies
    4
    Views
    1,260

    i saw. edited the post: right as you've been...

    i saw. edited the post: right as you've been replying :-) what i don't really understand: how is in this code ensured, that the buf1 doesn't catch up?

    because of the line of code. i saw what...
  25. Replies
    4
    Views
    1,260

    looking good. however, i have a few questions: ...

    looking good. however, i have a few questions:



    void editbuff ( struct buff *buff ) {
    ...
    int len1 = s - buff->buff[i] + 5; /* start to space after page */
    ...
Results 1 to 25 of 90
Page 1 of 4 1 2 3 4