Code to capture and send ip packets
Hello I am looking for c++ code to capture all the ip packets. I want to capture the original packet not taking a copy from this packet. In other words I don’t want windows to capture this packet. My...
View ArticleHow to get the title of CPropertyPage ?
How to get the title of CPropertyPage before create CPropertySheet: CPropertyPage somePage; CPropertySheet m_sheet; TRACE(_T("Adding page '%'\n"), somePage.GetTitle()); m_sheet.AddPage(&somePage);...
View Articlebuild4ARM
Hi, How can i build my x86 project in my x86 PC with VS2022 installed for ARM?.
View ArticleReading HID Bluetooth devices' buffer on Win32
I'm exploring Win32's HID API to read/write from/to various devices. So far, I've been able to read responsive input for two wired devices -- an XBOX 360 Compliant controller and a steering wheel. This...
View ArticleGUI Freezes randomly /MFC /C++
I am facing this odd issue in which GUI freezes randomly on button clicked So basically This is the sample code: void dialog::OnButton1Clicked() { m_threadCmd = Button1; //Button1 is an enum from...
View ArticleCharacter set
Unicode is 1byte per character, that’s the Latin characters and the other symbols found on a standard keyboard Multibyte is Latin, Greek, Russian and everything else that exceeds the initial 256...
View ArticleAddendum how to build real time events in Qt?
addendum Found the attached. Will it fly ? Please somebody , with Qt experience, make some comments .... #include <QDebug> #include <QCoreApplication> #include <QObject> #include...
View ArticleLooking for opinions on currency handling....
As I'm sure we all know, there are basically three ways to handle currency values in code. 1) Can store the value as cents in an integer. So, $100.00 would be 10,000. Pro: You don't have to worry about...
View ArticleSOLVED How to display full 4 binary bits - after QString "number" option...
Solution : pFT857_library->CAT_Data_String[CAT_Data_Index].mid(0,1).number(n,2).rightJustified(4,'0'); Output : " convert LSB to binary with leading zeroes " "0001"C++ I have Qt style string QString...
View Articlewrapping enum in namespace ?
I'm maintaining old code. I can't use enum class. Do you wrap your enums in namespace to kinda simulate enum class ? or is there a pattern Ì don't know about to make regular enum safer ? Thanks.CI/CD =...
View ArticleThis should be an easy question... 128-bit blues.
Last time I did hardcore C was a while back. Before the 128-bit days. Ok, cool. But, I got a silly question when it comes to printing a 128-bit integer. You see online examples saying just do a long...
View ArticleOwn border in client area
Hi, I want to create my own border in the client area of a dialog and could freely move it on the parent. Can you plz suggest any refence?
View ArticleData file
A binary file is a file that contains bits. Every 32 bits make a number (several digits/symbols with no space between them) or a word. A number can then be transformed and become an integer (several...
View ArticleInheritance and arrays thread follow up
I`m trying to place a derived class object into an c++ array containing base class objects. You suggested I should use the following unit* LUnits = new unit[2]; soldier * S = new soldier(); LUnits[0] =...
View ArticleAdding object to class - which option makes more sense ?
I am adding a new object to an existing object. In QtCreator, I have an option to add it /pass it as a class new parameter. The other option is to add new object as a .so library. I am asking for...
View ArticleSystem.* not defined or imported
Good afternoon, a bit stumped with this one - any help would be greatly appreciated: System.Void, System.Object, System.Inptr not defined or imported... a little bit stumped with this one... any help...
View ArticleIs it possible to find a shortlist of Bios registers and methods to use them?...
I have been searching for hours and i am having a really hard time finding any reference lists of theese legacy methods. Basically what i am looking for is initializing graphics in DOS aka Dosbox or...
View ArticleInheritance and STL containers
Let’s say I’m adding a derived class object to a vector that holds objects of base class type. STL vector allows me to do that without any explicit conversion. How do I revert the object inside a...
View ArticleSOLVED EDIT / BUMP Qt QtCreator "connect" - need help with lambda C++ syntax
The intelisense was bogus - I missed including "ui" header. Thanks for all the help, it is much appreciated.
View ArticlePlease help me (with) improving my coding skill(s) - how to access iterated...
The attached, under construction,code basically works. The task is to build TWO objects and pass data between them. At present I monitor ANY changes in the object and perform simple verification. Each...
View Article