General C++ Programming - January 2012 (Page 17)

read from registry, and write to registry
 
hi can anyone help me to translate this code to vb6? #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <wincrypt.h> #define SEED_...
[7 replies] Last: I am not sure how much more help an example of mine. It wouldn't be t... (by webJose)
Exception and stdxception headers?
 
When I inlude <stdexception> header, does that header include <exception> header as well? I know all standard exceptions inherit from Exception class but why...
[3 replies] Last: Ok guys, I don't know why I didn't do that before but I've just opened... (by codekiddy)
PLEASE HELP
 
I've been programming in C++ for a few months now but I still don't quite understand the difference between the following C++ statement. n++; ++n; n--; ...
[3 replies] Last: I always use the pre-increment and decrement. (++n, --n) because no t... (by mik2718)
asm in C question
 
I have this example code I am using eclipse Indigo with mingw GCC and AMDx64 processor In my console "0x0" is always shown. I think this is an old example....
[5 replies] Last: MSVC inline assembler does not support 64bit platform. (by codekiddy)
Getting a map from a file
 
Hello, i would like to know whats wrong with the code i wrote about getting a map, for a pacman-like game i am trying to make using ncurses in which the map w...
[3 replies] Last: Thanks a lot guys for replying to my post! @Stewbond i used the For l... (by jimas13)
recognizing removable media
 
So I have a section of code that goes like this: ofstream myfile; myfile.open ("E:/info.txt"); myfile << usrName << endl << logOn << endl << birthDate...
[3 replies] Last: You would have to have a top-level window, at least invisible. This m... (by webJose)
The destructor isn't called in unexpected program termination?
 
Hi guys. I have a doubt... The destructor is called when for example I click in the (X) button to close? Is called when I do a taskkill? See that code...
[4 replies] Last: Thanks for the answers! I get it. (by Link2012)
Chinese unicode characters to hex output
 
Hi, Is it possible to take the input from a textbox that's in chinese (unicode) and convert it into hex to output to a text file? Any insight would be gre...
[3 replies] Last: You just force the conversion. char* ptr = (char*)my_wchar_t_pointer;... (by hamsterman)
Calling Java webservices in C/C++ code
 
Hello, Could someone please help me with calling a java webservice in C or C++ code. I want to know whether this is possible and if yes, what are the prel...
[no replies]
how to optimise a very simple function
 
Profiling revealed that 25% of my entire program is spent calling the following function: // cycle-step function void horizon_value::step(double output) { ...
[9 replies] Last: LTO = Link Time Optimization (by Peter87)
HELP ME PLEASE :(
 
please help me.. #include<iostream.h> main() { double n; cout<<"ENTER TEMPERATURE:"; cin>>n; if (WHAT SHOULD I PUT HERE?) //WHEN I INPUT 50 TO 100 ...
[9 replies] Last: You can restructure the set of if statements such that you don't miss ... (by kbw)
SDL key event issue;
 
Hi, I just finished writing my game (messy code i know, but i do OOP now) in c++, SDL and Opengl; It is two player and shares the same keyboard for controls:...
[2 replies] Last: hmm, thanks man. but its wierd it only occurs on one specific key pres... (by BenShen)
Which would be faster?
 
I want to execute either of the following statements hundreds of millions of times. //Would this be faster... vector< vector< vector<char> > > aa; ch...
[3 replies] Last: Hey! That's a really neat trick, Cubbi! I understood why it's better t... (by Deviouscola)
by soranz
Sorting zeros in an array
 
Hi ! I'm having trouble getting good results here. I'm trying to write a function that sorts arrays in the following way: 1 - The first element has to be '0'...
[6 replies] Last: I like Cubbi's answer, though if you use all-in-one solutions like thi... (by rollie)
C++ ques:
 
i want a program dat displays d following pattern: 15,14,13,12,11 10,9,8,7 6,5,4 3,2 1
[5 replies] Last: > i want a program dat displays d following pattern: Here's one more.... (by JLBorges)
code problem: error
 
im having problem with my code i need my character to move down the stairs , however i get an error message saying char movement is being used without being in...
[6 replies] Last: my program already creates a type of stair like this : * ... (by erhuu a)
Passing a row/column of a 2D vector to a function
 
Hi, I have define a class which has complex vector members: class Node { public: Node(void); GVector r; vector <complex<double> > Uhat; vector <c...
[4 replies] Last: I think I will go with the first method. Thank you so much xerzi! (by oneeyedshervin)
calculator problem........
 
Ok I will mention as much as faster I can my problem since I don't have enough length character as my program is to big.. So I will post one part of the program...
[1 reply] : *SOLVED* (by poolet21)
i need help with cmake, BISON and FLEX, i am willing to pay
 
i need someone that will know how to compile the following project on windows 7 64 bit: https://sites.google.com/site/dxcompetition2011/file-cabinet DXC10v2.1-...
[1 reply] : compiling with visual studio 2010 is also good for me, i need to be ab... (by Yakir Manor)
animated characters
 
hello ive created stairs and im braindead now because i need a character to move up the stairs on its own using stopwatch and im clueless how can this be ach...
[no replies]
January 2012 Pages: 1... 1516171819... 36
  Archived months: [dec2011] [feb2012]

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