General C++ Programming - August 2010

CreateThread problem
 
Below's the code that creates win threads and calls function "processStressThreads" BOOL createStressThreads() { BOOL bReturn = FALSE; DWORD dw...
[7 replies] Last: Ok, Thanks kbw and m4ster r0shi, that helps a lot! (by n4nature)
by koopa
trouble using watcom compiler
 
Hi folks, Bit of a novice really, I wrote some code under MS VS2008 IDE, it compiles fine but when I go to compile under Watcom (I want to make the code good...
[3 replies] Last: Nothing is wrong with that code. The problem is probably just because... (by Disch)
C++ Library Training Needed
 
I need to take a class on using C++ Libraries. Something that's about 3 months in duration, with some sort of a test at the end. I could easily just go to goo...
[2 replies] Last: Thank you for the reply. I've done both. This site is a really hel... (by MichaelGrumbach)
DDEML Client side - DDERequest
 
Hi All, I have buit a very small DDEML client software that connects to a trading platform and retrieve foreign exchange prices. I had to select between t...
[no replies]
by booraz
Thread and stop button
 
Hello all, I have wrote a program with serial communication. I have a thread class which reads from com port. There is a StopButton, which I can click if the...
[1 reply] : if (!ReadFile(hCom, &C, 1, &dwRead, &ReadOverlapInformation1)) ... (by kbw)
Explicit Template Instantiation
 
Please refer the article: http://www.cplusplus.com/forum/articles/14272/ I am using the method described in the article for explicit template instantiation i...
[3 replies] Last: Ok I got it. Sorry. Here is what I had to finally do: template <... (by balajiram)
What does this "new" mean?
 
The code like this: class FunClass { public: Print() {cout << "whatever"<< endl;}; }; int main(int arg, char *args ) { int size = 10; ...
[6 replies] Last: Yes, player6, thanks for catching that. That's what you get for writi... (by closed account 1yR4jE8b)
Password problem in my c++ program
 
hello any one please help me quickly. Because i never forget ur timely help. Iam having a c++ program with password function. The password function is working ...
[2 replies] Last: I think you require this much only . cout << "\t\tEnter Usernam... (by bluecoder)
pointer problem with multiple thread
 
Hi, I have a problem with a pointer, but as i'm not a native english speaker, here is my problem (this not my code, it is just to explain) : class Main...
[no replies]
Stack Problem
 
I am having a problem using stacks for my C++ program. Here is what I have so far: Stack.cpp #include "stack.h" namespace Stack { const int m...
[2 replies] Last: yes i agree with kbw .. and you cannot use array of v the way you have... (by bluecoder)
plugin and application have diffrent instance of a singleton class
 
hello, I am writing a plugin and plugin calls a singleton of the application in order to register itself, however, in the plugin, applications signleton class c...
[no replies]
Swap function??
 
Can some1 also help with a swap function: here is my code it doesn't work :( #include <stdio.h> #include <stdlib.h> void swap (int & a, int & b) {...
[7 replies] Last: Yes but if it was using a C compiler, there's no chance that reference... (by Bazzy)
by zytrex
File formatting: chars as numbers
 
I'm serializing a suffix tree. Some of the data is stored as chars to reduce memory requirements. As a result, when I go to write chars to files and read number...
[19 replies] Last: This isn't the beginners section. I don't have to assume you don't kn... (by zytrex)
function definition inside a class
 
Hello.I saw this wierd definition for a class and it works.how is it? class gps_position { friend std::ostream & operator<<(std::ostream &os, const gp...
[4 replies] Last: Parameters don't have to have a name if they are not used. In the exam... (by Galik)
How to copy Bitset to char array in C++
 
Hi, I am new to C++ and STL, especially Bitset. I need o solve the following: char * MyBuffer; MyBuffer = (char *) malloc( sizeof(char) * (64 * 256)); ...
[4 replies] Last: Well, you would take 16 bits at a time and put them in a temporary bit... (by LB)
File transfer via socket
 
If the file is smaller than 1500 bytes, there's no problem. But if it's larger than 1500, I have to split the file in chunks of 1500 bytes (default packet size)...
[19 replies] Last: Kay. :3 (by Wazakindjes)
search hex values in a file
 
I'm trying to look for a method or function code to look/search for a specific hex value in a file I'm want to look for this value in a file 0x67452301 ...
[11 replies] Last: It could well be. There is no reason that my method should work the sa... (by Galik)
Printing a pattern.
 
Can any1 help me print this pettern ******* ***** *** * I have to use loops i have the following code but the loop doesn't end for some reason. #in...
[7 replies] Last: The compiler will take the largest token, as determined during lexical... (by moorecm)
How do i store info from 2 files.
 
I want to read info from 2 seperate files but i have to store them in an array of structures. How do i read and store the info from the second file without over...
[2 replies] Last: Yeah i got it to work thanks a lot. (by caffrea4)
storing objects
 
Hello.I'm writing a program who uses objects and inheritance.I know that soring them in and retriving from files is going to be very hard.(serialize, digitize ...
[6 replies] Last: and read the documentation on the boost.serialization library ...... (by jsmith)
August 2010 Pages: 123... 20
  Archived months: [jul2010] [sep2010]

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