Search:

Type: Posts; User: Avatar19

Search: Search took 0.26 seconds.

  1. Re: Determining the location of the file that initiates an application

    Ok cool, then as soon as I get my laptop back Ill do some experimenting, and ill report back with anything I discover!!
    Thanks Norm
  2. Re: Determining the location of the file that initiates an application

    Hey Norm, thanks for your help so far,
    my laptops screen died and is being repaired which is why I have been unable to reply till now

    Can I ask what does \"%1\"" actually do in the registry...
  3. Re: Determining the location of the file that initiates an application

    I am working with a java program, but its a java program that I have bundled into a exe using Launch4j, I can change it to point to my jar file though, what do you suggest?

    Thanks for your...
  4. Re: Determining the location of the file that initiates an application

    Ok cool, this is whats currently in that file directory



    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\cmi_auto_file]
    @=""

    [HKEY_CLASSES_ROOT\cmi_auto_file\shell]
  5. Re: Determining the location of the file that initiates an application

    Hi Norm, Ok I hope this is what you meant!
    I took the file association that I have made and am using for my application and I also took the registry entry from the same location as you had yours

    ...
  6. Re: Determining the location of the file that initiates an application

    Ok, so iv looked around a bit through my registry, do you mean this entry, Iv attached a png

    2513


    I also looked through the FileExt list and there was no command line that I could see, I...
  7. Re: Determining the location of the file that initiates an application

    I'm not sure what you are asking, so I am just gonna Google a bit so I can give you an intelligent answer, ill reply shortly
  8. Re: Determining the location of the file that initiates an application

    Hi Norm,
    yes the string passed to main was empty, so im not sure how to get at the information, i.e. the name of the file?
    Other than editing how the file association table, is there another way...
  9. Re: Determining the location of the file that initiates an application

    Maybe I'm not understanding you, but the file-name doesn't get passed to the command line,
    can you perhaps give me a small example of what you mean?

    Thanks!
  10. Re: Determining the location of the file that initiates an application

    Yes, that is what I am asking, if we are both understanding each other correctly.
    So let me explain clearly, say my application "myApp.exe" is located at C:\Users\Michael\Desktop and I have set it...
  11. Re: Determining the location of the file that initiates an application

    Ok, so far I have found a good half solution, java has System.getProperty("user.dir") which gives me the working directory of whatever initiated running my program. So the only thing I need is to get...
  12. Re: Determining the location of the file that initiates an application

    Hi Greg, to clarify I am making a normal runnable jar file and then I am going to convert it into a .exe for my windows version just to make it neat on the platform.
    Onto the problem at hand, my...
  13. Determining the location of the file that initiates an application

    Hi,

    My question is, suppose I have an xml file say "myXml.xml" that can be stored in any directory on my PC and I set its default program (the one that will run when I double click myXml to...
  14. Re: How to receive a message from an external Midi device using javax.sound.midi

    For future reference for anyone who struggles with Java Midi, I used to MidiBus to solve my problem.
    currently located at Small But Digital - The MidiBus
    Its easy to use and you do not need to use...
  15. Replies
    5
    Views
    339

    Re: wont get right output

    Cool, no problem :)
  16. Replies
    5
    Views
    339

    Re: wont get right output

    You are doing Integer division as far as I can tell in all you tax calculations:

    tax = tax+(33/100)*372950 + ((personalIncome-372950)*(35/100));

    should look like this tax =...
  17. How to receive a message from an external Midi device using javax.sound.midi

    In my code I have created MidiDevices for both my MidiInput and MidiOutput.
    I have also opened these devices.
    I have also sent a sysex message through to my external midi device.

    The device is...
  18. Re: Pressing Cancel in FileDialog close entire application (Using SWT)

    Cool, changed it to an if statement, works great, thank you :)
  19. Re: Pressing Cancel in FileDialog close entire application (Using SWT)

    Cool thanks you nailed it, so obvious in retrospect, I appreciate your input, this is the segment that was crashing the application





    mainfileButton.addSelectionListener(new...
  20. Pressing Cancel in FileDialog close entire application (Using SWT)

    HI,

    when I open a file dialog from my application and press the cancel button located within the file dialog, it just closes the file dialog as expected, if I repeat the process, it closes the...
Results 1 to 20 of 20