HOW TO ASK A QUESTION
For those new to message boards please try to follow a few simple rules when posting your question.Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in...
View ArticleHOW TO ANSWER A QUESTION
Apologies for the shouting but this is important. When answering a question please:Read the question carefullyUnderstand that English isn't everyone's first language so be lenient of bad spelling and...
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 Articlebuild4ARM
Hi, How can i build my x86 project in my x86 PC with VS2022 installed for ARM?.
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 ArticleCode 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 Article