Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
T

trinh nguyen

@trinh nguyen
About
Posts
11
Topics
8
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Reference variable assignment and copy constructor call
    T trinh nguyen

    Thanks Randor for your prompt reply. As your answer, I can conclude that the copy constructor will be call for initialization only, not for "=" (assignment operator). Since long time ago, I have believed that the copy constructor will be call for "=" operator if there is no "=" operator defined for that class. But I still wonder this: If there is no "=" operator defined for that class, what will be implemented for "=" operator? Binary copy? Thanks.

    C / C++ / MFC testing beta-testing question

  • Reference variable assignment and copy constructor call
    T trinh nguyen

    I am testing the constructor call with the code below:

    #include class A
    {
    public:
    A(int n = 0)
    : m_n(n)
    {

    }
    
    A(const A& a)
        : m\_n(a.m\_n)
    {
    
    }
    

    private:
    int m_n;
    };

    int main()
    {
    A a(2), b(1);

    const A c(a);
    
    const A &d = c;
    
    const A e = b; //Note 1
    
    b = d; //Note 2: I am confused here
    
    return 0;
    

    }

    Everything is OK with me. But there is one point that I cannot understand is that: At the line "b = d" (Note 2), why the copy constructor is not called while at the line "const A e = b" (Note 2) the constructor is called? I expect that at line Note 2, the copy constructor will be called to copy the value of "c" (referenced by "d") to "b", but it doesn't happen. Please explain it, thank you in advance!

    C / C++ / MFC testing beta-testing question

  • How API call Windows Deriver/The mapping API to Driver function
    T trinh nguyen

    Hi all, I am newbie to Window Driver programming. So, my question that I concern is how the API call exactly Driver functions. E.g.: User application call an API function, then API function call Windows Driver. The question is how the API function maps to Driver function or call the driver correctly, especially there are many drivers for one device. As of my thinking, the driver must conform to the rule that Microsoft define? Pls answer me in the soonest time and Thank you very much.

    System Admin question json

  • Windows Driver - Mapping Windows API functions to Device Driver function.
    T trinh nguyen

    Hi all, First all, I am a newbie for Windows Driver programming using C/C++. Now what I need to step by step to learn and understanding it clearly. I have try to read so much, big question is: what I am not clear are as belows: - The driver must provide the standard names of function that can make Windows can map system API to this function. - So it contact the hardware provider and Microsoft to create the final device? (Because Microsoft have to map their API function to Driver function that is provided by em. Thank you in advanced and so much and please answer me ASAP. TPN C/C++ Developer

    C / C++ / MFC question c++ hardware json tutorial

  • => operator in C#
    T trinh nguyen

    Thanks Abhinav S so much!

    C# csharp help learning

  • => operator in C#
    T trinh nguyen

    I am new to C#, so any one can help me to understand the => operator in C# or give me some resource on this. Thanks in advanced.

    C# csharp help learning

  • MS Visual Studio Express 2010, Cygwin, Eclipse together
    T trinh nguyen

    My current task is to develop C/C++ project for running on Linux (Ubuntu). My Windows PC has Visual Studio Express, Eclipse and Cygwin installed. I have worked with C/C++ on MS Windows years but I am new to the situation above. Could anyone help me to configure and show me step by step how to create and build a project (I need to work all on MS Windows 7)? I mean how to develop C/C++ project on Windows environment described as above and the built file can run on Linux. Thanks in advance.

    C / C++ / MFC linux tutorial csharp c++ visual-studio

  • Declare variable as Interface vs. Class
    T trinh nguyen

    Hi, Could anyone explain me the difference between interface and class variable. E.g.: ISomething ivar; //interface variable CSomething cvar; //class variable or IList<MyClass> var1; List<MyClass> var2; I am so confused the difference among them. Thanks in advance!

    C# visual-studio

  • DataGrid always capture the arrow keys of it child controls (VB.NET, VS2008)
    T trinh nguyen

    Hi, After tested with ComboBox, TextBox, Button as DataGrid child controls (Using DataGrid1.Controls.Add), I found that when all arrow keys pressed were capture by the DataGrid. I.e.: - When I click on the ComboBox and then use the arrow (Up or Down) keys to move through the ComboBox items, the DataGrid1 handles it and I cannot move in the ComboBox, the ComboBox close its drop-down list, lost focus. Additionally, the DataGrid move to another item of its - When set focus on the button or text box and then use the arrow keys, the same as above happened I don't know why. I just want to know why, the root cause. Are there any formal documents said that, please show me. Thanks in advance!

    Visual Basic csharp

  • Calling an application using VC
    T trinh nguyen

    Thank you for your replies. Very useful, I forgot how to call an application using VC and now I get it. Thank you. TRINH.NGUYEN

    C / C++ / MFC question tutorial

  • Calling an application using VC
    T trinh nguyen

    Hi everyone, I have a simple question: How to call an application using VC? Thank you in advance.

    C / C++ / MFC question tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups