Type: Posts; User: zerocool2k
Search took 0.02 seconds.
December 20th, 2011, 03:40 PM
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...
December 20th, 2011, 11:40 AM
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...
December 19th, 2011, 06:26 PM
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...
November 18th, 2009, 04:12 PM
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.
November 18th, 2009, 02:03 PM
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...
October 8th, 2009, 12:35 PM
I have not decided yet. I am still looking for a good one. Do you have any suggestion?
October 5th, 2009, 05:33 PM
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.
October 5th, 2009, 05:22 PM
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...
You can view an example of function pointer from my post here:
June 29th, 2009, 06:36 AM
Did you see my new file?
No more memory leak issue.
June 28th, 2009, 08:13 PM
Here's a cleaner version from my Example above. Add more user types or Singleton if you want.
June 28th, 2009, 01:24 PM
Nevermind. I was confused multithread with something else.
June 28th, 2009, 01:23 PM
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...
June 28th, 2009, 03:27 AM
Thanks. I guess I need to separate the base class and factory so that I can create object and utilize the RAII idiom.
June 27th, 2009, 10:06 PM
I wrote that because you wrote the above :).
Anyway, you can convert both vectors. Eventually, we don't care about letter case right?
June 27th, 2009, 08:53 PM
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...
June 27th, 2009, 03:47 PM
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...
June 27th, 2009, 03:26 AM
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...
June 26th, 2009, 05:43 PM
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...
June 26th, 2009, 03:22 PM
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...
June 26th, 2009, 12:09 PM
I started a new thread on the non-visual forum (more appropriate for this problem). Any help will be appreciated. TIA
June 26th, 2009, 11:29 AM
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...
June 25th, 2009, 09:17 PM
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...
June 24th, 2009, 01:12 PM
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...
June 24th, 2009, 05:19 AM
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...
Click Here to Expand Forum to Full Width