Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
~9K People Reached
Favorite Forums
Favorite Tags
Member Avatar for lexusdominus

I am a beginner with win32 programs, and am trying to integrate my console into a window. My console program starts a new thread which creates a window. [CODE]DWORD dwThreadID = 0; HANDLE hThread = CreateThread(NULL,0,ThreadProc,argv[0],0,&dwThreadID);[/CODE] i want to create a miniature output textbox within my window, which reads the …

Member Avatar for Ancient Dragon
0
208
Member Avatar for lexusdominus

Hey, so im making this game, and at the moment im using PlaySound() which is a function of windows.h to play my sound files. Ive got a problem though, i now want to be able to play more than one sound at the same time, and only now do i …

Member Avatar for predator78
0
165
Member Avatar for ravenous

There are occasionally posts asking how to remove white space from string of characters (either a C-style `char` array, or a C++ `std::string`). Using functions in standard C++ libraries, this is quite an easy thing to do: #include <string> #include <algorithm> #include <iostream> #include <cctype> int main() { /* Make …

Member Avatar for Narue
1
2K
Member Avatar for lexusdominus

Hey, does anyone know which function/s i need to use to copy a file from one subdirectory to another, without changing the name? im on windows if that helps.

Member Avatar for WaltP
0
138
Member Avatar for lexusdominus

Id like to have my console program stopped and code executed if a timer runs out. does this mean i need another thread? can anyone point me to some functions i may need to use as ive never forked a program before. im using visual c++ on windows.

Member Avatar for Tellalca
0
514
Member Avatar for lexusdominus

Hey, ive got a problem. i cant seem to get Playsound() to work. Ive searched google, and alot of people say to go to properties - all configurations - linker - and add winmm.lib to the additional dependencies to link it. ok, so i did that, have included mmsystem.h, but …

Member Avatar for lexusdominus
0
95
Member Avatar for lexusdominus

[CODE]if ( initialize == "off" && Iminor > 20 || Imedium > 10 || Isevere > 5 || Ifatal > 0 )[/CODE] the string type 'initialize' is cout'ing "on" and all of the values right of the AND operator are TRUE. Why is the subsequent code block for the if …

Member Avatar for lexusdominus
0
127
Member Avatar for lexusdominus

[CODE]int thetime = time(NULL); string in; stringstream out; out << thetime; in = out.str();[/CODE] that's my code for casting an integer into a string, but im having a little trouble reversing it to change a string into an int. :/ can anybody help me out? you have to include the …

Member Avatar for lexusdominus
0
67
Member Avatar for lexusdominus

Hey, ive got two string types [CODE] string string1 = '1'; string string2 = '2'; string string3 = string1 + string2; [/CODE] Ok, ive simplified my code. I would like string3 to equal '3', and not '12'. I dont know anything about casting. Please dont tell me to use an …

Member Avatar for lexusdominus
0
111
Member Avatar for lexusdominus

Ok so ive written a console program which is great, and now i want to create a thread that makes a window (winAPI) and can commuunicate with the console window. Well to describe it properly, i would like the window thread to send predetermined text (by clicking buttons) to the …

Member Avatar for octopusgrabbus
0
90
Member Avatar for lexusdominus

Ok, so ive had this really annoying problem with Visual C++. It bugs me because it doesnt make any logical sense. something i guess we need to program. Anyway, Visual C++ reckons that the datatype "string" isnt defined, even though it is in the included library string. If i right …

Member Avatar for lexusdominus
0
124
Member Avatar for UltimateKnight

Hi to all. I am a beginner at C++ programming. I wanted to ask for some tutorials or videos from which I can learn.. I have done some small steps in programming before and I really love it. I am very interested in this area and I would be thankful …

Member Avatar for Tamlyn
0
298
Member Avatar for VernonDozier

126 posts, 72 of them negative. Anyone who has been to the C++ forum lately knows who I am referring to. He hits all the forums out there. They've all banned him. That's his game. How long can he post complete drivel till he gets banned? He's been around here …

Member Avatar for Ezzaral
2
209
Member Avatar for Sundayy

Hi Guys: I have completed my source code for the following problem using the "if" statement. I have gotten 4 errors which are: Line|26|error: ambiguous overload for 'operator>>' in 'std::cin >> (Total_Number_of_Seconds / 3600)'| Line|29|error: ambiguous overload for 'operator>>' in 'std::cin >> (Total_Number_of_Seconds % 3600)'| Line|32|error: ambiguous overload for 'operator>>' …

Member Avatar for Sundayy
0
784
Member Avatar for lexusdominus

