General C++ Programming - June 2009 (Page 11)

To access class methods without creating its object.
 
Hi, Dear all Normally when we want to call method of any other class we need to create its object then we can access its methods. But i want to use my ...
[4 replies] Last: Here is the article on this site about namespaces. It has the examples... (by Zhuge)
by minix
how to remove Unused Varibale... :(
 
Hi, I am facing a problem in my project.In my project, i have a lot of .C,.Cpp, and .H files. the problem is that i want to know all unused data from my c...
[5 replies] Last: As I recall, it's run in the same way the compiler is. So it should b... (by kbw)
Implementing an InheritsFrom function
 
I have been looking everywhere for this. I use Borland C++ Builder, and part of the functionality of the TObject class is the InheritsFrom function. I'd like to...
[2 replies] Last: In Aspect Oriented Programming, this is called a Cross Cut. You may w... (by kbw)
what constitutes good programming practise?
 
other than meaningful variable/function/class names? I seem to lose marks on design in school even though my program provides all the required functionality Ho...
[3 replies] Last: I have some advice, at least on creating reusable code. When you de... (by jsmith)
Vista
 
Why OS Vista may close my application? On OS XP it's all fine! This is client-server application. Some querries are worked on Vista, but if U chooose a big le...
[4 replies] Last: Does a Debug built version also crash? Have you installed your dev ... (by kbw)
X button interception
 
I'm trying to intercept the signal when a user clicks the button to exit the program. I'm almost positive there's an API function that does that somewhere bu...
[5 replies] Last: you have to write this: case wm_close: //your code here break; ... (by writetonsharma)
Codebook for opencv
 
The only things i understand about codebook is that it can be used to build a more complex model of the background. Can anyone explain to me how codebook work? ...
[no replies]
cvConvertScale (opencv)
 
Can help me please?? I am confused with cvConvertScale. I understand that cvConvertScale(IplImage* src, IplImasge* dst, scale, shift), the scale value is used t...
[no replies]
Inheritance in Templates
 
Hi, I have a very basic question. Does compiler while compiling template classes (template expansion by name decoration) understands inheritance. //-----...
[1 reply] : Why don't you make an example and see? (by closed account S6k9GNh0)
assertion failure on isalpha()
 
Hey I'm attempting to debug my program in Visual Studio, but I keep getting an assertion failure when running isalpha() on the char 'I'/0xcc/-52. I've no ide...
[5 replies] Last: well according to the error the assertion comes from line 56 of istype... (by Archie243)
Serialize sdt::map without boost
 
Can I serialize STL map<string, string> at once to a binary file and read back from the same?
[6 replies] Last: To write a string object, you will need to string str; // Stri... (by jsmith)
templates compile time error
 
I am writing a generic wrapper over STL priority queue class as follows template <class TBLOCKTYPE , class TSORTING_CRITERIA> class CCL_BlockPriorityQueue...
[1 reply] : It's because all of your typedefs are making the problem harder to see... (by jsmith)
block type is valid
 
Hello everybody! Program error! Help me please. So, I have a list of files. I need to move them into another directory (call DIR). so, DIR is consist of sev...
[1 reply] : sorry, I think this code is not reference document. Question still ope... (by SpbJimbo)
Memory
 
My project use too much memory. I use _CrtMemCheckpoint( &s2 ); _CrtMemDumpStatistics( &s2 ); to see allocations. So, on the start function the progra...
[4 replies] Last: thanks. it's solved) (by SpbJimbo)
Changing from <string> to <cstring>
 
I came across a problem that I used to <string> to solve, apparantly i was jumping the gun and im supposed to use <cstring> How would i re write: void searc...
[no replies]
Recognition of filestream
 
Hey all, within a class of mine, I construct a class for reading like this WordStream::WordStream(std::ifstream& fileStream) : inFile(fileStream){ } Then...
[2 replies] Last: It sounds like you didn't declare inFile in the first place. In any c... (by helios)
Compile errors using tr1::bind
 
This code: #include <iostream> #include <algorithm> #include <tr1/functional> using std::ostream; class Value { public: Value() : m_amount(0) {...
[2 replies] Last: also, why aren't you just using std::accumulate? std::cout << "The ... (by jsmith)
by sonix
byte order, hibyte, hiword, ...
 
Hi programmers, I would want teach about byte order, etc., but I don´t found nothing about it... Now I learning about sockets, and  byte order, lobyte, hibyte...
[4 replies] Last: It helps. Thanks for exhaustive post. :) (by sonix)
Generic IO class, socket or file
 
Hi, I am looking for a generic IO class. It shall be able to handle sources and sinks from a socket or a file. I have been looking at boost iostream and asio...
[1 reply] : There are several socket libraries that extend iostreams to provide an... (by bnolsen)
want to initialize pointer dynamically using map
 
this is my header file ITECH7603Class.h... #ifndef ITECH7603CLASS_H #define ITECH7603CLASS_H #include "Student.h" #include <set> #include <map> #include...
[9 replies] Last: Thank u mate...!!!! It is really helpfulll....!!! Thanx for all ... (by whatsup)
June 2009 Pages: 1... 910111213
  Archived months: [may2009] [jul2009]

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