Search Results

Showing results 1 to 40 of 80
Search took 0.01 seconds.
Search: Posts Made By: cosmos22
Forum: C++ Mar 8th, 2008
Replies: 0
Views: 1,351
Posted By cosmos22
Hi.

I'm designing something that uploads files to an FTP server of the users choice, so they quickly upload things and access them as a way of backing up files, almost.

I would like to upload...
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 849
Posted By cosmos22
Ok, I might try the first method again just to check I'm doing it right...

You simply add the getchar(); before the return? What exactly does this achieve?
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 849
Posted By cosmos22
I've tried using the getchar(); method, but I've had no luck. Could you please explain to me what a break is, and how I might go about implementing it?
Forum: C++ Mar 7th, 2008
Replies: 6
Views: 849
Posted By cosmos22
Hello, I have done some research on playing .wav files in C++(As you can only play .wav files) and I've been having some trouble.
The coding below works, it just doesn't play the whole song. It...
Forum: C++ Mar 7th, 2008
Replies: 3
Views: 608
Posted By cosmos22
I am trying to implement something that follows your second idea, when the system does it automatically according to a set date.

EDIT:

I would like to use some sort of a loop that runs around...
Forum: C++ Mar 6th, 2008
Replies: 3
Views: 608
Posted By cosmos22
Hi. I'm trying to write a program that prompts the user of a message at a particular date. For example, a memorable date is set, and the program recognises this date from the code and lists a...
Forum: C++ Mar 4th, 2008
Replies: 5
Views: 2,478
Posted By cosmos22
I get the error main must return int, what I am doing wrong?
Forum: C++ Mar 4th, 2008
Replies: 5
Views: 2,478
Posted By cosmos22
Hi.

(I am using Windows XP)

I would like to know how you can use the function SetFileAttributes to hide a file or folder, I would also like to know about the declarations associated with this...
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
No, how do you go about doing that?
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
What is the point in running the program then, if you can't see the program open?
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
Yes, I've extended the char. amount. I'm confused dave, I thought this function is supposed to open the file? Still no luck
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
What exactly does it do then, if it doesn't open it>?
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
Sorry, no. Tried that, no luck I'm afraid
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
Here it is...




using namespace std;

int main(int argc, char *argv[])
{
char file[20];
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
I tried what you said, and it didn't work. Any ideas?

Edit: I ran the program, and it didn't open the file. Dispite doing as Ancient said
Forum: C++ Feb 25th, 2008
Replies: 19
Views: 1,893
Posted By cosmos22
I'm trying to open a file, using the ifstream function. I'm using a .jpg image as an example, but it doesn't work, any ideas?


Thank you.



int main(int argc, char *argv[])
{
char file[20];
Forum: C++ Feb 25th, 2008
Replies: 1
Views: 493
Posted By cosmos22
Hi, I was wondering how you might go about deleting all of one certain file type in a folder. For instance, say asked the user if he wanted to erase all text entries(.txt) to clear up his folder, and...
Forum: C++ Feb 23rd, 2008
Replies: 4
Views: 667
Posted By cosmos22
Hi.
How would I go about locating a file on the computer, and using it in my application. For example, say I wanted to call up a text document for a help menu to aid the user. I would also like to...
Forum: C++ Feb 23rd, 2008
Replies: 3
Views: 429
Posted By cosmos22
Yeah, I guess that's one way of doing it. Do have any knowledge otherwise?
Forum: C++ Feb 23rd, 2008
Replies: 3
Views: 429
Posted By cosmos22
Hi.

I would like to know about how you program a command that forces an operation. For instance, the command window might prompt the user of something that they already know, rather than bothering...
Forum: C++ Feb 22nd, 2008
Replies: 2
Views: 1,007
Posted By cosmos22
Well, couldn't you use the function to determine the control of the drive?
If the drive was E: for example:
This code checks the stated drive, so how would I use this?


Thank you



string...
Forum: C++ Feb 22nd, 2008
Replies: 2
Views: 1,007
Posted By cosmos22
Hello, I was wondering how you might go about detecting a drive letter, such as D for DVD drive, if you wern't to run it on your own computer. I have programmed something that picks a certain drive...
Forum: C++ Feb 22nd, 2008
Replies: 5
Views: 556
Posted By cosmos22
Yeah, that makes sense. It's because I ran a program with a loop inside of it, although I managed to prevent the window from opening in the process using a windows application, but strangly, an empty...
Forum: Game Development Feb 22nd, 2008
Replies: 1
Views: 1,248
Posted By cosmos22
Hi.

I know this is slightly off-topic, but it still relates to Games.


I would like to ask a question about a game that I own for my PC. For the record, it's House Of The Dead 2. Anyway, a...
Forum: C++ Feb 22nd, 2008
Replies: 5
Views: 556
Posted By cosmos22
I checked my project file extension, it's .dev. And my source files have a variety of different extensions. So it's possible that .dev when compiled(As a windows app.) doesn't support the console...
Forum: C++ Feb 22nd, 2008
Replies: 10
Views: 1,442
Posted By cosmos22
Thank you very much, it worked :)
Forum: C++ Feb 22nd, 2008
Replies: 5
Views: 556
Posted By cosmos22
I started a windows application, that used the void hide.. function to hide the command window. I compiled it, and it worked. Why is it, that if I compile the source file, and not the project file,...
Forum: C++ Feb 22nd, 2008
Replies: 10
Views: 1,442
Posted By cosmos22
Yeah, I tried this, whats wrong with my syntax?
My file is called testing123(orig)

rename("C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup\\testing123.exe");

I know this...
Forum: C++ Feb 22nd, 2008
Replies: 10
Views: 1,442
Posted By cosmos22
How would I use the dos move command to rename the file? What syntax should I use?
I know that's my programs name, I just can't get the syntax right, I've tried several methods...
Forum: C++ Feb 22nd, 2008
Replies: 10
Views: 1,442
Posted By cosmos22
Sure, this is the program that is copying the file to the startup folder so it boots up every time, so that I can prompt the user of info:

[CODE=C]

#include <cstdlib>
#include <cstdio>...
Forum: C++ Feb 22nd, 2008
Replies: 10
Views: 1,442
Posted By cosmos22
Thank you! It worked...
I have another question, it's about renaming a file from a certain location on the computer, I know copy is:



char cp[500];

if...
Forum: C++ Feb 22nd, 2008
Replies: 10
Views: 1,442
Posted By cosmos22
Hello, I would like to pose a very simple question, does anyone know how to clear the command window of text, and give it a name(Eg. Cosmos's Program)
I would like to make room for different lines...
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Thank you! Your a real wiz at this stuff!
So from any location, this can be run, yes?

Thank you again, a real committed, useful help!
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Yeah, I have a problem...
When I run it from the desktop it can't find the folder. Why is it that if I run it in the Compiled folder it works?

Thanks
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Thanks, works very well!
So you're saying that if the folder name isn't "Startup" then it won't work?
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Thank you! I will test...
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Ok, cool. So everytime I boot my computer, it will copy itself again into the same folder? I ran it inside the folder, and it said it couldn't find the file specified. If, for example, I wanted it to...
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Wow, it works brilliantly. Thank you! :)
From then on, when you boot the computer up, will it run the program?
For instance, if I made a program that displayed a message saying "Hello" that was...
Forum: C++ Feb 21st, 2008
Replies: 31
Views: 2,791
Posted By cosmos22
Thank you, I will test it out now. :) I'll let you know quickly if I come across an error... And yes, I have only constructive purposes alongside my programs.
Showing results 1 to 40 of 80

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC