Search:
Type: Posts; User: salem_c
Search:
Search took 0.07 seconds.
-
April 14th, 2024, 01:13 AM
Did you create a separate thread to handle pcap_loop?
> When I click the Start button, packets are displayed in the Listbox OK,
Generally, accessing the UI from a non-UI thread is a bad idea....
-
April 13th, 2024, 02:15 PM
Yes, please use
tags when posting code.
-
March 19th, 2024, 12:13 AM
Yeah, you're not calculating PI at all.
You need to flag your result as being shared between multiple threads, otherwise you're losing updates to it.
#include <iostream>
#include <omp.h>...
-
March 18th, 2024, 10:32 PM
> I haven't touched C++ (especially templates) for some time and feel rusty.
And yet you continue to ignore what people are telling you.
Let's make it easy for you.
Go back to your original...
-
March 17th, 2024, 11:56 PM
> But they are... aren't they?
No, they're all in your queueType.cpp file.
Copy the contents of your queueType.cpp into your queueType.h file.
> Also, why is this issue a problem when linking...
-
March 16th, 2024, 01:44 AM
All your templates need to be in the .h file.
-
March 3rd, 2024, 12:19 AM
Various Microsoft debuggers (WinDbg, CDB) are available to install separately, without dragging in the whole of visual studio.
...
-
February 25th, 2024, 04:47 AM
The first question is, can you do it before the image has scrolled?
-
February 16th, 2024, 01:17 AM
int menuSel; //menu selection input
char menuSel2; //alternative menu selection for characters
..
cin >> menuSel;
..
if (menuSel == 2) {
cin >>...
-
February 7th, 2024, 12:12 AM
> ShellExecute( NULL, NULL, "DCPProbe.exe", parameters, progDir, SW_SHOWNORMAL );
DCPProbe.exe is getting it's parameters via main(argc,argv)
You have no choice but to start another process given...
-
February 4th, 2024, 09:30 AM
So can you paste your console output of a build attempt?
-
February 4th, 2024, 07:49 AM
Perhaps get rid of the spaces, dots and forward slashes.
"-I ${fileDirname}\\include",
Although since you're using gcc, it probably also understands forward slashes, even though it's...
-
January 29th, 2024, 03:31 PM
>if(!::CryptDecrypt(m_hKey, NULL, TRUE, 0, pData, &dwDataLength))
If you run it in the debugger, put a breakpoint here, what is the value of dwDataLength?
-
January 29th, 2024, 12:54 AM
https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptdecrypt
Not that it shouldn't work, but if you're planning to use this for production s/w, you might need to consider...
-
January 26th, 2024, 01:27 AM
db_conn = mysql_real_connect(db_conn, HOST.c_str(), USER.c_str(),
PASSWORD.c_str(), DATABASE.c_str(), 0, NULL, 0);
The problem here is you trash your db_conn if...
-
January 4th, 2024, 07:55 AM
> Watch endiness!
That's what the ntoh function deals with.
Assuming the documentation for that field says "this ushort is in network byte order", then ntohs is just going to do it's thing and...
-
January 3rd, 2024, 01:02 PM
Assuming you don't come unstuck with a bus error due to bad pointer alignment (not an issue on x86), you want something like
shortTTL = ntohs(*((u_short*)ptrCurrent_Field));
The red part casts...
-
January 1st, 2024, 01:50 PM
> The sample Npcap code didn't do that and that's how I started off.
Some URLs to say the library you're using and it's documentation and examples would be really useful about now.
-
December 30th, 2023, 03:04 AM
You can make a start by running valgrind, and fixing any memory errors (buffer overruns, use after free).
An example.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char...
-
December 27th, 2023, 07:55 AM
> so even just opening a .pcap file causes the problem.
No, opening the file exposes the problem.
The problem already existed, it's just that you managed to avoid it killing your program up until...
-
December 27th, 2023, 07:53 AM
Use the forum search.
36095
-
December 11th, 2023, 07:40 AM
I thought it looked familiar!
This just became 90% a repost bot where this is just bait for some spammy links.
-
December 11th, 2023, 02:39 AM
> MyNPT.cpp
The function isn't a member of the class.
void MyNTP::MyNPT(UDP& udp)
: NTPClient(udp)
{
}
-
December 11th, 2023, 02:34 AM
That's a good start.
Perhaps these will help you.
https://stackoverflow.com/questions/1451606/programably-make-and-play-a-sound-through-speakers-c...
-
December 10th, 2023, 12:31 PM
> a c++ download to generate a sine wave and play through my PC sound card
So how much do you want to skip the actual learning?
Just downloading an answer, even if you study the source code in...
|
Click Here to Expand Forum to Full Width
|