General C++ Programming - December 2011 (Page 4)

Import a clas into a dll
 
I have created a DLL which is a static DLL in MFC. I want to use a class which is defined in another program(not in my DLL). How can I import that class into ...
[no replies]
extracting numerical values
 
In your opinion, what is the best way to extract numerical values from the user: stringstream, or string conversion functions(atof, atoi, strtod, ect...). ...
[1 reply] : are you going to have to convert these values to a different type? lik... (by keeyon2)
by Vickii
Please help to find equation
 
I need to write a C++ function that involes 4parameters (x1,y1,x2,y2)axis. how to write such function? Thankyou!!!
[8 replies] Last: OK,i am sorry, i was confused where to post it (by Vickii)
by evb
RPC error - The protocol sequence is not valid.
 
In the following example, status = RpcStringBindingCompose( // The RpcStringBindingCompose function creates a string binding handle. NULL, (RPC_WSTR)"ncacn_...
[3 replies] Last: Problem solved in another post!!! Add 'A' to the end of the RPC funct... (by evb)
by ftg
About my conception
 
Hi everyone, I have a little question about my conception. http://lutix.org/data/Diagramme.png To sum up: I launch a command from an Input object that se...
[no replies]
by ftg
Classes interaction advice
 
Hi everyone! I have a littl conception issue. For my little chat client in C++ I'd like to clarly separate the interface part (input and output) from the ...
[6 replies] Last: thanks webJose ..for clearing the point...I got it now .. (by bluecoder)
by isnork
Generic parallel programming question.
 
Hi, While documenting myself about parallel programming, I read that when trying to write into a shared resource, i.e. a vector, a lock should be used to pre...
[8 replies] Last: Why do you need locks, I thought you were launching a separate thread... (by isnork)
C++ functions error
 
Hey guys, ive written this program for an assignment of mine, its a airline reservation system that allows a user to book seats within two classes, first and se...
[6 replies] Last: Wow, such a small and simple mistake! Thankyou kind sir! (by PhilThompson)
Project
 
Hi I am making a project in which I am using a remote control to control a desktop PC, I have alredy made a receiver and used it to basially work a PC. But what...
[no replies]
What's wrong with this!!!
 
Hello!!! Finally, after lot of work i write my program but my program crashes...Here's the code of my program: //User.h class User { protected: in...
[9 replies] Last: Dear hassaanid2011, I would like to respectfully suggest that... (by ciphermagi)
Pythagorean triplet
 
NEED C PROGRAM FOR THE FOLL QUESTION: A Pythagorean triplet is a set of three natural numbers, a < b < c, for which, a2 + b2 = c2 For example, 32 + 42 =...
[3 replies] Last: This is a problem from the Eulerproject: http://projecteuler.net/ I d... (by Mats)
How to check whether result is an integer or no?
 
Like, i wanna check whether sqrt(c) is an integer?
[5 replies] Last: sqrt() is guaranteed to yield, I think, 1ulp precision (who has LIA-2 ... (by Cubbi)
To call file
 
at first, plec correct me this one... std::string explanation; // this upper coding char explanation; //after entering void to display if(item_code=='A...
[no replies]
Insert flat binary file inside exe file
 
Hi. How can I add a flat binary file inside exe file? I mean: //Doing some work here //insert flat binary file at this point, it does some works //res...
[2 replies] Last: Flat assembler can create flat binary files and it's the fastest assem... (by majidkamali1370)
ALUT Linker Error
 
I have linked the compiler (MVC 2010 Express) to a OpenAL32.lib and an alut.lib however when I compile: #include <stdlib.h> #include <AL/alut.h> int ...
[3 replies] Last: I just had to reinstall all the .lib files. (by closed account 2NywAqkS)
Menu, how to put calculation in there
 
so, this is my coding. #include<iostream.h> #include<fstream.h> #include<stdlib.h> #include<iomanip.h> using std::cout; using std::cin; using std...
[3 replies] Last: seriously? (by khaelly)
How to calculate ping in Winsock?
 
Hello I'm building a multiplayer game in c++/sfml/Winsock using UDP socket. So far i coded the server and the client and they work perfectly. But i was just w...
[1 reply] : Isn't that normally done with tcp as udp connectionless and dosent use... (by Anddos)
by irwin
using c++ and hyperterminal
 
hi, is it possible to control hyperterminal with c++? i only needed to connect and disconnect the hyperterminal with c++.
[no replies]
by Srija
(Exception from HRESULT: 0x8007007E)
 
hi all.. I am linking the DLL created in C++/CLR application in C# in the Reference of C# application. while building it is succeeded,but when debuging i am g...
[no replies]
Help with runtime error in code.
 
Firstly the code, or the error prone parts of it. //.... std::string Moves = { {"U","U'","U2"}, {"D","D'","D2"}, {"F","F'","F2"}, {"B","B'","B2"}, ...
[2 replies] Last: Opps. Forgot to remove the random shuffle... That is the root of the p... (by Nisheeth)
December 2011 Pages: 123456... 39
  Archived months: [nov2011] [jan2012]

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