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
    10
    Views
    463

    casting smart pointer

    Hi i have a void smart pointer as private member in my header file and inside my cpp i want to cast the smart pointer to another object,




    //in test.h

    private:
    shared_ptr<void> _data;
  2. Replies
    3
    Views
    361

    Re: Inherit a class through smart pointer

    Hi i got an error while i am building a dll library regarding the above:




    class DLL_EXPORT MyTest: public boost::shared_ptr<SomeTest>
    {
    };
  3. Replies
    3
    Views
    361

    Inherit a class through smart pointer

    hi,

    I am seeing a declaration something like this,


    class MyTest: public boost::shared_ptr<SomeTest>
    {


    };
  4. Replies
    3
    Views
    236

    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?
  5. Replies
    3
    Views
    236

    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...
  6. Replies
    1
    Views
    291

    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.



    ...
  7. Replies
    5
    Views
    511

    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?
  8. Replies
    5
    Views
    511

    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:
  9. Replies
    1
    Views
    964

    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...
  10. Replies
    5
    Views
    889

    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...
  11. Replies
    1
    Views
    512

    Do i need to deep copy container object?

    If i have the following




    class Test
    {
    ..

    Test(const Test&)
  12. Replies
    5
    Views
    889

    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...
  13. Replies
    5
    Views
    889

    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:
  14. Replies
    27
    Views
    3,103

    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...
  15. Replies
    1
    Views
    404

    Help in operator > overloading in Library

    class VAR_EXPORT VAR
    {
    public:



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

    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...
  17. Re: operator > overloading for derived classes

    What do you think of the following implementation?




    class Data
    {

    // ...
  18. Replies
    6
    Views
    1,132

    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...
  19. 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
    {

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

    i guess you mean



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

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

    i see, so it is something like below?




    class Data
    {

    ....
  22. operator > overloading for derived classes

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


    private:
    QMap<QString, QSharedPointer<Data>> _mapVars;
  23. 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...
  24. 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...
  25. Replies
    4
    Views
    806

    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...
Results 1 to 25 of 782
Page 1 of 32 1 2 3 4


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a Codeguru.com survey!


HTML5 Development Center