General C++ Programming - January 2011 (Page 20)

Container for abstract class objects
 
Hello, I would appreciate some tips regarding a design of class hierarchies and abstract classes. I want to manage a set of functions. Therefore I have an a...
[2 replies] Last: Take a look at the Boost Function library. http://www.boost.org/doc/l... (by PanGalactic)
by okaitt
Closed Dll usage to control a module
 
Hi there, I'm having trouble using a dll that was made to control a module. The producer just sent me some dll's (that I'm not able to know their implementatio...
[6 replies] Last: Just found it; Project>"Project Name" Properties In the lateral tab:... (by okaitt)
restricting overriding of methods
 
is c++ has something like final keyword so to stop a method or class to be overriden in derived classes?
[1 reply] : http://www2.research.att.com/~bs/bs_faq2.html#final (by ne555)
by saicam
File name extracting
 
How can I extract a file name and save it on a string?.
[5 replies] Last: A better way is to use stat() as that accesses the file's metadata and... (by kbw)
by kuroro
Application Path That Works on Both Windows/Unix
 
Hi Guys! I just want to ask a simple question about getting the application path in C++ but will work in Unix environment. I am just a beginner so please he...
[4 replies] Last: No, it works elsewhere too and probably correctly. I was pointing out... (by kbw)
Leaving the implementation in the header file
 
I know this is a bad thing to do but for years, this was my practice. I always created a class and coded the implementation for it inside its header and left it...
[2 replies] Last: 1. using global variables. You could have make it worse by nami... (by rapidcoder)
Why am I getting error C2106: '=' : left operand must be l-value
 
Guys, I know this would indicate that I am too silly.. because I think I am missing some basic knowledge related to pointers. Please tell me, in the followi...
[2 replies] Last: o Ok.. thanks for the reply.. I Understood. (by manintiet)
by rwan
Inline member functions
 
Hi all, I'm having a strange problem with inline which I hope someone can explain to me. I have a class defined: class foo { public: foo (); ...
[3 replies] Last: Hi sohguanh and jimc, Thank you for your replies and the explanat... (by rwan)
Guarantees about the encoding of 'A'
 
EDIT: Please see rephrased question in next post! Am I right that the C++ standard (C++03) does not guarantee any of the following: 1) The multi-byte char...
[5 replies] Last: The answer to all your questions in posts 2 and the last is, "yes." ... (by Duthomhas)
Displaying console output on button_click
 
Hi, I've been looking everywhere, and can't find the answer to this one. I'm making a program and was stuck here. I'm making a windows form in Visual C++ 201...
[1 reply] : find how to catch a button hit event. find how to get an integer from... (by hamsterman)
PLZZZ hlep C++ problem
 
hi everyone in C++ i have 2 question i didnt know how to solve it so plzzz help:? the first one i have answer it but i think it is wrong the second o...
[3 replies] Last: http://www.cplusplus.com/forum/general/33128/ (by ne555)
graphics in turbo c++
 
i wanna to make a graphics program in turbo c++...i have included all header files ....but still it is not working....i tried it on some pc in my univ...it was ...
[4 replies] Last: Excuse me... Pakistani University. (by Return 0)
How to use widen()
 
I have a hard time figuring out the idea behind the narrow() and widen() functions. In particular, which encoding is assumed for the argument to widen() . ...
[3 replies] Last: Still, I'd really like to know what is the intention behind widen(). I... (by kspangsege)
memory leak detection
 
I want to detect memory leaks and print them to the output pane in visual studio 2010, I was trying to use _CrtDumpMemoryLeaks() but have since found out that t...
[2 replies] Last: yeah we can, that's not really what I was looking for though I just wa... (by quirkyusername)
get size of any type array
 
Does anyone know how to find the length of an arbitrary type of array? All I have found online were how to find the length of an int array. In my case I am try...
[9 replies] Last: It means that v is a reference . (by Duthomhas)
Iterator and STL question
 
I have something like the following code: std::advance(this->mSprites.begin(), std::distance(other.mSprites.begin(), other.mCurrentDisplay)); Where thi...
[6 replies] Last: Ok, there were 4 of these errors total, and I fixed the top two (other... (by firedraco)
Programming Conventions
 
I recently took a C class, and one of my TAs mentioned that in creating list structures in C, the items should be stored as pointers in one another. For example...
[1 reply] : It sounds like he is talking about making a linked list, not structure... (by firedraco)
by akramm
what is probelem in this source ?
 
hello what is probelem in this source #include <iostream> #include <string> int main() { std::string str; // declare a string variable std::c...
[1 reply] : Change endl to std::endl or add using namespace std; on line 3. ... (by Null)
Plug Ins and such
 
I'm trying to set up a type of plug-in system for a program I'm writing. My idea is to have the plug-ins be an class of a certain type, and have an XML file tha...
[2 replies] Last: Sorry I'm late in responding, but thank you very much for your help. T... (by shadowayex)
c++ assignment part 2
 
im not too good wiv c++ but i need help wiv an asssignment due in very soon...but i need help with an area in particular The idea is that the clerk should be a...
[1 reply] : What is your question ? (by lloydchristmas759)
January 2011 Pages: 1... 1819202122... 24
  Archived months: [dec2010] [feb2011]

This is an archived page. To post a new message, go to the current page.