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

Search:

Type: Posts; User: Austin.Soucy

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    14
    Views
    1,182

    Re: Simple Word Generator Help

    One link is not going to show you how to do this. I have never implemented anything this large and since I have been looking for a new project i might just try my hand at this as well.
    ...
  2. Replies
    14
    Views
    1,182

    Re: Simple Word Generator Help

    If I remember correctly from the movie, there was a subtle difference in what their program did. The letters given to their program were not used more than once unless they were entered more than...
  3. Replies
    3
    Views
    1,042

    Re: Click N Drag

    Well using Win32 API your window will receive WM_LBUTTONDOWN and WM_LBUTTONUP messages. If the user clicks and drags then these two messages will have different coords. You could write a custom...
  4. Replies
    9
    Views
    1,281

    Re: input validation error

    Yes. The only way your program can get out of that loop is by changing correctchoice to something other than zero(you could also use bool here). So you should only allow your program to change...
  5. Replies
    9
    Views
    1,281

    Re: input validation error

    In this case you can think of the 'else' as your Error Handling code. This is what will happen if the user inputs a bad value. Typically I would not ask for the user input again in the else...
  6. Replies
    9
    Views
    1,281

    Re: input validation error

    Then what happens if the user inputs an invalid choice twice in a row?

    Here is a solution to your problem. This will fix your issue with the least amount of changes.


    int main()
    {
    char...
  7. Replies
    9
    Views
    1,281

    Re: input validation error

    /***************************\
    | Degree Converter |
    | Code By: Ben Brotsker |
    | Last Mod: 02/16/11 |
    \***************************/

    #include <iostream>
    #include <iomanip>
    using namespace std;
  8. Replies
    18
    Views
    7,078

    Re: SendMessage for a game

    Unfortunately I am stumped at this point...I tried :(

    If you are using the correct HWND and passing correct client coords I see no reason that it should not work. Maybe if you post your full code...
  9. Replies
    2
    Views
    689

    Re: Response to a ping

    Your question might receive better input from the VB6 forum located here.
  10. Replies
    3
    Views
    1,648

    Re: Creating TCP/IP Port programatically

    I have no idea what that code says but try right clicking your app and selecting 'Run as Administrator'.
  11. Replies
    18
    Views
    7,078

    Re: SendMessage for a game

    Try passing your child windows to this before the click.



    ScreenToClient(handles[i], &pt);


    You can also use ShowWindow() to maximize your window and then work with screen coords(probably...
  12. Replies
    7
    Views
    476

    Re: just for info

    :lol:
  13. Replies
    18
    Views
    7,078

    Re: SendMessage for a game

    You are using WM_RBUTTONDOWN, don't you need WM_LBUTTONDOWN?

    Try looping through the child windows and storing them in HWND hWnd[10]; Then use PostMessage() to send a WM_LBUTTONDOWN to each child...
  14. Replies
    4
    Views
    607

    Re: about Ping

    Yes, there is an application level service that responds to ICMP Echo Requests. Here is another good reference that will introduce RFC 1122, which states all hosts MUST offer this service.

    But...
  15. Replies
    4
    Views
    607

    Re: about Ping

    Specifically, you send an ICMP Echo Request and wait for an ICMP Echo Response. RFC 792 outlines ICMP. You will see that there are many types of ICMP messages.




    ICMP does not use a port. ...
  16. Re: [C++] Win32 Program Wide Keyboard Shortcut

    If you can exit your application correctly from just one of the windows procedures then add the case to that and do your work there. I don't see why you wouldn't be able to exit the app from your...
  17. Replies
    18
    Views
    7,078

    Re: SendMessage for a game

    I recently created a similar tool for a friend of mine. I used PostMessage() instead of SendMessage().

    I wish I could give a good reference but I had to lose myself in google to find the...
  18. Re: Input Validation for an IP address

    This is exactly what I needed thank you!

    Interestingly enough, this thread shows up on your google search already. Last one on the first page! :p
  19. [RESOLVED] Input Validation for an IP address

    Hello all,

    I'm trying to validate the input for an IP address. I'm getting a little bit tied up on the logic of it...

    The only thing I can really come up with is this:
    -Take the IP...
  20. Re: [C++] Win32 Program Wide Keyboard Shortcut

    Is this a Win32 GUI app or Win32 Console app?

    For a Win32 GUI you will need to add a case to your message loop for the ESC key. When the ESC key is pressed, tie up your loose ends and exit the...
  21. Replies
    1
    Views
    512

    Re: Reading from ports using sockets

    You need to set your NIC in promiscuous mode to listen to the traffic that passes over it, then you can inspect the data yourself.
  22. Replies
    2
    Views
    570

    Re: tracing packet data

    I assume you are talking about a client that you did not create?

    You can do this by setting up a raw socket and putting it in promiscuous mode. Then you can listen to any data passing through...
  23. Replies
    3
    Views
    1,466

    Re: Winsock connect to IP

    Anyways, here is how I do it:



    SOCKET hSocket;
    int iResult = 0;
    char ipaddress[18] = {NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL};
    int pnum =...
  24. Replies
    3
    Views
    1,466

    Re: Winsock connect to IP

    Check out MSDN.

    There is some great information here. It is tough to get through at first because there is a lot of jargon. But once you start to learn the terms it makes sense.

    Hope this...
  25. Re: Output from a for loop is incorrect due to wrong calculations.

    Loops are tough at first. I find that commenting each step of the loop with what is happening helps me visualize better.



    for (int i = 0; i < totalDays; i++)
    {
    cout << (1 + i) << "\t"; ...
Results 1 to 25 of 72
Page 1 of 3 1 2 3


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center