Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 5 results for
filef
- Page 1
A couple problems
Programming
Software Development
13 Years Ago
by Vexx
… // Function Declarations //------------------------------------------------------------------- namespace JavaLaunch { bool file_exists(string
filef
) { struct stat fileStats; // file information gathered from stat…() return (stat(
filef
.c_str(), &fileStats) == 0) ? true : false;…
Re: A couple problems
Programming
Software Development
13 Years Ago
by iamthwee
I've had similar issues. I've found the easiest way to overcome all this was to write the command to a .bat file then execute the bat file.
Re: A couple problems
Programming
Software Development
13 Years Ago
by Vexx
Okay, so I just woke up and took a good look at my first problem. I can't believe I missed this last night probably because I was so tired. Anyhow, I was trying to use the second argument as the end index when it is actually the count. The below code change fixes this problem: [code=c] application_name = application_path.substr(application_path.…
Re: A couple problems
Programming
Software Development
13 Years Ago
by Vexx
Still haven't gotten it to work using the batch idea, because I still am using system to execute the batch file. Here is my change: [code=c] // launch the Java application ofstream ofs(string(application_name + ".bat").c_str()); if (application_type == ".jar") { ofs << string("\"" + java_runtime_path …
Re: A couple problems
Programming
Software Development
13 Years Ago
by Vexx
Well, looks like this is a lost cause, I've been working on it all day and can't find a fix for the quotes problem. I'm just going to throw in the white flag and rewrite this in C#. Marking thread as solved.
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC