General C++ Programming - January 2011 (Page 22)

popen func
 
hi. when i using _popen func in Form Application (Program) it always returns NULL. but when i use it itn console application (program) it works. why my Form App...
[3 replies] Last: form application it synonym to gui or window application: it has forms... (by altapocalypse)
I require assistance with some easy grahpics! IT"S urgent
 
I have homework for school regarding some graphics in C++. First of all, we're not allowed do use Borland, but MINGW as a compiler. The differences aren't bi...
[2 replies] Last: graphics.h i have succeeded in creating the background. thing is th... (by vladcristian)
Opening Unicode files
 
Hi. I created a .txt file and wrote in it "Hello World" (without double quotation) and saved it with Unicode Encoding.(Little Endian) When I open it in C++, t...
[2 replies] Last: Thank you very much :-) (by majidkamali1370)
what can you do with this function?
 
void ConstructApplicationWindowAndDefineSystemCoordinatesStr(MSG,INT,UTIN,WPARAM,LPARAM,INT,INT,INT,UINT,STRING,LPCSTR,CHAR*,HWND); I can tell you one thin...
[3 replies] Last: Man, it has been a while, but whether this function is from the window... (by simeonz)
by fafner
Expected class-name before { token
 
I've encountered another problem whilst trying to compile a fairly large codebase(about 20 classes). I'm getting the following compiler-error: /path/to/Sp...
[7 replies] Last: Actually, I made a mistake :) I wrote that you should optionally remov... (by simeonz)
signed and unsigned usage
 
What is the exact usage of signed and unsigned identifier usage before a data type. Can someone explain char and int data types (signed and unsinged ones) with ...
[2 replies] Last: Hi Seraphimsan, Thanks for your time and explanation (by najanaja)
programming GUI scroll bars with SFML problem
 
I am writing a GUI and I need help with scroll bars. I have this it works but sometimes if the member contentSize is a certain value it fails. I have tried to f...
[2 replies] Last: Well I don't know which values; although one always fails and zero nev... (by Dark Byte)
Program ideas
 
hello everyone, i have been programming for about a year and i have run out of ideas. i have googled "programming ideas" and have done most of the programs ther...
[3 replies] Last: So you want programming challenges? http://www.programming-challenge... (by ne555)
gotoxy
 
is their any function gotxy??????is their any difference between gotoxy ang gotxy function also provide header fil plzzzzzzzzzzzzz
[10 replies] Last: You may want to use the function SetConsolCursorPosition() , which be... (by Celtc)
virtual inheritance
 
i have this code class A{ public: int a; A() {a=34;}; A(int i){a=i;}; virtual void print(){cout<<a;} }; class B:virtual public A { public: in...
[8 replies] Last: ok thanks a lot.. (by vagelis)
by kpeleo
webcam streaming, c++ application (serverside)
 
I need to record a webcam from a house desktop pc (a simple usb webcam) and streaming it in a website, allowing people visiting the website to interact with a c...
[4 replies] Last: Thank you, I'll take a closer look and I'll try to better figure out w... (by kpeleo)
Stressed
 
OIUHJK
[6 replies] Last: Deleted on request! But next time, don't post something unless you wan... (by kspangsege)
initialize members of a class
 
i have a class class A{ int a=0;} and i get an error 'A::a' : only static const integral data members can be initialized within a class i get erro...
[3 replies] Last: ok got it.. thank you!! (by vagelis)
location of library function code
 
Hello I'm programing in ANSI C and i'd like to know if there is a way to view the code of the library funtions (like strlen, malloc, strcmpr etc.) Is there a ...
[3 replies] Last: It would help knowing which OS you are running on, and whether you are... (by kspangsege)
by fukki
Mathematical function represented at xy axis
 
Hello! I trying to do a small program to display a fucntion graphically. for example: y=x^2 to: a xy axis represented by dots(.) and the function line...
[3 replies] Last: Line 10 is not needed. Line 15 would do that. It would be easier to... (by hamsterman)
class operations test
 
in the above code it prints 12 from a.displaya(); and then it doesnt print c.displaya() is there an explanation about that?? class A{ int a; public: ...
[6 replies] Last: sory you are correct i am a little confused from too much studying i... (by vagelis)
try catch debug erro
 
i have this code class A { private: int a; public: A(int i) {a=i;}; ~A() {if (a<0) throw a;} int geta(void) {if (a<0) throw a;return a;}; }; ...
[11 replies] Last: ok thanks..!! (by vagelis)
template <class X> void destroy(X *tp) { tp->X::~X(); }
 
template <class X> void destroy(X *tp) { tp->X::~X(); } void main( void ) { int x=34; destroy(&x); cout<<"endaxei"; int k; cin>>k; } i...
[7 replies] Last: ok thank you very much..!! (by vagelis)
by Celtc
Binary file output
 
Hi everyone, I'm having a problem. I'm trying to save a string into a binary file using c++ library (iostream) and string type. But I keep saving a normal text ...
[4 replies] Last: Yes I've finally understood, I was confuse thinking that the strings w... (by Celtc)
by LB
Character 255 added to end?
 
I'm loading files with ifstream object but they always end in 'ΓΏ' (character 255 or -1). Here is my code for loading a file and printing it in a test project: ...
[3 replies] Last: Looking at the documentation of peek , I see no reason not to. You co... (by simeonz)
January 2011 Pages: 1... 2021222324
  Archived months: [dec2010] [feb2011]

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