|
Hi,
I want to serialize and deserialize objects that has fields with åäö in the names.
serializing them works fine, but deserializing doesnt work and the formatter complains about invalid chars in the tag names.
is there any workaround for this?
|
|
|
|
|
I am a C programmer attempting to learn C# and the problem I have is that I need to call/execute an external program from within a C# program I have written.
Please tell me how to do this.
Regards,
Alf Stockton
|
|
|
|
|
Try this
using System.Diagnostics;<br />
.<br />
.<br />
.<br />
.<br />
Process.Start(@"C:\Softwares\Ws_Ftp\WS_FTP95.exe");
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Gee that is easy enough. Thank you.
|
|
|
|
|
You are welcomed.
<font=arial>Weiye Chen
Life is hard, yet we are made of flesh...
|
|
|
|
|
Process.Start appears to only be able to start a process on the same machine.
Is there a way to start a process or preferably a php program on a remote machine.
What I want is to call a php on the server from a C# program on a workstation.
Regards,
Alf Stockton
|
|
|
|
|
I am writing a server application using SOAP over TCP (soap.tcp) in C#. I want to
generate a WSDL file from this uri "soap.tcp://localhost:8080/stockservice".
All I have heard is that its not possible to add a web referene as it
happens to generate proxy class for a http request .'If the SoapService
endpoint is bound to an HTTP endpoint, you can request the WSDL definition
by appending '?wsdl' to the endpoint address.However since the release of
WSE 2.0 and WS-Addressing many leading service providers are using TCP.The
"?wsdl" approach doesn't make sense for protocols such as TCP that don't
support the notion of a query string. MS has provided a generic way to get
WSDL Simply send a SOAP message with an action of
http://schemas.microsoft.com/wse/2003/06/RequestDescription
and an empty body, as illustrated here:'
--------------------------
soap:Envelope xmlns:wsa="..." xmlns:soap="..." ...>
<soap:header>
<wsa:action>http://schemas.microsoft.com/wse/2003/06/
RequestDescription
...
<soap:body>
-----------------------------
Now I have created a method given below that returns the above mentioned
soap envlope, and further i m sending it from client program using
"sender.Subscribe(env)".
private static SoapEnvelope CreateSubscriptionMessage()
{
SoapEnvelope env = new SoapEnvelope();
XmlElement header = env.CreateHeader();
env.Envelope.AppendChild(header);
header.AppendChild(env.CreateElement("wsa:Action"));
header.FirstChild.InnerText=
"http://schemas.microsoft.com/wse/2003/06/RequestDescription";
Console.WriteLine(env.Envelope.InnerXml);
return env;
}
-------------------
I dont know how it will gonna return WSDL in response to this soap packet.
And how to recieve that WSDL ..
Could some body please provide or direct me to some sample by using which I
could receive WSDL and save it in a file.
thanks in advance
iffi
|
|
|
|
|
hi all,
I want to change default wait Image of the Cursor.Nomally we are doing it like this.
this.Cursor=System.Windows.Forms.Cursors.WaitCursor;
Now it appears it default Image.can we change that Image and put there my own ,custom Image?
thanks in advance.
|
|
|
|
|
I have an access DB and want to be able to change the allowzerolength property for a column. How can I do this using C# code?
Thanks
Paul
|
|
|
|
|
Hello,
I have to call one function in C++ DLL from c#.Net project.How can i do that?
Amruta
|
|
|
|
|
[DllImport("yourLib.dll")]
private static extern void yourFunction();
_________________________________
Please inform me about my English mistakes, I still try to learn your language!
|
|
|
|
|
I tried using that DllImport but the problem is in difference of data types while calling the function in c++ from C#.
Amruta
|
|
|
|
|
hi i m new on c#.net i have to develop a Form for Data Input and i need to use a DataGrid on it (with ComboBox and DTP on it), can anyone send me the example of such scenario.
i'll b very much thankful for this act.
A H Khan
dcet99@hotmail.com
|
|
|
|
|
for getting data out of the database use Connection/DataAdapter/Datasets classes (odbc, oledb or SQl)
binding data to the datagrid use datasource (this also works for Arrays and ArrayLists)
To insert combos or any other gui-objects into the datagrid search on Templatecolumns, there are some tutorials here on CP.
I didn't play in winforms with datagrids much, but in ASP.NET I usually called a function which created my datagrid programmatically.
good luck.
No hurries, no worries.
|
|
|
|
|
Is it possible to create programmatically ne database file (SomeDatabase.mdb)?
|
|
|
|
|
I want to write DCOM components,but I don't know how to write the DCOM components in C#.
P:-Dlease tell me about it!
if possibility,please give me some examples about it!
Thank you!
|
|
|
|
|
First hit[^] on a google search.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Another idiot who doesn't like it when you tell them "Google is your friend!". I hate it when people come here and expect you to hand feed them every detail they want to know! Whatever happened to programmers doing their own research?! How on earth do these people learn anything?!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
Whatever happened to programmers doing their own research?! How on earth do these people learn anything?!
Yeah, it's a worry. I used to just say 'google', now I actually give the link as well as telling them how I got it. Still, people are not happy.
But at the end of the day, it's all good news for you and me. None of the 'I can't do my own research' brigade are ever going to put us out of a job.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
None of the 'I can't do my own research' brigade are ever going to put us out of a job.
Soooo true! There is a bright side!
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I don't know how many smack i got from Mr.Kreskowiak for this sort of spoon feeding which reflect in my answer submissions. .
Sreejith Nair
[ My Articles ]
|
|
|
|
|
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Here is the code I am using to get the total of the following textboxes
int OnHandVar1=Convert.ToInt32(OnHandRow1.Text);
int OnHandVar2=Convert.ToInt32(OnHandRow2.Text);
int OnHandVar3=Convert.ToInt32(OnHandRow3.Text);
int OnHandVar4=Convert.ToInt32(OnHandRow4.Text);
int OnHandVar5=Convert.ToInt32(OnHandRow5.Text);
int OnHandresult= OnHandVar1 + OnHandVar2 + OnHandVar3 + OnHandVar4 + OnHandVar5;
TxtOnHand.Text =Convert.ToString(OnHandresult);
actully for the other things the code is working just fine and also before it was working fine, now it is giving me an error saying that
"INPUT STRING WAS NOT IN A CORRECT FORMAT"
CAN SOMEONE PLEASE HELP ME OUT URGENT!!!!!!!!!!
Thanks,
I really appreciate your response.
Urgent
|
|
|
|
|
Zindagi11@rediffmail.com wrote:
"INPUT STRING WAS NOT IN A CORRECT FORMAT"
Gee. What do you think this might mean ? I'd guess that the input string was not in the correct format. I'd further guess that seeing as you're converting strings to numbers, that some of them were not valid numbers ( empty strings perhaps ? ).
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I'm not sure, but doesn't .NET create 0 for empty strings? Could be wrong though.
No hurries, no worries.
|
|
|
|