Search:
Type: Posts; User: jeron
Search:
Search took 0.04 seconds.
-
January 3rd, 2012, 10:07 AM
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...
-
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)
-
November 15th, 2010, 02:29 PM
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;
-
November 15th, 2010, 11:39 AM
Maybe this link can help.
-
-
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;
-
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?
-
Try 'A' ....'Z' in place of VK_KEY_A....VK_KEY_A.
-
Yeah, it looks like it is.
A nice little feature that I'll using a lot.:)
-
Cool, I didn't know that.:thumb:
-
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...
-
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.
...
-
April 29th, 2010, 12:27 PM
Have you verified server operation by using a protocol analyser like WireShark?
-
April 23rd, 2010, 04:33 PM
should really be int main() for c++ programs.
-
April 23rd, 2010, 03:47 PM
#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);
-
April 21st, 2010, 09:28 AM
You can't go wrong with Prosise.
-
April 20th, 2010, 09:43 AM
What is it that you expect versus what you are getting?
-
April 16th, 2010, 11:47 AM
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...
-
April 7th, 2010, 02:36 PM
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.
-
April 5th, 2010, 05:12 PM
maybe this link may help.
-
April 5th, 2010, 04:02 PM
-
March 31st, 2010, 12:25 PM
if (Num1 < Num2); // If statment processes which number is greater
Try getting rid of the semi colon in this line.
-
March 31st, 2010, 11:21 AM
-
March 15th, 2010, 12:00 PM
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.
-
March 1st, 2010, 12:13 PM
Maybe this article will help.
|
Click Here to Expand Forum to Full Width
|