program

State and time transending logic and program flow?

Wondering if it would ever be useful to index every possible state of an application using some reference keys... Meaning, say we have a program that starts, has only so many possible outcomes, say 8. but if each outcome is attained through stepping through many more logic states, and in between each branch is considered to be a state ...

Best Windows Installation file Creator?

I'm not the best programmer so I found it was much easier to write a program as several separate executables, which occasionally call each other. But now I need an easy way to actually run them without writing detailed instructions like Run file one, wait until its completed and no longer in process manager before running file two, file...

C# - How to get Program Files (x86) on Vista x64

I'm using: FileInfo(System.Environment.GetFolderPath(System.Environment.SpecialFolder.ProgramFiles) + @"\MyInstalledApp" In order to determine if a program is detected on a users machine (it's not ideal, but the program I'm looking for is a right old kludge of a MS-Dos application, and I couldn't think of another method). On XP and 3...

C %[] conversion specifier and String functions.

I'm having a hard time coding understanding the format of the specifier and string functions. My aim is to use %[] to readin all characters and spaces and then use the strcpy function followed by the strcat function. So far i've managed to enter individual characters and print them out, excluding spaces. here's the code so far; int m...

Jumpdrive-Portable Database with GUI frontend

Is there a simple database program to let me collect, sort, tag, and reguritate trivia questions and answers? If something already exists in Open Source, can you point me to that? I have assembly programming skills (cue jokes) but not so much in the Perl,LINQ,Delphi,VB, C#, Java arena. ...

How can I set the program name for sybase connections in jdbc?

I can do it in C, and I can do it in perl, but I don't see how to set the program name on sybase connections using jdbc? ...

How to generate running time graph for my Java program

Hi I want to generate running time graphs on my java program. Is there any program which makes it? ...

call a function when the program is finished with ctrl c

Hello, I am working in the Linux environment, and I have a C++ program, what I want is when I cancel the program with ctrl+c I would like that the program executes a function, to close some files and print some sutff, is there any way to do this?. Thank you. ...

How to make console program,to dissapear and work in background?

How to make console program,to dissapear and work in background? I mean,I don't want to see the program,but I want to see it running through the task manager. How can I do that? Thanks. ...

I need a background program C++

Hi, I have created this program: //Includes.... int main() { ifstream readfile("File.txt"); string str; while(1) { getline(readfile,str); system("cls"); Sleep(10000); } } It's just a program that reads every 10 seconds a line from the file "File.txt" I want to make it work on background,how can I do ...

Execute a Java program from our Java program

How to execute another Java program from our Java program? I used Runtime.getRuntime().exec("_") but it throws a runtime IOException. I don't know whether I have the problem with specifying the path or something else. Can anyone please help me with the code. Thanks in advance. Regards, Arun ...

How to restart a sockets program?

I need my server to stay connected to the server. Does anyone know how to do this? Or post links tutorials anything? Also it says when it restarts 'could not accept client' so how would I clear everything and make it accept it? ...

Pascal - Re: Uses

I have the following program which very nearly works but is producing the following error when I try and compile, I have no idea how to fix it! any ideas? Forms, mainform in 'mainform.pas'... "unit1.pas(9): , or ; expected but 'IN' found; "project1 could not compile unit1.pas unit Unit1; interface uses Windows, Messages, SysUt...

How to communicate between a JSP filter and a JAVA program

Is there any way to send a string to a JAVA program from a JSP filter? I tried sockets; didn't work. I tried external files; didn't work. So, I'm kind of at a Witt's end here on the subject. ...

java swing program with multi lingual support

I want to create a TextArea in java where i can write data in chinese. How can I achieve this Thanks Bapi ...

stack not workingin gdb

Exact duplicate: http://stackoverflow.com/questions/780961/gdb-gnu-debugger #include <pthread.h> #include <stdio.h> #define NTHREADS 4 #define N 1000 #define MEGEXTRA 1000000 pthread_attr_t attr; void *dowork(void *threadid) { double A[N][N]; int i,j; long tid; size_t mystacksize; tid = (long)threadid; pthread_...

C Program argv does not contain double quotes

I want to write c program which calls another exe. This wrapper c program does nothing but sets some environment variable before I call my original exec. For example My original exec name is test.exe and I wrote testwrapper.exe I want to call it as testrapper.exe < parameter >, internally it will should call test.exe < parameter > My pr...

C# Login to Website via program

I'm relatively new to using C#, and have an application that reads parts of the source code on a website. That all works; but the problem is that the page in question requires the user to be logged in to access this source code. What my program needs a way to initially log the user into the website- after that is done, I'll be able to ac...

I had written a simple cobol prog in ECLIPSE. But i am unable to compile,run that program

I had written simple cobol program in eclipse. For the first time i am using eclipse for cobol programs. i want to know the steps followed to compile and run that simple cobol program. ...

What's the difference in Windows program invocation?

I have a program on a Windows XP computer on another continent. If I start it by double-clicking on an associated file, so that it runs the program according to the file-type association, it crashes at a certain point. If I start it by dragging an associated file to the program icon, it works fine. If I double-click on the icon and dr...