Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
~10.4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for fire_

Hello everyone. Is there any MFC function to get my own window handle? I'm creating window with Dialog box without title, so i can't use FindWindow(); Maybe there is something like AfxGetInstanceHandle() but i could get window handle? Thank you

Member Avatar for Rajesh R Subram
0
93
Member Avatar for fire_

Hello guys. How can i make my program start minimized to system tray? I'm using MFC. I managed to make it start hidden, but i can add sys tray icon... Any ideas? Thank you

Member Avatar for Ancient Dragon
0
80
Member Avatar for fire_

Hi. How can i make Dialog box visible only in one application window for examlpe only on firefox? I'm using MFC. Thank you

Member Avatar for fire_
0
92
Member Avatar for fire_
Member Avatar for fire_

I need your help... Again... How can i combine reading from file with [iCODE]std::getline(file, std::string);[/iCODE] and [iCODE]UpdateData(FALSE);[/iCODE] ? UpdateData() accepts only CString and getline only std::string, and then i try to use it like that: [CODE]std::string readbuff; int length; std::ifstream file("file.txt"); while(getline(file, str)) { length = str.length(); for(int i=0; i<length; …

Member Avatar for fire_
0
599
Member Avatar for fire_

Hello. Can someone tell me how can i add string to combo box? i tried [CODE]GetDlgItem(IDC_COMBO1)->Items->Add("Text"); [/CODE] but it didn't worked. and everything that i could find on google didn't helped :( so i'm asking you pros ;)

Member Avatar for Ancient Dragon
0
112
Member Avatar for fire_

Hello. I'm creating a program with dialog editor. How can i set bitmap on button? I set bitmap at properties to True. I tried to search on google but i could only find how to set bitmap on button created with CButton. Thank you

Member Avatar for mitrmkar
0
573
Member Avatar for samsons17

I got an assignment to be done.. Given a sequence of positive integers. You need to find the number of triples in that sequence. For this problem, (x, y, z) constructs a triple if and only if x + y = z. So, (1, 2, 3) is a triple, where …

Member Avatar for samsons17
0
216
Member Avatar for fire_

Hello. I know this is lame questinon but what is multi-if syntax? Like this: [CODE]if (a == 0) doSometihng(); if (a == 1) doSomething(); else doElse();[/CODE] Or like this: [CODE]if (a == 0) doSometihng(); else if (a == 1) doSomething(); else if (a == 2) doSomething(); else doElse();[/CODE] I'm useing …

Member Avatar for Fbody
0
86
Member Avatar for fire_

Hello. I need your help. I need to write program wich will take numbers from other program's edit. I'm pretty sure that other program is writen with C++. Can you help me to write reading from edit part?

Member Avatar for fire_
0
160
Member Avatar for Syrne

So for my first assignment of the semester I need to write a program that: 1.) Asks the user to input a string 2.) Asks them to replace part of the string 3.) Have the program prompt "Yes" or "No" on whether the user wants the program to restart, if …

Member Avatar for Syrne
0
92
Member Avatar for malvi

Hello everyone, I have a problem, I have to get value from edit box, store it in variable and based on that value need to update another edit box. Please tell me how can i get inter value, which is entered by user in visual c++.

Member Avatar for Ancient Dragon
0
223
Member Avatar for fire_

Hello. I'm writing codeing progam. It reads from file using fstream and then converts simbols to ascii, changes ascii, converts ascii to symbols and writes them to file. I tried to code .txt file with it. It worked perfect. But then i tried to convert .bmp file and then i …

Member Avatar for fire_
0
140
Member Avatar for fire_

Hello. I'm writing program wich reads from file line by line and then rewrites everything to other file. This is simplifyied part of code: [CODE]for (int i=0; i<=5;) { getline (file1, str1); /* file1 is file from wich i read and str1 is string*/ file << str1; }[/CODE] No i'm …

Member Avatar for Ancient Dragon
0
270
Member Avatar for jeevsmyd

I have been advised by many people that it is better to use integer return type for main function instead of void ! I actually dont understand what return 0 means .. main returns 0 value to program ! What does that mean ?! Could you please help me understand …

Member Avatar for Ancient Dragon
0
156
Member Avatar for ^Y^ nobody ^Y^

Hi, I search everywhere and i didn't found anything good. Do you know how to search a string inside a .txt file ?? Like, this is a text file: -------------------------- i love mc donalds food i hate my brother i want a answer a good answer -------------------------- How can i …

Member Avatar for fire_
0
333
Member Avatar for fire_

Hi. I need program wich will start other program (for example notepad.exe) and if notepad.exe will exit my program will start it again. How can i get info about process state and put it into variable to use with if? I'm beginner at C++ so please write all headers witch …

Member Avatar for fire_
0
158
Member Avatar for darkmeyi0319

hey guys i just want to ask for your help about the source code of ROCK PAPER SCISSORS game on c++, the rules of the game is that, the user and the computer will battle, the game consist of 5 rounds ONLY,and first player who score 3 out of 5 …

Member Avatar for dflatt
-2
158
Member Avatar for fire_

Hello. I have some problems. 1.With for cycle. This is my code: [CODE]#include <iostream> #include <fstream> int main () { int i; int i2; char sentence [200]; char repeat; ofstream file ("file.txt", ios::app); for (i=0; i<1;) { cout << "Enter sentence (max. 200 symbols)\n"; cin >> sentence; if (!file) { …

Member Avatar for Kanoisa
0
150
Member Avatar for fire_

Hello. I'm trying to write a program witch asks you to write delay and then counts time left. But it's not working how it should. If i write number 9 or less it's working fine. But if i write number 10 or more it prints numbers wrong, ex. ir write …

Member Avatar for caut_baia
0
113
Member Avatar for fire_

Hello. I'm using this constuction to write to file: [CODE]#include <iostream> #include <fstream> using namespace std; int main () { char data [50]; cout << "Enter data\n"; cin >> data; ofstream file("data.txt"); if (!file) { cout << "File opening error"; cin.get(); return 1; } file << data; file.close(); cout << …

Member Avatar for abdelhakeem
0
125
Member Avatar for fire_

Hello. I'm writing DOS program with Visual C++ 6 and i want to log date and time to file. I'm new at programming so please tell me all #include <> and full syntax :) Also I tried time() but i recieved error: error C2064: term does not evaluate to a …

Member Avatar for fire_
0
6K