|
OK...I cannot resist the first opening... You have write this code:
System.Console.Write( 'Hey Software, listen to me!');
Now the serious answer. First you need to talk to the company to see if they have an API for communicating with their software. Let them know you're doing your stuff in C# and ask if they have a .NET wrapper available.
Once you have the info from the company, and you spend half an hour cursing their backward deployment, you need to address things pretty much yourself.
Their interface is probably exposing a COM interface so you need to get the interface extracted from the software. Unfortunately it has been a long time since I had to think about that. So do Google on .NET COM Interop and you should find plenty of articles on
a) bringing the com component into your code
b) gaining access in your code
c) making the calls into the cmoponent.
If you paid alot for the software, you should be able to apply pressure to the vendor to help you with this.
|
|
|
|
|
I had a library (dll) that I had originally written in C# - 2003, used to create and manage SqlDataAdapters, as well as automatically set up the Insert, Update and Delete SqlCommand object on the data adapter.
I converted it to 2005, and it compiles, but when I try to execute the .Update method of the dataadapter, I get the following exception:
I can't find any help on msdn, or even GOOGLE! for this error. Any thoughts?
System.ArgumentException was caught
Message="No mapping exists from object type System.RuntimeType to a known managed provider native type."
Source="System.Data"
StackTrace:
at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataSet dataSet, String srcTable)
at Monsanto.Aag.Swine.Common.DataCommand.AAGDataSet.UpdateTableNoTransaction(DataTable dataTable) in C:\projects\SwineCommon\AssemblyProjects\DataCommand2005\AAGDataSet.cs:line 697
|
|
|
|
|
Anyone knows, how to handle uninstall event,
and cancel this.
I'd like to add custom action in my deploy project,
that ask user for a password, if the password is true then it will uninstall
otherwise, cancel thie uninstall application...
My very best regards... (:
|
|
|
|
|
If you look here[^], you will find information for custom install modules. The custom install module gets called for both an install as well as an uninstall. It has been awhile since I worked with one but you are passed information telling you if this is an install or uninstall.
You write your custom install class in your project. Include that custom install action in your setup and deployment project. Then you define install conditions which determine if the process can continue.
|
|
|
|
|
Thank you so muhc this will help me
|
|
|
|
|
hi guys,
I'd like some help and advice on how to create and modify a PPPOE conenction on windows Xp programatically.
To be specific..
I have an ASP.NET application that can be remotely called and be used to create a PPPOE connection or modify an existing one. Also, the ability to be able to activate/Deactivate said PPPOE connection during a reboot or any other programatically timed situations. The created connected/Disconnected PPPOE connection must appear in the my connections folder of windows xp.
I currently am using WMI System.Management class to manage my LAN conenctions, unfortunately i cant seem to make it handle and properly manage PPPOE connections.
I've tried using the RAS API, but from what i've learned it doesnt meet my needs. P-Creating a PPPOE Connection and then usign RAS to modif it seems... to elude me.. since i cants seem to figure out how to set the username and password of the connection..
I've figured maybe some registry configuration settings might help.. but i cant find the keys that represent the pppoe connections with its username and password.
any suggestions, sample code or even a knudge in the right direction would help.
Note: Its' not just connecting to a PPPOE server thats important, but also making sure it is saved and seen in the My network connections folder.
,thanks allen
|
|
|
|
|
hi,
plz help
i want to send array(string data ) data to other function
how can i send that data
plz give me sample code for that
|
|
|
|
|
public void DoSomething(string[] values) {
foreach (string value in values) {
Console.WriteLine(value);
}
}
DoSomething(new string[] { "A text line.", "Another line." });
---
b { font-weight: normal; }
|
|
|
|
|
alright, could you please explain these lines? :P
comments are fundamental...
|
|
|
|
|
What is it that you don't understand?
It's a method that accepts an array of strings as parameter, and it's a call to the method that creates an array of strings.
---
b { font-weight: normal; }
|
|
|
|
|
hmm.. it sounds clearly now... :]
|
|
|
|
|
hi
i have one array in one function .
that array i want send other function.
how can i send that array
plz modify the code i am new to programming.
in runtime iam getting that array .
DoSomething(new string[] { "A text line.", "Another line." });
Hi,
Thanks, if u think it's good.
otherwise sorry.
|
|
|
|
|
premkamalg wrote: DoSomething(new string[] { "A text line.", "Another line." });
this is just a different way to declare and initialize a string.
you could reach the same thing this way:
string[] strArr = new string[2];
string[0] = "a text line";
string[1] = "another line";
DoSomething(strArr);
clear now?
|
|
|
|
|
Hi all,
I have the following problem.
i send a sms to multiple cellnumbers by building a variable like so:
string _SmsTo = "http://sms.co.za/eapi/sub/send_sms/2/2.0?username=Whatever&password=BlahBlah&source_Id=1&message=Hi+Ma&msisdn=" + Convert.ToString(_SmsToNumber);
Now Here is the problem...
right after the "&msisdn=" part i allow the user to insert the numbers.... i store it in the Variable "_SmsToNumber", each number separated by a comma.
but now the variable "_SmsToNumber" gets very long... More than 2048 character long. Then when i run the url, it gives me a error... "System.Net.WebException: The Remote server returned an error:(414) Request URl to large."
Now: is there a way to say... if(_SmsToNumber.Length > 2000) then take only the first few numbers and then take only the first few numbers and send and then take another few numbers and send until all numbers a sent?
Sorry i know the questions might have some holes in it but i struggled to put into words what i am looking for.
Thank you in advance...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison(*
|
|
|
|
|
I do not know what you are doing but here I am trying to provide steps that are required.
String tempSmsNumber= "";<br />
while(_SmsToNumber.Length >0)<br />
{<br />
<br />
if (_SmsToNumber.Length > 2000)<br />
{<br />
tempSmsNumber =
_SmsToNumber =
}<br />
else<br />
{<br />
tempSmsNumber = SmsToNumber <br />
}<br />
}<br />
<br />
<br />
}
|
|
|
|
|
thank you.
I'll try and put this to use.
Enjoy ur day.
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Have you considered the variable length of the message parameter (&message=Hi+Ma), and how this is going to affect the remaining length available to append the phone numbers?
The fundamental problem is the limit on the length of a URI (GET), look to see whether this service supports POST, where you will not have a limit.
|
|
|
|
|
What do you mean POST...
Is it possible to just throw a url out there and not care about a response? Because if it is, that might be one option... if that is what you mean by POST?
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
ps...
I am using the following, if this might help...
HttpWebRequest Request;
StreamReader ResponseReader;
Request = ((HttpWebRequest)(WebRequest.Create(_SmsTo)));
ResponseReader = new StreamReader(Request.GetResponse().GetResponseStream());
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
Ha, You were spot on....
i went on the sms providers help files and i came up with this...
"Please remember to URL-encode all parameters passed! Don't reinvent the wheel - rather use one of the countless libraries available. GET requests are allowed, but we strongly recommend using POST requests, especially if submitting a message to a large number of recipients (there can be limits on the size of GET requests)."
BUT how do i use the POST request in C#? and wat does it mean?
Thank You in advance...
"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison
|
|
|
|
|
hello,
I have the values m and n
and according to tham I want to create a graph.
how can I do this in C#?
p.s
I alreday have a the zedGraph component
|
|
|
|
|
Take a bitmap, draw on it and then show it in a picture box.
Bitmap bmp = new Bitmap(500, 500);
int y;
for(int x=0; x<100; x++)
{
y = m * x + n;
bmp.SetPixel(x, y, Color.Black);
}
myPictureBox.Image = bmp;
____________________________________
There is no proof for this sentence.
|
|
|
|
|
I took a look at the ZedGraph component and the article has all of the documentation in it to show how to graph your values.
RTFM
|
|
|
|
|
Hi, I have managed to create an xml file using c# and I can save it to the server no problem but I need to give the client the option of saving it where ever they want to put it so im just wondering if anyone has an idea of how to give the client the option of saving the xml file. Thanks in advance
Tim
|
|
|
|
|
Hi,
Can i know how your client is accessing the file?
Means what type of application is yours??????????
<marquee>nishu
|
|
|
|