CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: hoxsiew

Page 1 of 80 1 2 3 4

Search: Search took 0.10 seconds.

  1. Replies
    4
    Views
    2,557

    Re: Controls in MFC

    I suspect that it probably has to do with another stack variable either before or after "INITCOMMONCONTROLSEX InitCtrls;" which is over/under-flowing. All the ICC_xxx defines are the same size...
  2. Replies
    7
    Views
    3,380

    Re: No repaint in Windows 7?

    No, the buzzword is "Desktop Composition". It is sort of a cache of window contents maintained by the OS to keep a better idea of what windows are doing and to improve performance. You should still...
  3. Replies
    3
    Views
    2,520

    Re: Winsock connect to IP

    Something like this?:



    SOCKET sock;
    unsigned long ip_addr;
    struct sockaddr_in client;

    ip_addr=inet_addr("192.168.1.10");
    memcpy(&client.sin_addr,&ip_addr,sizeof(ip_addr));
  4. Re: How to use Get/SetDIBits() like Get/SetBitmapBits()?

    Actually, I believe it is your first line. CreateCompatibleDC(NULL) will produce a monochrome DC until some object is selected into it. Instead, try CreateCompatibleDC(GetDC(hWnd)) where hWnd is a...
  5. Replies
    11
    Views
    1,516

    Re: VBC++ help with putting stuff into a file

    I do this habitually too. For me, it goes back to the days of writing programs on punch cards. I'm an old dog and I don't like to learn new tricks.
  6. Replies
    3
    Views
    4,867

    Re: Need tweaking done for a SMTP Client.

    I didn't say anything about teaching. It seemed implicit in your post that you were doing this as an exercise in learning network programming.

    I just took a quick look at RFC3207 and it seems...
  7. Replies
    1
    Views
    953

    Re: help :IP,subnets,broadcast etc

    The netmask is part of the IP configuration for the interface. You can't just guess. With that broadcast address, this looks like a class A network. How come you don't have the netmask information?
  8. Replies
    3
    Views
    4,867

    Re: Need tweaking done for a SMTP Client.

    I don't know much about TLS, but doesn't that hand off the process to another port? Are you using port 25 or port 587?

    At any rate, encrypted email seems like a bit much for a learning example.
  9. Replies
    1
    Views
    953

    Re: Messing with libraries bitness on link

    IA64 binaries are NOT compatible with x64 binaries in the windows world. I'm not sure what you are trying to do, but you seem to be mixing two types of binaries in your linking step.
  10. Replies
    3
    Views
    1,448

    Re: Self-referencing header files

    Ack! missed the fact that it's not class pointers.

    What Lindley said!
  11. Replies
    3
    Views
    1,448

    Re: Self-referencing header files

    Don't include the header, just use a forward declaration of the class.



    //"class1.h"

    class Class2;

    class Class1
    {
  12. Replies
    3
    Views
    1,276

    Re: RSA algorithm help

    RSA is a public-key system. Are you sure that's what you want to use? What are you trying to accomplish?
  13. Thread: Telnet Help

    by hoxsiew
    Replies
    5
    Views
    6,219

    Re: Telnet Help

    That's probably the telnet server querying the client for supported options. These are established before the session ever gets to a prompt. See the telnet RFC:
    ...
  14. Replies
    6
    Views
    13,230

    Re: How can convert a char array to CString?

    I only did that for demonstration purposes, hence the comments.
  15. Replies
    6
    Views
    13,230

    Re: How can convert a char array to CString?

    Just use CString's = operator. It will handle the conversion:



    CStringW csw; //force wide cstring regardless of UNICODE setting
    CStringA csa; //force multibyte cstring regardless of UNICODE...
  16. Replies
    12
    Views
    1,840

    Re: Make a sharable EXE

    Sounds like one of those cracker-ish keygen.exe type things that you find one warez sites. Obnoxious graphics and noise to show off how cool the cracker is. Usually crawling with trojans once it...
  17. Replies
    4
    Views
    2,839

    Re: Create compatible bitmap

    In this case, since you mentioned it's an 8-bit BMP, it appears that you are corrupting your bitmap by loading the pixel information into the color table area. An 8-bit BMP has a table of 256 DWORDS...
  18. Re: Calling WM_PAINT or its equivalent with a Button Control

    Well, using your code above, try something like this:





    static int flag=0;

    //...
  19. Re: Calling WM_PAINT or its equivalent with a Button Control

    what is the "case WM_PAINT:" doing in your button handler? It should be a separate case on the same level as WM_COMMAND. What you need to do is ONLY paint in the WM_PAINT handler (the correct one)....
  20. Replies
    4
    Views
    2,839

    Re: Create compatible bitmap

    You are loading a DIB (device independent bitmap) then trying to blit it to a specific device (not independent). You need to first convert your DIB to a device dependent bitmap (DDB) that is...
  21. Thread: COM/Dll Issues

    by hoxsiew
    Replies
    2
    Views
    913

    Re: COM/Dll Issues

    Have you tried to "import" the object?



    #import <MyCOMObject.dll>
  22. Replies
    1
    Views
    828

    Re: Loading HTML

    Why not use the twitter API?

    http://apiwiki.twitter.com/w/page/22554648/FrontPage
  23. Replies
    45
    Views
    5,554

    Re: [RESOLVED] C++ bitmap - why?

    Yes.
  24. Replies
    45
    Views
    5,554

    Re: C++ bitmap - why?

    I guess I should have quoted since you edited your post eliminating all context of my reply. Apparently you understand now, right?
  25. Replies
    45
    Views
    5,554

    Re: C++ bitmap - why?

    How much clearer can I state it? There is a palette in the file and a palette in the bitmap structure. Commenting those lines makes the code fail to load the palette from the file. Without filling...
Results 1 to 25 of 2000
Page 1 of 80 1 2 3 4





Click Here to Expand Forum to Full Width

Featured