Search:

Type: Posts; User: tin

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    5,192

    Got the solution, but an explanation?

    Hi!

    I just figured out from looking at source code on the 'net that I can use:

    ShowWindow(hwnd, SW_HIDE);
    SetWindowLongPtr(hwnd, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
    ShowWindow(hwnd, SW_SHOW);
    ...
  2. Replies
    4
    Views
    5,192

    Problem with SetWindowLongPtr

    Hi!

    I've got a problem with using SetWindowLongPtr. I tried using this code, but it doesn't seem to work:



    LONG toolWindowExStyle = WS_EX_TOOLWINDOW;
    ShowWindow(hwnd, SW_HIDE);
    ...
  3. Replies
    2
    Views
    6,473

    Prob with padding in BMP image files

    Hi!

    I've posted earlier about reading and writing to bitmap image files and I've been able to successfully work with the 32x32 bitmap files that I was interested in.

    Now, I want to deal with...
  4. Replies
    3
    Views
    2,681

    Hi! Thanks for the help. That suggestion by...

    Hi!

    Thanks for the help. That suggestion by Salem really worked for me, and Bubba's explanation of the shearing too.

    I now having a working program that can write a perfectly good 8-bit Bitmap...
  5. Replies
    3
    Views
    2,681

    Writing BMP file... doesn't work correctly

    I've written up a bit of code based on the BMP file format and it seems to work, except that the image appears to be sheared. I can't seem to figure it out... the 8-bit image of 32x32 shouldn't...
  6. Replies
    2
    Views
    741

    Type past width of Edit control

    Hi all!

    I'm writing an application using Win32 APIs and have created an edit box on the window like so:
    hwnd_1=CreateWindowEx(WS_EX_CLIENTEDGE, ca_className_edit, "editMe", WS_CHILD|WS_VISIBLE,...
  7. Replies
    4
    Views
    1,492

    Capture from network interface instead of port

    You may want to capture from the protocol stack instead of directly from the port. You'll need a newer compiler though.
  8. Replies
    6
    Views
    3,096

    The Interceptor Principle #1

    Since your subject says packet interception, I'm assuming you want a 3rd host to get the packets and reply. You can use the pcap library to capture the packets in promiscuous mode. The library...
  9. seq & ack_seq from struct tcphdr... how do I get it?

    Hi!

    I've got a TCP packet off the network and have put it into the tcphdr struct, which is defined as follows in netinet/tcp.h.



    struct tcphdr
    {
    u_int16_t source;
    u_int16_t dest;
  10. Sniffing

    When you sniff for packets, you get all kinds TCP, UDP, ICMP and others. Perhaps you want to capture the TCP packets that you're sending. You can use ethereal for that if you don't want to write...
  11. Replies
    2
    Views
    1,111

    Amperstand in template func.

    Hi!

    A simple quick question here....

    In the following template function, whats the purpose of the '&' in the argument of the BridgeIt function? I tried running it without the '&' and got the...
  12. Thread: gcc not for C++?

    by tin
    Replies
    4
    Views
    2,310

    gcc not for C++?

    Hi!

    When writing C++ programs with classes, I get an error with gcc, but g++ and c++ run fine.

    [byt83@CPQNiT Task3]$ ls
    task1.cpp task2.cpp task3.cpp
    [byt83@CPQNiT Task3]$ gcc -lm -o task2...
Results 1 to 12 of 12