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

Search:

Type: Posts; User: dus

Search: Search took 0.04 seconds.

  1. Exporting Classes in a DLL to be used from Visual Basic

    I read the following FAQ:

    Visual C++ DLL: How to build a DLL to be used from another programming language

    This works perfectly fine for functions to export.

    When I try to export a class I...
  2. Replies
    3
    Views
    1,709

    Nested Classes and inline functions

    Hello,

    I have the following weird problem:

    outside.h



    #ifndef OUTSIDE_H
    #define OUTSIDE_H
  3. Replies
    39
    Views
    4,767

    Re: Help with while loops.

    I guess the problem here is that the OP hasn't reached the level of arrays yet. His problem is very basic and probably one of the first problems in a course. Even before hitting the concept of...
  4. Thread: Design Questions

    by dus
    Replies
    3
    Views
    646

    Re: Design Questions

    Exterminator:

    No it's to assure the objects are created in a feasible way. For example the object_holder can only "objects" for which object_type is in the map<string, object_type> in the logic...
  5. Thread: Design Questions

    by dus
    Replies
    3
    Views
    646

    Design Questions

    I have a ``business logic'' class which provides the outside world (user interface) the data and modify them in a consistent way (by some methods).

    This class contains a number of containers...
  6. Replies
    0
    Views
    519

    Windows32 PLatform SDK vs. .Net Framework

    Hello,

    I just downloaded Visual C++ express edition. On the download page it is recommended to download the win32 platform SDK.

    I usually write console applications. But now and then I would...
  7. Replies
    12
    Views
    1,377

    Re: Why use Smart Pointers?

    But the most easy thing to do is, not using any (smart) pointers at all:



    void f(
    std::string const & s.
    std::ostream & output)
    {
    a the_a;
  8. Replies
    12
    Views
    1,377

    Re: Why use Smart Pointers?

    Thanks guys, for showing me some good examples! Ik would like to see more, anyway!

    Maybe I'll use smart pointers in the future. However my programming style seems different from the examples. I...
  9. Replies
    12
    Views
    1,377

    Re: Why use Smart Pointers?

    Thanks, ahoodin,



    You might be right! However may someone can give me a good code example of when they're useful. The examples I came across were usually too short and simple to be convincing....
  10. Replies
    12
    Views
    1,377

    Re: Why use Smart Pointers?

    Thomas,

    I understand what they are trying to do! My point is that I'm not convinced that this is accomplished, mainly because you need a lot of extra knowledge, you still have to be very careful...
  11. Replies
    12
    Views
    1,377

    Why use Smart Pointers?

    I recently got interested in smart pointers. I read some articles about different types of them (auto_ptr, shared pointers, reference counters). After doing this I hardly can see any reason to use...
  12. Replies
    3
    Views
    837

    Re: 2 dimensional vector reserve

    No, I don't want to fill the vector with elements. I only want to reserve enough memory for the vector, so it doesn't have to be copied many times at the time the elements are inserted.
  13. Replies
    3
    Views
    837

    2 dimensional vector reserve

    Hey!

    I have this two dimensional vector and I want to reserve memory for it. Will this method work or is there a better way?



    vector<vector<double>> data;

    vector<double> init_vector;...
  14. Replies
    3
    Views
    690

    Re: member functions as type (parameter)

    Thanks! It compiles now anyway!

    The interfaqce is quite big. Because something basically is a data manager. So it stores a lot of data (in memory) and provides methods to add and view this data.
    ...
  15. Replies
    3
    Views
    690

    member functions as type (parameter)

    Hello,

    I have three different methods to do something involving some private/protected class members. I want to test all the three methods (and apply another algorithm) and seet the difference...
  16. Replies
    4
    Views
    5,630

    Re: Forward Declaration compilation warning (g++)

    Thanks all!

    Treuss solution removed the warning!
  17. Replies
    4
    Views
    5,630

    Forward Declaration compilation warning (g++)

    I have the following class structure for a (discrete event) simulation program:



    class simulation;

    class event
    {
    public
    event(simulation* sim_pointer) {p_sim = sim_pointer;};
  18. Replies
    10
    Views
    1,087

    Re: Clone function (pure virtual base class)

    Thanks Cilu and Wildfrog,

    However the problem is not solved:



    class base
    {
    public:
  19. Replies
    10
    Views
    1,087

    Re: Clone function (pure virtual base class)

    Why not?
  20. Replies
    10
    Views
    1,087

    Clone function (pure virtual base class)

    Hello,

    I'm trying to do the following:



    class base
    {
    public:
  21. Replies
    3
    Views
    998

    Re: Error while loading shared libraries (Linux)

    Thanks,

    Adding the directory to LD_LIBRARY_PATH solved the problem!
  22. Replies
    3
    Views
    998

    Error while loading shared libraries (Linux)

    Hello,

    I am using some libraries of the COIN-OR project (http://www.coin-or.org) in my c++ program. I want to use shared libraries, so i don't have to recompile my program, if I install an update...
Results 1 to 22 of 23





Click Here to Expand Forum to Full Width

Featured