|
Hey all,
I've been making a project recently, and I wanted to run the program on linux, but I don't know at all how to use Mono, so can anyone tell me how to convert my codes to a linux application? or at least, give me the link to a tutorial about this stuff!
Thank you.
|
|
|
|
|
|
Well, I wouldn't have asked if I didn't try to search in the first place but thanks anyway for your help
|
|
|
|
|
There's a reason why I posted that result list.
There's tons and tons of tips and stuff. FAR more than you will EVER get in a couple of forum posts.
Start reading - especially all the stuff on the Mono site.
|
|
|
|
|
What kind of application? WinForms, ASP.NET? You can simply install the MonoDevelop IDE, and copy the sources. Open the solution in the IDE, build and run.
There's also a bunch of examples on the site where you download Mono.
Bastard Programmer from Hell
|
|
|
|
|
Thank you. I've downloaded MonoDevelop. And I'm using Windows Forms. Does it implement all the dlls that come with the .net framework?
|
|
|
|
|
AhmedOsama wrote: Does it implement all the dlls that come with the .net framework?
There's a visual on what's implemented here[^].
Bastard Programmer from Hell
|
|
|
|
|
No it doesn't. There's no support for WPF for instance.
|
|
|
|
|
But it supports SilverLight or was that Moon something
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
|
|
how to make C# coding with implement of Analytical Hierarchy Process(AHP).
and i use Microsoft visual studio 2008
|
|
|
|
|
|
You might want to change your user name, otherwise you'll get spam.
|
|
|
|
|
We are calling LoadLibary in C#. For this we have included the below code in the C# file.
[DllImport("Kernel32.dll")]
internal static extern IntPtr LoadLibraryW([MarshalAs(UnmanagedType.LPWStr)] String lpMdoule);
We have multiple LoadLibaryW( ) calls. All of them are passing , except one. We verified the GetLastError( ). It returns 126. But the dll is physically existing in the correct path.
What could be the reason for dll failure.
|
|
|
|
|
The likeliest problem is that something the DLL you are trying to load relies on can't be found in the path.
|
|
|
|
|
The dll is physically existing in the desired path. But still LoadLibraryW( ) fails.
|
|
|
|
|
Did you read my answer? I said that something the DLL relies on is probably outside the path.
|
|
|
|
|
.DLL's sometimes are not standalone modules. It's entirely possible the .DLL you're trying to load uses another .DLL that you don't have somewhere where it can be found.
Use this[^] to find out what that dependancy might be. Just open the .DLL that's failing in it.
|
|
|
|
|
The error code means that the file cannot be found. As I requested in the C++ forum, please show the exact code (including the string parameter) of the call that fails. We cannot guess what is happening inside your program. At a (bad) guess, based on what you wrote in the C++ forum, your code looks like:
LoadLibaryW("C:\abc.dll");
which will most likely fail as the backslash needs to be escaped.
Unrequited desire is character building. OriginalGriff
I'm sitting here giving you a standing ovation - Len Goodman
|
|
|
|
|
The exact path is
LoadLibraryW("C:\\Program Files\\MyApp\\");
|
|
|
|
|
Where's the DLL name? You've just provided a path there - there's no DLL details, so how can you expect LoadLibraryW to pick up the DLL?
|
|
|
|
|
for example - 1.milk breade & pad
2 milk (breade) & pad
3 milk (breade) & pad.
4 milk braede
i tried very much but not success please hepl me
|
|
|
|
|
A couple of points.
1. There's a Regular Expressions[^] forum. That would be a much more appropriate location for this question.
2. You haven't actually said what you expect the output to be.
|
|
|
|
|
i m providing code which i am running and getting exception plz help in this regard thanx ....
public void Backup()
{
// Process.Start("IExplore.exe");
try
{
DateTime Time = DateTime.Now;
int year = Time.Year;
int month = Time.Month;
int day = Time.Day;
int hour = Time.Hour;
int minute = Time.Minute;
int second = Time.Second;
int millisecond = Time.Millisecond;
//Save file to C:\ with the current date as a filename
string path;
path = "C:\\MySqlBackup" + year + "-" + month + "-" + day +
"-" + hour + "-" + minute + "-" + second + "-" + millisecond + ".sql";
StreamWriter file = new StreamWriter(path);
ProcessStartInfo psi = new ProcessStartInfo();
psi.FileName = "mysqldump";
psi.RedirectStandardInput = false;
psi.RedirectStandardOutput = true;
psi.Arguments = string.Format(@"-u{0} -p{1} -h{2} {3}",
"root","123456","localhost","userdb");
psi.UseShellExecute = false;
Process process = Process.Start(psi); ///here is exception coming
string output;
output = process.StandardOutput.ReadToEnd();
file.WriteLine(output);
process.WaitForExit();
file.Close();
process.Close();
}
catch (IOException ex)
{
MessageBox.Show("Error , unable to backup!");
}
}
but when i run this code it is providing me runtime eroor exception ........".The system cannot find the file specified " at the line
Process process = Process.Start(psi);
|
|
|
|