Im trying to learn how to use the winapi - ive read tutorials about message handling and the windows procedure ect, but am a bit lost as to where to start. I know what i want to do - my program launches as a console and starts a new thread …

Member Avatar for Ancient Dragon
0
155
Member Avatar for Tripandthenfall

Hi there im really new to C++ and im supposed to be doing a maturity calculator and i keep getting error code c2661 no overload function takes 1 arguments. Please look over my code and let me know everything that i have screwed up on because im sure there is …

Member Avatar for gerard4143
0
81
Member Avatar for KazenoZ

Hello, This is something that I need to do in my program, that's a little though for me to define in a few words for Google, I couldn't find any useful results. The thing is this, I have a program that creates a bunch of code files(.cpp and .h, in …

Member Avatar for KazenoZ
0
146
Member Avatar for Tuloa

I can use the program fine without this code but I need to be able to take a line of text a file and read it into a variable. Here is the code causing the app crash: [CODE] string ReadLine() { getline(file, lineread); if (lineread.find_first_of("WSF_") != string::npos) { return lineread; …

Member Avatar for Tuloa
0
198
Member Avatar for Sahilroy

Creating and maintaining a database. The program should make use of functions, linked list, structures, arrays, pointers, and data files (input and output files). It should be able to do the following: Add record, delete record, update record, Sorting & Searching (on both string and numbers), triggers, and alert messages …

Member Avatar for techsurge
-7
121
Member Avatar for lexusdominus

i wrote this a couple of years ago when i was just starting to program. i didnt know any professional programmers and wanted to learn, so just experimented with the language. maybe it will give you an insight into how people program for fun. feel free to add to it, …

Member Avatar for mike_2000_17
0
135
Member Avatar for Sundayy

Hello again: I am having trouble declaring my variables. Can you please show me what I am doing wrong. The homework problem ask for me to use the "if" statement also, kinda having a few problems with that. Please see the question and my code below. Thank you for your …

Member Avatar for peter_budo
0
424
Member Avatar for lexusdominus

i have a string which is giving me problems. when i put it into a textfile, it puts the cursor onto the nextline. i assume because there is a \n at the end of the string, but when i cout the string, the newline character isnt there (well, the console …

Member Avatar for lexusdominus
0
95
Member Avatar for lexusdominus

i would never ask for debugging help usually but i am totally lost and have wasted far too much time on this. both peices of code compile correctly. the original function works fine with my program and the second one crashes. the original code checks a textfile in the root …

Member Avatar for lexusdominus
0
314
Member Avatar for Scooterman1

So I've been working on a program that takes a string and then puts it in an i * 6 char array but I can't seem to get it to work, any help with the problem would be much appreciated. Here is the unsatisfactory code I have so far: [CODE] …

Member Avatar for Scooterman1
0
376
Member Avatar for lexusdominus

Hey guys. Im writing a console based application which i want to convert to a windowed application. however, i still want the user to be able to type in input and for my program to be able to output in a console based style, i'd just like the option to …

Member Avatar for lexusdominus
0
202
Member Avatar for juangalvez4

First of all, hi everyone! Im a C++ newbie and i'd like to get a good grasp of the concepts soon. I'm currently working on this [CODE]#include <iostream> using namespace std; int main() { int i, j, lines; cout << "This Program creates Christmas Trees." << endl; do { cout …

Member Avatar for juangalvez4
0
130
Member Avatar for hodaAgh

I've written a program like the follow: [CODE]int main () { . . . . ifstream file1; ifstream file2; ofstream simiralities; simiralities.open("P(0)_P(1).txt", ios::app); file1.open("test1.txt", ios::in); while (!file1.eof()) { . . . file2.open("test2.txt", ios::in); while (!file2.eof()) { . . . . } file2.close(); } simiralities<<number; file1.close(); simiralities.close(); return 0; }[/CODE] the …

Member Avatar for hodaAgh
0
144
Member Avatar for lexusdominus

id like to write a function that checks if an object's variables have been changed. the only way i can think of is to create a duplicate object and compare each variable. im really lazy, and this seems like alot of effort. can anybody help me think outside the box? …

Member Avatar for mrnutty
0
100
Member Avatar for davebaum1

I am a brand new programmer attempting to teach myself C++. I understand that it is a rather complex language to begin with but I also understand it to be the most useful in the long run and one of the best building blocks for learning other languages. With that …

Member Avatar for tundra010
0
165
Member Avatar for athlon32

When printing output to a terminal in C++, should i use "\n", or "endl"??? Is one lighter, faster, or industry standard?

Member Avatar for athlon32
0
263