Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: mce

Page 1 of 32 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    3
    Views
    215

    Re: where is my library specified

    Hi AlexF,

    But i have tried to use the search tool Edit/Find in my Files... in visual studio in my solutions for the library name and i can't find any. how come?
  2. Replies
    3
    Views
    215

    where is my library specified

    Hi

    I am using visual studio 2012. When i compiled a third party solutions, i am facing a linkage error saying "cannot open file libxxx-0.2.4.lib" ......

    Now i checked the settings, project...
  3. Replies
    1
    Views
    244

    template with inheritable typename

    Hi

    I want to be able to define a templatised member variable with inheritable typename such as following..
    what i want is to be able to do something as the highlighted in bold.



    ...
  4. Replies
    5
    Views
    435

    Re: Error : more than one operator matches

    yeah, it doesn't compile as well, it gives error "more than one conversion function from std::atomic<Foo*> to bool applies ...."

    I think the goal here is how to check for null ptr?
  5. Replies
    5
    Views
    435

    Error : more than one operator matches

    While trying to compile some codes from
    http://ideone.com/olvK13
    i encounter some compiler error mentioned which i am not able to solve.




    class Foo
    {
    public:
  6. Replies
    1
    Views
    880

    QtSerialPort in Windows

    Has anyone use QtSerialPort on Windows 7 before successfully?
    I can read my serial com data with serial port diagnostic tools; but i can't get it through my codes.
    my code snippets below:
    The data...
  7. Replies
    5
    Views
    808

    Re: Constructor with lots of parameters

    sorry, i don know why.........
    I was stuck

    How do i create the Device Object with QScopedPointer as parameter, i mean it can't be like this: The scoped pointer is not copyable.

    Device...
  8. Replies
    1
    Views
    471

    Do i need to deep copy container object?

    If i have the following




    class Test
    {
    ..

    Test(const Test&)
  9. Replies
    5
    Views
    808

    Re: Constructor with lots of parameters

    What smart pointer to pass in the ctor so that the member QScopedPointer<Data> can take over ownership? I mean do you mind to show me how to correctly release the ownership to member class _data in...
  10. Replies
    5
    Views
    808

    Constructor with lots of parameters

    Hi

    I have class that have member variables which is also a class object that contains member variables which is also a class... so on and so on... like this



    class Device
    {

    public:
  11. Replies
    27
    Views
    2,848

    passing smart pointer

    I just want to confirm if this is a good way;

    In the below example, there is no need to pass smart pointer to Test class, as there is no need for Test object to manage any record. There can be...
  12. Replies
    1
    Views
    385

    Help in operator > overloading in Library

    class VAR_EXPORT VAR
    {
    public:



    };
    VAR_EXPORT QDataStream &operator>>(QDataStream &p_stream, QSharedPointer<Data>& p_data)
    {
  13. Replies
    6
    Views
    1,025

    Re: pass by Reference to smart pointer?

    I have found a situation where i have to use QSharedPointer<Test>& without the "const" in its parameter., where in this particular case, the function pass a null parameter in... letting the callee...
  14. Re: operator > overloading for derived classes

    What do you think of the following implementation?




    class Data
    {

    // ...
  15. Replies
    6
    Views
    1,025

    pass by Reference to smart pointer?

    hi

    I just want to know if there is any real difference between the two below, if yes, when would i use one over the other? I would thought the "&" is pointless in below function, as far as the...
  16. Re: operator > overloading for derived classes

    I am also stuck in deserialization now... how does the functions like like??
    i guess need to check the type now??




    class Data
    {

    // ...
  17. Re: operator > overloading for derived classes

    i guess you mean



    QDataStream& operator<<(QDataStream& stream, QSharedPointer<Data> p_data)
    {
    // ...

    return stream << *p_data;
  18. Re: operator > overloading for derived classes

    i see, so it is something like below?




    class Data
    {

    ....
  19. operator > overloading for derived classes

    class Var
    {
    public:
    Var();
    ~Var();


    private:
    QMap<QString, QSharedPointer<Data>> _mapVars;
  20. Re: A meaningful way of accessing a table by container

    Thanks VictorN, i haven't thought of that.
    But the number of defined Err and Rate magnitude could be from 0 to N, where N is determined in run time... is there an expandable enum or something...
  21. A meaningful way of accessing a table by container

    Hi

    I need a "meaningful" way of accessing a table, the column is representing Err magnitude, and the row is representing Rate magnitude. For each error magnitude and rate magnitude, i define an...
  22. Replies
    4
    Views
    780

    how to export class with template

    I have the following class header in library, but when i initialize in main the class, i have an error unresolved external symbols. So the class is not exported as it should.




    template...
  23. Replies
    2
    Views
    1,261

    Re: How to initialize QMap

    I am using Qt 5.2.1 with visual studio 2012

    I can't seem to be able to do that
    The compiler error :

    1 IntelliSense: initialization with '{...}' is not allowed for object of type...
  24. Replies
    2
    Views
    1,261

    How to initialize QMap

    how to initialize a QMap<QString,int> like following?




    map<string, int> m = {{"aa", 1}, {"bb",2}};
  25. Replies
    3
    Views
    882

    Re: About returning QSharedPointer or raw pointer

    I believe nothing to worry too if i were to use QSharedPointer<Data> as it is also a copy of the pointer being returned from function GetData() after i do

    _data.data();

    what the user deleted...
Results 1 to 25 of 779
Page 1 of 32 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




HTML5 Development Center