General C++ Programming - November 2011 (Page 40)

Converting a wstring to LPCTSTR
 
So apparently, when I try building my program, I get a compile error when I'm building for x64, but not for x86 (and it works flawlessly for x86). I have no ide...
[4 replies] Last: The pseudo conclusion I can come to is this then... While I was able ... (by closed account 1vRz3TCk)
Including headers
 
Well I am having problems with definition two classes in separate files but still being able to use each other for example: // a.h /////////////////////...
[1 reply] : Ironicaly, this is the exact same example I used in my article on this... (by Disch)
Free Library to use the Web Cam and to do Computer Vision
 
Hi all, I am interested in writing a c++ program that will utilize my web cam. How would I do this? What library should I use to communicate to the web cam d...
[1 reply] : OpenCV (by helios)
encrypting something
 
I need help encrypting a video game. It needs to be strong encryption, and work on binary files. I also need a De-encrypt program. It needs to work upon activat...
[2 replies] Last: I'm not sure why you'd want to encrypt game files anyway. If they're ... (by Disch)
isPrime
 
I have been having trouble with prim numbers as well, but in my assignment I have to use the isPrime function to find the prime numbers from 2 to 1000000. I als...
[9 replies] Last: it says isPrime must return a value, what is that? (by Troy Wills)
Rude::Config Compile error
 
I've been messing with this for a few hours now and its driving me nuts. I'm trying to use the RudeConfig library to implement a config file parser in my projec...
[1 reply] : Finally figured it out. - I downloaded all the source files (cpp and... (by Deftwun)
Problem with reseting game
 
Line 15 of Game.cpp gives me awkward error: 1>.\src\Game.cpp(14) : error C2059: syntax error : ']' 1>.\src\Game.cpp(14) : error C2143: syntax error : missing...
[4 replies] Last: I lol'd IRL when I read that. That sure is usefull to know. Thanks aga... (by closed account 10oTURfi)
by Icenel
use %d and getch on c++
 
I made this C code then I want to make C++ version, i remember i can't use % on C++ I want to read input then convert it to ascii number #include <stdio.h> #i...
[3 replies] Last: I see, I didn't get that at first. Can you use Win32 api stuff? or is ... (by ceruleus)
no output result when searching array or displaying array
 
im creating a list that allows me to input data that search or display the inputted data. for some reason im not able to produce an output. problem may be the o...
[no replies]
Sending output of the program to serial port (rs232 - COM3)
 
I wish to send the output of my program to serial port (I am using a USB to serial converter on my laptop). Whenever the 'out' variable is '1', i wish to send s...
[1 reply] : VC++ consider port as a file , you have to open the port and then send... (by bluecoder)
NEED HELP!!!
 
Hey can't find out why this in incrementing wrong. It should increment the function check answers 128 time, however it is only incrementing it about 50-60 times...
[7 replies] Last: You have assignment operators in your ifs if(x=0) // assigns x the... (by mik2718)
Initializing 2D Static Array from Constructor
 
This may seem like an odd question, but I simply cannot get my 2D array to initialize. In fact, I can't even use it. I declare it and set its size in the class ...
[2 replies] Last: Thank you! Now my array works! I have a few other problems, though, bu... (by DethRaid)
nested template classes.
 
So I have a template class like this: template <class T> class Input { public: Input(T * input):input_(input) {}; private: T * input_; }; ...
[4 replies] Last: Thank you!! (by ischuldt)
how to disable autoinclude in visual studio
 
hi, I'm geting sick of MSVS C++ while it autoincludes headers so I basicaly have no need to include anything except <iostream> and "using namespace std" how...
[9 replies] Last: so if I include wxWidgets headers into my project using project proper... (by codekiddy)
by Vladox
Tempate conversion method
 
I'm trying to write an operator method that will convert from the class member's type (which is templated itself) to another type. I've got my simplified class ...
[3 replies] Last: Well this is the only syntax error I see: { return (*B)ptr; } // ... (by Disch)
Critical section
 
Wish to know what happens if wait and signal calls are swapped. wait(mutex); ...Critical Section signal(mutex); thanks experts!
[1 reply] : Talking from a Windows perspective, that's the normal way, kindof. In... (by webJose)
by kcbob
expected ';' before "else"
 
i cant seem to find were the ';' goes void checkT(char temp ) { if (temp != '[' && temp != '{' && temp != '('); { do { ...
[6 replies] Last: how can i have it check for and ending value of },] or ) int len = ... (by Syuf)
Please help me..
 
I have a problem with c++. pls help me. As u all know there is a method to create a text file and write text to it in c++, but every time i run the program , ...
[2 replies] Last: http://www.cplusplus.com/reference/iostream/ofstream/open/ See 'Parame... (by Syuf)
by mar11
C++0X
 
Hi allo, I am stuck on understanding the difference between what is the std::initializer_list<std::pair<std::string,int>> and std::map<s...
[4 replies] Last: From Wikipedia: The class std::initializer_list<> is a first-class C... (by kev82)
by ivansl
file operation problem
 
pages.txt contains : One Two Three I wanna change "One" with scanf "Four" (for example) so the pages.txt will be like this : Four Two Three Is it...
[no replies]
November 2011 Pages: 1... 3839404142... 47
  Archived months: [oct2011] [dec2011]

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