|
i have project with database Access
Palestine
|
|
|
|
|
RIGHT ON!
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
Hi, i need some help on how to invoke the java virtual machine in c#, i need to run an aplication server named JBoss, from c# but handling the JVM, the Main on JBoss its on a jar file, can some one put me on the right direction please
sorry for my english
|
|
|
|
|
It could be possible to use the System.Diagnostics.Process class to start a JVM process with the jar name in the command line. I've not tried it, but that's what I'd try first.
|
|
|
|
|
I have already done that but i need to do it more primitive, doing something like createJVM with jni, i need to pass classpath an parameters tu the JVM
|
|
|
|
|
You can pass commandline arguments via the Process.StartInfo.Arguments property if that's what you're asking how to do.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Yes I know i have already done it in the way you tell me but the thing i need its to use JNI to load the JVM and run my Application server.
Sorry if i don´t asked well
Thanks in Advance
|
|
|
|
|
JNI in C#[^] - is this what you're looking for?
If not, please be precise about what you're trying to do.
|
|
|
|
|
Yes, thats what i am looking for, i need to create the JVM and tu run a JAR file that has the main to run JBoss Application Server can u help me, i have already tryied JNI.NET.Bridge Project but it does not work with sub folders in jar.
Thanks in advance
|
|
|
|
|
I'm afraid I don't have experience with bridging JNI and C#. Does the article I pointed you to help at all? I see there are several articles online and on this site regarding JNI and C# interop.
|
|
|
|
|
OK, thanks I am going to continue looking for the solution of my problem thanks
|
|
|
|
|
This is a wierd problem but if I try and set a tooltip ona control with an & in it, the & character isn't displayed. Is there some reason that the character can't be displayed in a tooltip, and if so, can I fix the problem via escaping it?
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
|
Escaping it with an \ didn't work, and .net tooltips don't have a UseMmemonic property.
In any case, the char after the & isn't being underlined.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
Why did you try to escape it with a backslash?
---
b { font-weight: normal; }
|
|
|
|
|
There's no equivilant property in the 1.1 framework, and the slash is the normal escaping character.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
dan neely wrote: the slash is the normal escaping character.
No, the normal escaping character is the escape character. Hence the term "escaping".
Different environments use different escaping characters. HTML uses &, URL uses %. SQL string uses '.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Guffa wrote: Different environments use different escaping characters. HTML uses &, URL uses %. SQL string uses '.
Which SQL implementation uses the single quote as an escape character?
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
EricDV wrote: Which SQL implementation uses the single quote as an escape character?
Microsoft SQL Server and Microsoft Access does. MySQL uses backslash, but also allows apostrophe as escape character for the special case of escapeing an apostrophe.
---
It's amazing to see how much work some people will go through just to avoid a little bit of work.
|
|
|
|
|
Try setting the: ToolTip.StripAmpersands Property [^]
--EricDV Sig---------
Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them.
- Laurence J. Peters
|
|
|
|
|
I'm stuck with the 1.1 framework for legacy support, and that property is only available starting with the 2.0 framework. Unless there's a way to pinvoke my way to the equivilant at the win32 level I looks like I'm going to have to do something WTFesque and convert & to ampersand in the tooltip. It's an invalid char warning, so I can't substitute an alternate character in the text.
--
Rules of thumb should not be taken for the whole hand.
|
|
|
|
|
i finsh work exe program with C# 2005 .Net 2.0
How can i make setup file to this progect
Palestine
|
|
|
|
|
Have you tried new Setup Project?
|
|
|
|
|
Hi,
I'm trying to serialize a class that has a table of items of another class. I need the output XML file to look like this:
<XmlSave name="Some name">
<Notes>Some notes</Notes>
<Items>
<Item Index="1"><elem>abc</elem></Item>
<Item Index="2"><elem>zzz</elem></Item>
</Items>
<Items>
<Item Index="100"><elem>ddd</elem></Item>
</Items>
</XmlSave>
I'm using the following classes:
public class Item
{
public Item()
{
}
[XmlAttribute("Index")]
public string index;
[XmlElement("elem")]
public string elem;
}
public class Items
{
public Item[] items;
}
public class XmlSave
{
public XmlSave()
{
}
[XmlAttribute("name")]
public string name;
[XmlElement("Notes")]
public string notes;
public Item[] items;
}
but this will generate additional nodes. I know it should be something really simple, but I just can't figure it out.. .
Anybody? pretty please?
thanks
|
|
|
|
|
hi,
you need to implement IXmlSerializable interface and handle xml writing/reading manually to override default serialization behaviour. have a look at
this msdn source
|
|
|
|