Web services run in the IIS process and can only be executed within this process. What you're looking to do is called Remoting but it does not use Web Services.
Rein Hillmann
Posts
-
WEB services -
Unicode questionMultiply the string's length value by 2. However, this is NOT indicitave of the amount of memory used by the string (length prefix etc). To get a C++ representation of what the unicode string, you will probably want to convert the string to an array of short and manipulate it like that. Use the System.Text.Encoding namespace to convert the string to and from a short array.
-
I realy need helpHaving quickly looked at the code.. I changed the following: 1) You don't want to clone the dataset since you won't be updating the one that is linked to the control. Change the line this.DS= addRCDataSet.Clone(); to this.DS= addRCDataSet; 2) I modified the whole button1_click() method to: private void button1_Click(object sender, System.EventArgs e) { object[] values = new object[1]; values[0] = textBox1.Text; DS.Tables["test"].Rows.Add(values); } This just seemed a lot simpler to me - your earlier method was giving me problems.
-
Registry and Eventlog!!!You can read and write to certain areas of the eventlog and registry even if you are not logged in as an administrator. For registry you can always read and write to HKEY-CURRENT-USER. With the event log only administrators have access to the Security Log. Does this help a little?
-
I realy need helpThere are two quick solutions: 1) Add the following line to AddRc(): test.TableName = "test"; 2) OR change the following line in button1_Click() DataTable Dtable = DS.Tables["test"].Copy(); to DataTable Dtable = DS.Tables[0].Copy(); Essentially you're trying to reference a table called test which does not exist (even though the object you created was called test - it does not mean the table name will be set to "test").
-
a FUNCTION 2 CALCULATE SECONDS since time struck 12Assuming you're only using 12 hour clocks and not 24 hour: return (hour*60*60) + (minute*60) + second; If my assumption is incorrect then you simply need to subtract 12 from hour if hour >= 12. As for the second part - call the function twice and then take the absolute value of the difference of the two times.
-
Fastest way to read entire file into memoryAre you doing ifstream::read()? What is the length of the data block you are reading? Try increasing the size of the chunks you read if it's reading too slowly. Reading 1 byte at a time is incredibly slow but reading 1MB at a time will be really fast.
-
ConcurrencyDo a search in SQL Books Online for "transactions". More specifically: begin transaction commit transaction and rollback transaction
-
Inserting Rows...It's not the insert that gets truncated, it's the select from the table. In Query Analyser set the following option: Tools->Options->Results->Maximum Characters Per Column=8000 By the way, you can see how much data is in the column by using the datalength() function.
-
DataTableHere's a statement that uses less overhead since it won't require any kind of table-scan or index lookup: SELECT * FROM Employees WHERE 1=2
-
Empty recordsetselect * from tablename where 1=2
-
best approach for storing login infoStoring (and ESPECIALLY retrieving) a password is never secure. Why would you want to retrieve the password from a file? You should never have to retrieve a password, it should always be given to you by the user.
-
Getting an intersect of a colorYeah, it's pretty much the same thing. (Ra + Rb)/2 = Ri (Ba + Bb)/2 = Bi (Ga + Gb)/2 = Gi It makes sense since if you intersect a red line (255,0,0) with a black line (0,0,0) then the result should be a darker red line (128,0,0)
-
Getting an intersect of a colorTreat each color value as a percentage 0=0%, 255=100% So, a certain color might be (20%, 30%, 90%) in RGB if you want to intersect that with another color (100%, 60%, 0%) the intersection will be the averages: (60%, 45%, 45%) Make sense?
-
Noob sqlSQL is a generic term for a language used to comunicate with a database. That language can vary from various SQL databases. There is no "compiler" as there is in C++. Choose your database software and then learn the associated SQL syntax that goes with the database software. Some Free database software: ---------------------------- MSDE (Microsoft Data Engine) MySQL PostgreSQL Some Non-Free software: ----------------------- Microsoft SQL Server Oracle DB/2 Once you've chosen your database software that you'll need to search online for some SQL primers. There are tons of sites which will cover the basics of SQL programming.
-
Copying data to bytes for socketsAssuming you have a string: string dataToSend = "lotsandlotsandlotsofdata"; Byte[] buffer = System.Text.Encoding.ASCII.GetBytes(dataToSend);
-
How do I use WSAStartup() in C# ??Any reason why you're not using the System.Net.Socket class?
-
Operator overloading with stringsI'm curious. Assuming you could overload this operator, what would you do with the following code: string1 = "12"; string2 = "10"; string3 = "abc"; string3 = string1 + string2 + string3; Would you want this to be "22abc" or "1210abc"? There's a good reason not to do this - it's confusing for developers maintaining your code. Personally, I think you should either create a new class and overload or you should just continue using the Add() method.
-
Thread doesn't start with VS .NET 2003Please post some code.. It'll be easier for us to help you.
-
Changing a form's titleForm1 isn't an object. It's a class. asdf is an object (instance of a class). You need to change the text on asdf, not on Form1 and you can't do that unless you have a reference to asdf. You might need to enumerate all the forms until you find the one you want or you could pass a reference of the form to control.cs so that you can manipulate it later.