Skip to content

C / C++ / MFC

C, Visual C++ and MFC discussions

This category can be followed from the open social web via the handle c-c-mfc@forum.codeproject.com

111.5k Topics 465.7k Posts
  • Native VS Debugger Question - SOLVED

    debugging visual-studio question csharp c++
    4
    0 Votes
    4 Posts
    1 Views
    L
    Without the source you will not be able to see very much. The debugger only works with the debug information created by the compiler and linker, and built into the PDB file. Without that and the source files you will most likely not be able to find anything.
  • 0 Votes
    5 Posts
    1 Views
    O
    Hi Aghast Thanks for your time. I have red your answer at least about 10 times, and I feel that I am close to understand the logic of the determined range in this do while expression. I really appreciate all your pacient in this excellent explanation. Otto
  • 0 Votes
    3 Posts
    1 Views
    K
    Further to what Richard has said, you can check which files were installed with dpgk -L <package> Unless you've installed a doc or lib package, you've almost certainly got an executable somewhere. Keep Calm and Carry On
  • Pass a function with parameter

    help c++
    6
    0 Votes
    6 Posts
    1 Views
    Greg UtasG
    I haven't used Qt, so I don't know if I can help. It sounds like a widget is an object, but you're only passing functions and parameters. Would passing an object help? It's even possible to pass a class's member function[^] as a parameter. I've not used this capability, so you'd have to read up on it if that's what you want. The problem with passing a function and its parameters is that different functions take different parameters. To deal with that, I think you'd need std::function[^]. Again, that's not something I've used, but now you can look for more details. My go-to site for C++ is here[^]. It's a bit formal, so sometimes you need to look elsewhere for explanations and examples that are easier to understand. But it will provide you with the right terminology to use when investigating something. Robust Services Core | Software Techniques for Lemmings | Articles The fox knows many things, but the hedgehog knows one big thing.
  • Regarding Constructor Calling in C++

    c++ question
    6
    0 Votes
    6 Posts
    1 Views
    CPalliniC
    Actually class C constructor should have had four (Yes, 4, since it contains four variables) parameters. Anyway... Try #include using namespace std; class A { public: int a; A(int a):a(a){} }; class B: public A { public: int b; B(int a, int b): A(a), b(b){} }; class C: public B { public: B obj; C(int a, int b): B(a, b), obj(b, a){} // swapped the arguments of 'obj' just to make it a little different friend ostream & operator << (ostream & os, const C & c); // overload the insertion operator just to show this object content }; ostream & operator << (ostream & os, const C & c) { os << "a = " << c.a << ", b = " << c.b << ", obj.a = " << c.obj.a << ", obj.b = " << c.obj.b; return os; } int main() { C obj1(10,20); cout << obj1 << endl; } "In testa che avete, Signor di Ceprano?" -- Rigoletto
  • 0 Votes
    6 Posts
    2 Views
    M
    arnold_w wrote: 5. Anything else I need to be aware of? poor you. your only choice is win32. I suggest setting up a virtual machine with the target OS (if it's possible) on which you can do your work (install VS2005... ) CI/CD = Continuous Impediment/Continuous Despair
  • urgent question

    data-structures question
    9
    0 Votes
    9 Posts
    0 Views
    S
    Your question was so urgent you forgot to even ask it. :laugh:
  • 0 Votes
    11 Posts
    16 Views
    B
    Well, the Packing pragma is very old. A Pragma is an adidional instruction to the compiler,stated in te file to be compiled. In the Packing case, it is about how to align data on Preferred Data Boundaries. A 64 bit CPU is most efficient if all items are stored at addresses, a multiple of 64. Failing to do so, the code will not break down. it will just take (very minutely) longer to execute, but will never break your code. Now, you can Easily enter "Packing Hell"! That occurs when different packing pragma's are used in different components. Unless if something is critical, the best idea is to leave all packing pragments out, unless you have reasons to use them, e.g. Interfacing a new 64 structure with say old 16 or 32 bit data. Bram van Kampen
  • Cloud Storage

    c++ hosting cloud tutorial
    7
    0 Votes
    7 Posts
    1 Views
    B
    Well, is there a list of smaller providers? or Intermediaries? Bram. Bram van Kampen
  • Windows 10 - find last logon time in C++ ??

    c++ visual-studio tutorial question
    13
    0 Votes
    13 Posts
    18 Views
    M
    thanks for sharing that. CI/CD = Continuous Impediment/Continuous Despair
  • 0 Votes
    3 Posts
    0 Views
    D
    So you kept both your code and the problem description a secret. How do you expect anyone to help you? Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles. Dave Kreskowiak
  • terminology refresher class ??

    c++ question
    9
    0 Votes
    9 Posts
    0 Views
    L
    It is still not clear what you mean by "the process". There is no process as such, you just need to ensure that the compiler can find all declarations and/or definitions of any functions that you are trying to use. Either within your source file or in an associated header.
  • How to find include directive path?

    question tutorial
    11
    0 Votes
    11 Posts
    0 Views
    L
    I did explain earlier that I have never used QTCreator. I was trying what I know to be the normal rules in all the systems I have ever worked with. Both of my suggestions are the natural ones to try in such a situation. The fact that QTCreator uses some special system of its own is something I was totally unaware of, but assumed that you were.
  • Optimizing this code ?

    performance help csharp c++ com
    10
    0 Votes
    10 Posts
    0 Views
    D
    lol , i didn't know it, it's cool to learn something new. I took this username on google with reference to The big Lebowski's movie, i'm pretty sure it's a wrong translation. Perhaps it's dude in english but in french he wants to be called The Duc, what is a total paradox with all of he is. It's true that it could interpreted as something pretentious, i'm happy you understood it was not at all for this reason. It's interesting to discover a particularity of another language. Thanks for all, sinceraly. - Alexandre CODOUL.
  • c+ + coding

    c++ tutorial
    2
    0 Votes
    2 Posts
    2 Views
    CPalliniC
    I strongly doubt Google would be of any help on those: scientific calculator in C++ - Google Search - 721,00 results[^] C++ file handling - Google Search- 74,700,000 results[^] "In testa che avete, Signor di Ceprano?" -- Rigoletto
  • 0 Votes
    8 Posts
    1 Views
    M
    you can check out here [Test} [^] https://www.google.com/
  • cross platform dynamic dll

    csharp c++ visual-studio linux hardware
    3
    0 Votes
    3 Posts
    0 Views
    Richard DeemingR
    Judging by the link at the end of the message, he's a spammer. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • C++ programming

    c++
    3
    0 Votes
    3 Posts
    0 Views
    L
    Look at the line that gives the error message, or the one before it: void input (int p, int q); // what is this semi-colon doing here? {
  • 0 Votes
    4 Posts
    1 Views
    M
    The make/cmake is probably full of qt references. CI/CD = Continuous Impediment/Continuous Despair
  • 0 Votes
    3 Posts
    0 Views
    L
    Lots of useful Arduino information and samples at Tinkercad | From mind to design in minutes[^].