|
Does such a thing exist? Preferably freeware.
|
|
|
|
|
Why would you do such a thing to innocent C# code ?
I don't know of one, but it would not surprise me, they are close to being the same language. A C#->J# converter seems like a sure bet tho, give that it would work the same as the C#->VB.NET ones do.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Well I wanted to do a Silverlight version of a C# 2008 Express desktop project, but the Silverlight dev tools 2 Beta won't install on it (yet?), and I thought that a converter could be a quick way of getting an online version of the program without having to learn all of Java from scratch. I've only just got into C# (which I like) and I don't want to have to learn yet another language just to do this.
|
|
|
|
|
IIRC, there was this thing called Grasshopper which translated MSIL into Java bytecode. I don't know if they have a free version, though...
|
|
|
|
|
Convert to Java or to J# ?
it's a little bit hard if you want to convert to Java and If you are using specific .Net classes
I think that you will have to do it manually.
|
|
|
|
|
Hi all,
I'm trying to call a command line app from my c# code and the command line app requires multiple arguments.
This is my code
myProcess.StartInfo.FileName = "convert.exe";
myProcess.StartInfo.Arguments = ("-density 72 Test.pdf Test.jpg");
myProcess.Start();
The problem is it says "Invalid Parameter 72"
when I run this in the command line (cmd.exe) it works fine
convert.exe -density 72 Test.pdf Test.jpg
Is there something I need to be doing with the arguments?
thanks
|
|
|
|
|
Hi !
I think that "Invalid Parameter 72" is a message coming from your convert.exe not from your calling application.
Try with other value?
|
|
|
|
|
Yes but why is it saying it is invalid when it runs perfectly fine when I run the exact same command from the command line (cmd.exe)?
|
|
|
|
|
Strange !
Try to delete "-" from your arguments
|
|
|
|
|
No different withouth the -
still same error
|
|
|
|
|
ouch
sorry
Did your "convert.exe" using external files?
Those files must be in the same directory of your .net assembly
|
|
|
|
|
I've tried having the convert.exe in the same directory as the .net files (in the bin/debug) but same issue still
|
|
|
|
|
Try this configuration
YourProject
|--Bin
|----Debug
|--Convert.exe
|--Files used by convert.exe
|--Directories used by convert.exe
|
|
|
|
|
You need to specify the COMPLETE path to your convert.exe, otherwise
the File System Conversion Utility (convert.exe) in Windows
is started.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi,
Thanks that solved it
I wonder why in the command line it calls the right convert.exe and not the file system conversion utility.
|
|
|
|
|
thestonefox wrote: I wonder why in the command line it calls the right convert.exe and not the file system conversion utility.
That's a mystery only you can solve by examining your PATH
environment variables in the different scenarios
Cheers,
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hello,
I'm trying to select only scanner and want to set the DPI to 100 and automatically scan without showing the scan dialog.
Any idea?
Thanks
jugal
|
|
|
|
|
Hi! I want to know something if anyone can help me. I want to create folder during the installation of the app, and I want the user to be able to select the folder during the installation. Also, I want to have an option for the user, if she wants, to be able to change the selected folder, after the installation is finished. Any help?? Thanks in advance
|
|
|
|
|
You can't do this with an msi, as far as I know. You'd do better to just have your program ask them the first time it is run.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
OK. Thx. Just one simple question, I guess. If I want to have like a window what I need to run just the first time when the user will start the app, and after that to have the main window running, how I can do that, cause I haven't done anything similar so far. Thx in advance
|
|
|
|
|
hi
In Fact you can do some post/pre/during install operations when you are creating your MSI with visual studio (currently i have VS 2005)
It's called a Custom Action
You can call a custom action When Installing, Validating , Reparing installation or Uninstalling
So You can attach an executable file to do some work (e.g creating folder, cleaning etc.)
This is a sample from the msdn web site :
http://msdn.microsoft.com/en-us/library/9cdb5eda.aspx[^]
|
|
|
|
|
A custom action sounds like a good idea. The other way is to store something in the registry to tell you that you're been run and performed the action before.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi all...i have a hyperlink in a datagrid...the hyperlink navigate url is set in the code behind when a user clicks on a record in the datagrid...i want to know if there is a way to remove the redirect pages menubar and scrollbars from the navigate url?
living life on the flip side
|
|
|
|
|
I have an existing solution which I would like to add class files to or update the files.
The solution has numerous projects in it, and would like to add more classes to it as the code progresses, but use a code generator to do so (adding new tables and fields etc). Is this possible?
|
|
|
|
|
Of course. You can add code to your solution whenever you like, from what ever source you like.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|