Hello,
I am uning IRIX64. I need to do an ls - 1 (one) command in order to get a one colum listing of the contents of a non current directory:
t01:~ [119] > ls -1 /scratch/u118807/reconstruct
./
../
fr000202.rec
fr000202.sin
input_files/
input_files.tar
sin000000.rec
sin000000.sin...
Hello,
How can I make a C++ program running on Windows 2000 read data (read from a file for example) located in a Unix system?
Any help will be greatly appreciated.
Thanks.
Hello,
I currently can make a system call from within my C++ as follows:
exec("ls -l"),
I want to run a more complicated program and be able to controll it from withing my C++. For example, if I run the xclock process, I cannot gain control of my program until I close the xclock...
Hello,
I need to write a little C/C++ program that launches an executable and controls it (be able to identify if it is running, be able to kill it if necessary). I have done this already in Windows with ViusualC++.
Question, I have an executable to test (Butterfly.exe) that does not execute...
When trying to compile a plain C++ program (not visualC++) which uses DispatchMessage, TranslateMessage, and GetMessage in a DoEvents() loop function, I get the following link errors:
Butter2.obj : error LNK2001: unresolved external symbol __imp__DispatchMessageA@4
Butter2.obj : error LNK2001...
[Note: seems like I was unable to post this a few minutes ago. Sorry if it gets duplicated]
Hello,
In VisualC++ I have a program that calls DoEvents() and works just fine.
I moved the exact same code outside VisualC++, since I need it as a stand alone program. However, my DoEvents() now do...
Hello,
In VisualC++ I have a program that calls DoEvents() and works just fine.
I moved the exact same code outside VisualC++, since I need it as a stand alone program. However, my DoEvents() now do cause linkage problems. These look like:
void DoEvents(void)
{
MSG msg...
Hello,
I have a GUI with two buttons. Button "Execute" calls the following piece of code (processHandle is a global HANDLE):
ExecCmd::Run()
{
STARTUPINFO start;
PROCESS_INFORMATION pinfo;
memset(&start, 0, sizeof(STARTUPINFO));
start.cb = sizeof(start);
DWORD returnValue;
long time...
Hello,
How can I declare a global variable to be used by all the classes in a VC++ project? I added the variable (HANDLE processHandle) in the .h file of the main function, but apparently this cannot be seen other classes in the app.
thanks,
Hello,
I created a dialog based project. Then, via the insert, I inserted a C++ class: ExecCmd(). In the main C++ class, how can I call/declare an object to ExecCmd()?
I am trying: ExecCmd x = new ExecCmd();
But I get an error C2440: 'initializing' : cannot convert from 'class ExecCmd *'...
How can I run an external processes under control of a C program. That is, if I have a .exe, and I want the C (or C++) program to execute it, but then, I do not want the .exe to hog resources, and I do not want to wait long for it to finish. I need to make sure it is running, and I want to...
How can I make a C++ or C program that launches an external application (like the install of another application) wait for the completion of that app before continuing it's process? And... kill the launched external app if necessary?
This has been done in VisualBasic...
Dear Members,
I have a very puzzling problem. I have a tiny C program that I want to run with the following command line argument at the prompt:
>> Pointers 3
Pointers.c looks like:
void main(int count, int *argv[]) {
int *ptr;
ptr = &argv[1];
printf("\n*** Parameter passed is...
Hello,
Do you know how can I easily extract the date of a file passed in as a parameter? My file looks like:
-rw-r--r-- 1 cecilia grad 477 Oct 13 19:56 message
And I need to get the "Oct 13 19:56" I tried using the "stat" function on this file which returns a 13...
Hello,
I need a Message Box with blank spaces and I don't know how to do that :-(
Something like:
MsgBox "Hello <newLine> <newline> World!"
So the result should be:
Hello
World
THANKS
Hi,
I inherited a piece of code which was initially written on a Unix platform and I am trying to convert to Windows. This code uses the library FFTW2st.lib. I added the library to the application settings but then I get a some link errors saying that I have duplicate definitions such as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.