It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have file.c file that I want to add to my ios app. I renamed it to file.m, rename the main() to main2() and included it in my project in xCode. It compiles fine but how do I run main2()?
Could someone please explain this in detail? Thanks.
More likely than not, the main of the original C program is going to try and set up a processing loop or otherwise wait for some kind of input and then try to process it.
You aren't going to be able to simply embed one entire program in another and expect it to work unmodified. You'll need to understand how the second program works and then integrate that functionality into the first. Without seeing the implementation of your second main, it is impossible to say more.
You have to call main2() somewhere in your main source file. main() is the entry point for C programs, so if you rename main() to something else, you will have to call it manually.
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I need to add unlockables to my application, but the problem is that I don't want to have to send out an update every time that I want to add something new. I have read a bit about servers and JSON and XML. I just wanted to check to see if anybody else had a better idea?
If you are talking about something like a logo change then, short of an app update, the only option you have is getting it from an outside source such as a server transmission. But now you are talking about in-app purchases which, if you have not already, should read up on.
https://developer.apple.com/in-app-purchase/In-App-Purchase-Guidelines.pdf
Server based image and/or text transmissions are easily done and if I understand your last comment correctly, these updates would not be very frequent anyway.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
Me and a friend have being trying to do this for a while and regardless of how hard we searched and tried; we just couldn't do it.
But what we are trying to do is Run/Execute a .jar file from delphi ( from like a click of a button )
I did try using ShellExecute (from the ShellAPI) but I didn't how to pass the parameters correctly;
The end purpose we want it to execute his minecraft server (bukkit) with delphi; (These are the usual parameters that are passed "java -Xmx1024M -Xms1024M -jar minecraft_server.jar") It may seem pointless, but we thought it would be a good challenge and I'm not one for giving up! So I was wondering is it possible with out using outside libraries and could you help me? I'm not asking for a source I'm asking for assistance and a starting point. Thanks in advance
Like this:
ShellExecute(
0,
nil,
'java.exe',
'-Xmx1024M -Xms1024M -jar minecraft_server.jar',
nil,
SW_SHOW
);
In order for this to work, the file minecraft_server.jar must be located in the working directory when you call ShellExecute. If you cannot ensure that then pass the full path to the .jar file.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have a requirement where, I need to give the user only one editable java class where he can make changes in the program such as changing username, changing phone number. The moment he saves the data, the built program should be able to reproduce the changes.
I am doing this project for BlackBerry.
I want to know, is there any way in which I can link a class with external project? I am developing the project using Eclipse. I don't know how the user will make changes and save. I know it's a little weird but generally speaking, I want to link two different applications using some middle interface. Any help is greatly appreciated
I believe this is a simple case of "You think you know what you want but you really don't" :)
Please explain what it is you want to achieve between your two apps and how they interact and we will provide you with a much better solution than asking a user to modify java files.
UPDATE AFTER OP COMMENT :
You need to look at XML or JSON. These are ways to format data so that it is easy to write/produce/transfert/parse.
Parsing XML on Blackberry
Parse XML file on BlackBerry
When you build a java project you get a jar file. If you include that jar file into the classpath, all of its contents will be available to your code (with necessary import statements).
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I have been given a project and asked to convert it to binary so my boss can submit it to the App Store. I am using xcode 4.3.1; how can I do this?
Sorry: I don't have any code (I don't think this can be done through code) or any thing that i have done to demonstrate.
If you've already been testing on an iOS device, then you already have a binary. It's what gets downloaded to the device to run your app.
What you might actually need to do is to learn how to archive, codesign, and submit the app.
For that, nothing beats reading Apple's documentation. All of it. Not some short hint or a paragraph or two. Lots can go wrong if you don't read it all.
Open Xcode. Click Help. Type "Distributing Applications" in the search.
The developer website also has mountains of information on how to do this.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 12 years ago.
...Even when a user opens an application by double-clicking an associated file in a directory that's different from the executable. I've always used ExtractFilePath(Application.EXEName), but this function doesn't work as hoped in this circumstance.
ExeName returns ParamStr(0) which in turn returns the string produced by GetModuleFileName with hModule set to 0. I cannot see any reason why this wouldn't work in a normal application.
Also try ParamStr(0). Maybe that works when application.exename doesn't?
ExePath := ExtractFilePath(paramstr(0));
I do it all the time, and it always works, whatever OS it is running on.