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

Search:

Type: Posts; User: zerocool2k

Page 1 of 3 1 2 3

Search: Search took 0.13 seconds.

  1. Re: Mixed Fortran/C++: Static Library & Multithreaded build Stack Overflow error

    OK, I finally fixed it. The second problem was due to a silly recursive mistake. I guess "Multithreaded DLL" has garbage collector from the libs, so it always runs fine.

    Setting both projects to...
  2. Re: Mixed Fortran/C++: Static Library & Multithreaded build Stack Overflow error

    Yes, those two dll's are listed in the dependencies. Don't worry I'm not distributing to anyone. I just take the program around to test on multiple computers.

    I thought by doing static library it...
  3. Mixed Fortran/C++: Static Library & Multithreaded build Stack Overflow error

    I have a solution that has a static library coded in Fortran, and a main program in C++. The Fortran compiler is Intel Visual Fortran 11 integrated in VS 2008.

    There are 2 problems that I would...
  4. Replies
    2
    Views
    926

    Re: MSI Setup Build problem

    No, I don't have any reference to other version of VS. Actually it has nothing to do with programming, but I thought someone on the forum might know about this problem, especially with Microsoft VS.
  5. Replies
    2
    Views
    926

    MSI Setup Build problem

    I have a problem when building a setup project. I use VS 2008 for the project, but every time it reaches the building of the msi file:



    Building file 'C:\....\Setup.msi'...


    A window pops...
  6. Replies
    7
    Views
    1,283

    Re: Gradient Chart

    I have not decided yet. I am still looking for a good one. Do you have any suggestion?
  7. Replies
    7
    Views
    1,283

    Re: Gradient Chart

    Thanks. I will look into those.
    Is there any special requirement for GDI+? (like .NET framework, etc.) because I try not to rely on those.
  8. Replies
    7
    Views
    1,283

    Gradient Chart

    Hi,

    I want to create a chart that has gradient color representing the actual values. For example, I have values for every point within a circle:
    r = 2, angle = 10 degrees : x = 100
    r = 2, angle...
  9. Re: How to call a class member function via function pointer in map [C++]

    You can view an example of function pointer from my post here:
    http://www.codeguru.com/forum/showthread.php?t=479143&page=3
  10. Replies
    31
    Views
    3,618

    Re: Abstract Factory Design Patterns Advice

    Did you see my new file?
    No more memory leak issue.
  11. Replies
    31
    Views
    3,618

    Re: Abstract Factory Design Patterns Advice

    Here's a cleaner version from my Example above. Add more user types or Singleton if you want.
  12. Replies
    11
    Views
    1,339

    Re: multiple main functions

    Nevermind. I was confused multithread with something else.
  13. Replies
    17
    Views
    13,694

    Re: protected member OOP question

    Because when you write


    izvedena : private osnovna

    the member test becomes private in izvedena. So, all derived classes from izvedena cannot access that member.

    You should do some more...
  14. Replies
    31
    Views
    3,618

    Re: Abstract Factory Design Patterns Advice

    Thanks. I guess I need to separate the base class and factory so that I can create object and utilize the RAII idiom.
  15. Replies
    6
    Views
    6,522

    Re: check the spelling of a text file program

    I wrote that because you wrote the above :).
    Anyway, you can convert both vectors. Eventually, we don't care about letter case right?
  16. Replies
    6
    Views
    6,522

    Re: check the spelling of a text file program

    There's a function called strtok(), that's one way to separate words.
    Use tolower() to convert all characters into lower case (your read file).
    Sort the 2 vectors (ascending or descending), then...
  17. Replies
    31
    Views
    3,618

    Re: Abstract Factory Design Patterns Advice

    I just notice the destructors in my example were never called. Anyone knows why?

    I can explicitly call "delete ob" in main() and should not have "delete pAdmin" in its destructor. But how to make...
  18. Replies
    31
    Views
    3,618

    Re: Abstract Factory Design Patterns Advice

    Here you go (see file attached).

    Objects are only created when that user type login. You can add more user types without touching the base factory class. Just copy 2 files (like Admin.h and...
  19. Replies
    6
    Views
    1,000

    Re: Memory managing with operator new

    Thanks for the very detailed answer. I will make the changes you suggested.

    I passed a copy of the pointer because I thought they had the same effect, since pointer just points to a location and...
  20. Replies
    6
    Views
    1,000

    Re: Memory managing with operator new

    The Add() method takes both Composite and Leaf (or Component - the base class), because a Composite is defined to be able to store both Composite and Leaf.
    And there's no problem there if a Leaf is...
  21. Re: EXE from Release mode and Debugging in Release mode

    I started a new thread on the non-visual forum (more appropriate for this problem). Any help will be appreciated. TIA

    http://www.codeguru.com/forum/showthread.php?t=479717
  22. Replies
    6
    Views
    1,000

    Re: Memory managing with operator new

    You have to run the compiled file (executable), then it will hang and when you jump into the debugger, go back to the stack where it loads the mainTree, you will see that some children have bad...
  23. Replies
    6
    Views
    1,000

    Memory managing with operator new

    I attached with this post my Test project. For some reason, I am experiencing memory overwriting when using operator new for the composite design pattern. In the code, the mainTree does not load...
  24. Re: EXE from Release mode and Debugging in Release mode

    It's a medium project, but I was able to pinpoint where the problem occurs. I just don't know what was wrong with my memory management. If it's the basic use of new and delete, then I don't think I...
  25. Re: EXE from Release mode and Debugging in Release mode

    I don't think I have any code to "handle" the memory. I've never handled heap memory before. What source would you suggest me to read about this? I guess I was overwriting memory, but don't know how...
Results 1 to 25 of 63
Page 1 of 3 1 2 3





Click Here to Expand Forum to Full Width

Featured