Search:

Type: Posts; User: baccardi

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,610

    windows explorer working directory

    how can i get windows explorer current directory and when it doesn't have any window only explorer.exe is running i should receive desktop directory?
  2. Replies
    6
    Views
    1,752

    the third parameter or WriteFile should be the...

    the third parameter or WriteFile should be the result of recv
  3. Replies
    3
    Views
    20,635

    well i've read about mtu, and the minimum i could...

    well i've read about mtu, and the minimum i could find was 1492 as i remember, so i succesfully use 1400 byte datagrams
  4. Replies
    3
    Views
    20,635

    udp max datagram size

    i'm writing udp server on windows xp, the problem is i can't send large buffers. Many websites say that i should check the maximum datagram size with getsockopt(), i do so and receive 65507, using...
  5. Replies
    4
    Views
    3,853

    i suppose, firstly you have to accept connection...

    i suppose, firstly you have to accept connection and then to close it, because you get information about the client only after accept
  6. Replies
    6
    Views
    1,983

    cylinder surface area calculates with formula:...

    cylinder surface area calculates with formula: 2*pi*R*h + 2*pi*R^2, so the input should be h and R values of cylinder. The program code:

    float area, R, h;

    area = 2*3.14*R*h + 2*3.14*R*R;
    ...
  7. Replies
    12
    Views
    1,717

    so i guess you haven't studied it, because...

    so i guess you haven't studied it, because programming with assembly involves computer architecture knowledge which is very good in understanding how really pointers work
  8. Replies
    12
    Views
    1,717

    the best way to understand pointers is to study a...

    the best way to understand pointers is to study a little bit of assembly language
  9. Replies
    12
    Views
    22,624

    write a loop to copy all the bytes above space...

    write a loop to copy all the bytes above space symbol to the lower index, sample:
    for (i = spaceIndex; i <= strlen(str); i++)
    str[i] = str[i] + 1;
    str[strlen(str) - 2] = 0; //string end symbol
  10. Replies
    5
    Views
    10,085

    check the strlen() of received string and do the...

    check the strlen() of received string and do the loop:
    for (i = 1; i <= 4 - strlen(itoa(...))); i++)
    printf("0");
  11. Replies
    3
    Views
    1,720

    find the com port address, usually they are:...

    find the com port address, usually they are:
    com1 0x3f8
    com2 0x2f8
    com3 0x3e8
    com4 0x2e8

    then in turbo c you can use inport() and outport() functions that are declared in dos.h
  12. Replies
    9
    Views
    1,284

    well i thought he ment loop as a syntax concept,...

    well i thought he ment loop as a syntax concept, but i agree with you, its impossible to compare the elements of array without a loop
  13. Replies
    9
    Views
    1,284

    use recursion

    use recursion
  14. Replies
    5
    Views
    8,578

    if you still need it pm me, i have written one...

    if you still need it pm me, i have written one some time ago, but i cant tell you now how much it is reliable
  15. typedef struct { int a; } STR; STR Func()...

    typedef struct
    {
    int a;
    } STR;

    STR Func()
    {
    STR str;

    str.a = 5;
  16. Replies
    9
    Views
    4,551

    try including ws2_32.lib

    try including ws2_32.lib
  17. Replies
    1
    Views
    1,882

    check pm

    check pm
  18. Thread: C++ or Java

    by baccardi
    Replies
    10
    Views
    7,571

    It's true, but programming with java you probably...

    It's true, but programming with java you probably won't need soon to know how things work, because there are many classes already written for you the same thing with delphi, so i would suggest you...
  19. Replies
    5
    Views
    1,357

    wm_paint works fine for all windows except menus...

    wm_paint works fine for all windows except menus and pop up menus, what messages are sent when a menu is redrawn? win api documentation says it is WM_DRAWITEM but i've done some research and i didnt...
  20. Replies
    5
    Views
    1,357

    thanks, setting a global hook works for me fine,...

    thanks, setting a global hook works for me fine, because i want to detect evey paint message of all running windows
  21. Replies
    5
    Views
    1,357

    capturing window view change

    is there any way to know when a window is repainted? I assume i should capture wm_paint messages or maybe somehow EndPaint() function (i think this would be better). So, does anyone know any methods...
  22. Replies
    4
    Views
    2,243

    but the thing is I have only 65536 different...

    but the thing is I have only 65536 different buffers(strings), so theoreticaly every buffer is able to have a different value, but the buffers arent fixed size and every char is in the range 0..255
  23. Replies
    4
    Views
    2,243

    counting 16 bit number from a buffer

    how to count a 16 bit number from a buffer that has a unique value, crc doesnt fit me because it returns the same value for 'ab' and 'ba' and what i need is two different values. Is it at least...
  24. Replies
    2
    Views
    1,640

    want to know how i solved the problem? Because...

    want to know how i solved the problem? Because i'm going to convert several bitmaps a second (i'm writing desktop viewer) i need to make it fat but program initialization may be slow, so i made a...
  25. Replies
    2
    Views
    1,640

    GetNearestPaletteIndex too slow

    GetNearestPaletteIndex is very slow, are there any algorithms that i could implement in order to optimize these actions and get the same results as with GetNearestPaletteIndex?
Results 1 to 25 of 26
Page 1 of 2 1 2