General C++ Programming - July 2010 (Page 8)

Optimizing operator[]
 
Hi, i create smart pointers class. When i start to test it, i was upset. Because when i calculate the time to execution of func1, it was 5 times slower than fun...
[11 replies] Last: [quote=Skillless]i never knew that if a function is in the body of a c... (by m4ster r0shi)
by Jack1
Shared Library Solaris
 
Hi! I tried to create a shared library which is linked to OpenMP (libgomp) on Solaris. But I always get a relocation Error: ld: fatal: relocation error: R...
[1 reply] : Aw, hell. Google gives nine results for "relocation illegal when build... (by helios)
by jhapk
Function pointers
 
Hi, this piece of code compiles fine double Multiply(void) {return 1.0;} ; double (*GetFPointer(void))(void) { return &Multiply; } int main(...
[16 replies] Last: thanks m4ster r0shi. this is exactly I wanted. (by jhapk)
opengl in stereo
 
Hi, I am using Nvidia quadro with 4gb ddr3 RAM. I amtrying to run opengl in stereo mode but I get an error with "wgl_arb_create_context not set " Actually...
[no replies]
by Ackfur
Odd Information Gathering
 
Hi, I need some key information on a few things, I'm trying to compile a program that inputs values into Access, Excel and whats called Surfer, all at the sam...
[no replies]
by Morph
Programming Individually
 
Hi, I want your opinions about one-man programming. What can be done, what can't be done, what can maybe done
[1 reply] : As long as you spend a lot of time on it, you could do virtually whate... (by Bazzy)
NFL File Generation
 
I am trying to generate a file that will output every possible outcome of an NFL game in this format: <team abbreviation> + <score> + "&" + <other team abbrevi...
[6 replies] Last: ok i see what happening...it runs through every team on ari0 then it g... (by justinformed)
References in c++
 
int& preinc(int& x) { return ++x; // "return x++;" would have been wrong } preinc(y) = 5; // same as ++y, y = 5 Why ++y=5 don't give any error and...
[1 reply] : Because the postfix increment operator results in a temporary. It ret... (by Athar)
List of arrays
 
I just want to make a list of complex elements (arrays). What is wrong in the following code? #include <iostream> #include <list> using namespace std; ...
[11 replies] Last: I also simply LIKE arrays and would like to make code as fast as poss... (by kempofighter)
Sockets Library Design (include placement, etc)
 
Hello, so I'm working on another personal project and I want to write an improved sockets library for myself. I currently have a basic Socket class written i...
[4 replies] Last: Try to avoid including winsock2.h in any header files at all and inclu... (by Athar)
by ibtkm
bignums
 
hi every body how we can store a big num(can't use long long) in the memory without using bignum class? tnx a lot bye
[4 replies] Last: for example i want to evaluate 1000 ^ 1000 how we can evaluate it? ... (by Athar)
Problem with Sockets in Boost ASIO
 
I keep on having problems with connecting to sockets. I had the same problem when I was using winsock and then decided I wanted to move to a portable networking...
[no replies]
by m4rtin
Operator Overloading Problem
 
I have inherited a project from VC++ 6.0 and am trying to bring it into .NET. I am having a problem with the compiler returning the following error in an opera...
[7 replies] Last: It worked becase C style casts do whatever it takes; that's the proble... (by kbw)
Need idea with templates
 
Hi, i created smart pointers class, which can be used as simple pointer or like pointer to pointer. Everything is works(i think) but there some confusion when t...
[7 replies] Last: It appears from the usage above that OP is creating a smart pointer to... (by jsmith)
by Tim
C++ Consuming Web Services
 
Hi, I've not got any experience in developing C++ but I'm trying to help a developer call a web service I've written in VB.NET. One of the methods is named ...
[7 replies] Last: Thanks for your feedback guys, I've fed this back to the C++ developer... (by Tim)
Error on runtime
 
I get runtime error when I run the application Thread ^readThread = gcnew Thread(gcnew System::Threading::ThreadStart(this, &PipeServer::Read)); readThrea...
[no replies]
inlude files and linking
 
If foo.dll contains fooFn() and fooFn() is defined in fooHeader.h, do I need to link against the library as well as defined the header file? I had a function...
[1 reply] : It depends. If the function is not a virtual member of a class or a t... (by kbw)
irc bot
 
i must have looked at 50 different websites but i can't find any decent help when it comes to making an irc bot. can someone please for the love of all that is ...
[8 replies] Last: I agree with Athar. If you have some particular question, we'll answer... (by helios)
STRING & WSTRING, char and wchar_t
 
I am new to c++, and I am trying to convert a std::string to a std::wstring I am using this function: wstring widen( const string& str ) { wostringstr...
[2 replies] Last: The problem is that there's no overload of operator<<() that takes a w... (by helios)
Assignment operator overloading trouble
 
Alright so I just need someone to tell me if I'm coding this assignment operator correctly (=). It's been giving me trouble all night... ec::Sprite & ec:...
[9 replies] Last: Oooooooh alright. So ec::Sprite NewNewSprite; NewNewSprite = New... (by closed account Sy0XoG1T)
July 2010 Pages: 1... 678910... 20
  Archived months: [jun2010] [aug2010]

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