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

Search:

Type: Posts; User: jeron

Page 1 of 13 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    13
    Views
    7,653

    Re: No Error in The Program

    Haven't looked at the link but, could it be that the console is opening, the program is running, and the coonsole is closing faster than you can see? Perhaps, open the command prompt and then run the...
  2. Thread: PCap Library

    by jeron
    Replies
    3
    Views
    2,421

    Re: PCap Library

    After reading this, the operation you stated seems about right as you have specified 10 as the packet count to collect prior to returning.


    pcap_loop(handle, 10, got_packet, NULL)
  3. Thread: C++ Loop problem

    by jeron
    Replies
    2
    Views
    968

    Re: C++ Loop problem

    Try making a second for loop for the output, something similar to the following...


    #include <iostream>
    #include <iomanip>
    using namespace std;

    int main()
    {
    const int NUM_EMPLOYEES = 7;
  4. Replies
    1
    Views
    4,675

    Re: Drawing a line with an arrowhead

    Maybe this link can help.
  5. Thread: GetKeyState C++

    by jeron
    Replies
    22
    Views
    22,592

    Re: GetKeyState C++

    Excellent points!:thumb:
  6. Thread: GetKeyState C++

    by jeron
    Replies
    22
    Views
    22,592

    Re: GetKeyState C++

    Something along the lines of this, note that I have not compiled or run it though.

    #include <iostream>
    #include <windows.h>

    using namespace std;

    int main()
    {
    SHORT last = 0;
  7. Thread: GetKeyState C++

    by jeron
    Replies
    22
    Views
    22,592

    Re: GetKeyState C++

    Could you put the returned by GetKeyState() into a variable, then compare the next GetKeyState() with that variable and do something only when they are different?
  8. Thread: GetKeyState C++

    by jeron
    Replies
    22
    Views
    22,592

    Re: GetKeyState C++

    Try 'A' ....'Z' in place of VK_KEY_A....VK_KEY_A.
  9. Replies
    6
    Views
    1,030

    Re: Compiling Programs from Dos Window

    Yeah, it looks like it is.
    A nice little feature that I'll using a lot.:)
  10. Replies
    6
    Views
    1,030

    Re: Compiling Programs from Dos Window

    Cool, I didn't know that.:thumb:
  11. Replies
    6
    Views
    1,030

    Re: Compiling Programs from Dos Window

    Looks like you're simply doing a Change Directory command. You don't have to type the c:\> as it should already be there, you just type the CD ProgramFiles\.... part. And this is all based on the...
  12. Replies
    3
    Views
    2,660

    Re: Roll a dice program.

    if(randomnumber == '1')
    This is comparing randomnumber (which is HEX 0x01.....0x06) to ASCII '1' which is HEX 0x31.
    Try removing the apostrophies in the other if statements as well.
    ...
  13. Replies
    24
    Views
    7,796

    Re: ASyncSocket Receive Problem

    Have you verified server operation by using a protocol analyser like WireShark?
  14. Replies
    6
    Views
    998

    Re: Errors in Serial Communication Programming

    should really be int main() for c++ programs.
  15. Replies
    6
    Views
    998

    Re: Errors in Serial Communication Programming

    #include <iostream>
    using namespace std;
    #include "serial.h"

    CSerial serial;

    if (serial.Open(2, 9600))
    {
    char* lpBuffer = new char[500];
    float NumberRead = serial.ReadData(lpBuffer, 500);
  16. Replies
    17
    Views
    2,738

    Re: [MFC] Required reading list

    You can't go wrong with Prosise.
  17. Thread: Array elements

    by jeron
    Replies
    9
    Views
    1,125

    Re: Array elements

    What is it that you expect versus what you are getting?
  18. Replies
    3
    Views
    3,508

    Re: Get text from textbox

    int GetWindowText(
    __in HWND hWnd,
    __out LPTSTR lpString,
    __in int nMaxCount
    );

    I guess I'm not understanding what you wrote as I don't see where the GetWindowText() function needs...
  19. Thread: C++ Develop

    by jeron
    Replies
    3
    Views
    618

    Re: C++ Develop

    I would go back and start at the beginning, or maybe as you say you don't have the inspiration and maybe writing code is not where your interests lie.
  20. Thread: Timer in C++

    by jeron
    Replies
    4
    Views
    1,013

    Re: Timer in C++

    maybe this link may help.
  21. Replies
    1
    Views
    814

    Re: Read/write EOF data

    Something like fseek()?
  22. Thread: quick question

    by jeron
    Replies
    9
    Views
    1,173

    Re: quick question

    if (Num1 < Num2); // If statment processes which number is greater
    Try getting rid of the semi colon in this line.
  23. Replies
    8
    Views
    1,228

    Re: Help understanding

    :confused:
  24. Replies
    6
    Views
    915

    Re: Please chk this ther is some error?

    Does this mean that the do..while loop never exits?

    Using the debugger and stepping through the code (in the do..while loop) should point you to the problem fairly quickly.
  25. Thread: Plot in C++

    by jeron
    Replies
    2
    Views
    483

    Re: Plot in C++

    Maybe this article will help.
Results 1 to 25 of 322
Page 1 of 13 1 2 3 4





Click Here to Expand Forum to Full Width

Featured