| adding variables to the system() command |
[22 Feb 2003|08:13pm] |
I would like to do this:
String name; cout<<"Enter file name and path: "; cin>>name; system ("start name");
I realize that this won't work, since the program would go looking for a file called 'name'. But I don't know how to add variables to the system() command. So if anyone could give me an example of code that does this, I'd be greatly appreciative.
{By the way, I am using MSVC++, I have already tried using ShellExecute() [which gave me errors just by including the shellapi.h library], and I do not want to open .txt files.)
Thanks
|
|
| Macro question. |
[22 Feb 2003|11:01pm] |
| [ |
mood |
| |
annoyed |
] |
I've recently goofed up a macro, and it no longer automates or records my actions. So, for the sake of simplicity, I named different macro, and it recorded my actions successfully.
Now, how do I remove a old macro name from the macro window in Visual Studio C++ 6.0? I just want to see the one I successfully recorded rather then the goofed one. The name "Template" is on the list but I cannot seem to remove it. The only options I am given is "Run", "Edit","Record", "Close", and "Options >>". Argh! Where's the delete dialog button when I need it?! I can't even use my keyboard's delete key!
Furthering my adventures, I've already have dug into my directory folders to attempt a manual delete of the file, only to find "MYMACROS.dsm" rather then "Template.dsm". It is as if "Template" doesn't exist except in that window.
All in all, this is an itching annoyance. Any ideas?
|
|