Answer Questions
AlfredMJones Enforce Constraints and Integrity in DataSet
Good day, In Beta 2 we have a DataSet with 3 related tables and a number of other constraints. The DataSet was generated from a SQL Express database by the Add Data Source wizard. The DataSet editor shows that the constraints and relationships from the Database design were picked up correctly by the wizard. We are instantiating and using this DataSet manually (i.e. no form wizards or form binding). The DataSet itself does not ...Show All
Cordell Lawrence XML-DSig and PKCS#12
Hello! I need to sign a XML file. Format: www.w3.org.2000/09/xmldsig The certificate is stored as "PKCS#12" (I think this is called "softtoken container" ! ). Is everything I need for accessing the certificate and signing the XML inplemented in .NET 2.0 / VS 2005 Are there programming examples with SourceCode available for this Best regards CSharpNewbie22 Hi! I would like to bring this topic up a ...Show All
GUI StreamWriter - get time from server
I am connection to a server via port 13. Yes, 13! I can connect via 80 and read simple pages easily. Now I want to connect and just get the time off the server. Having a little trouble with the line below that has the comment next to it. Have a few tries but not listed here. TcpClient connection = new TcpClient (" www.isp.com ", 13); NetworkStream stream = connection.GetStream(); StreamWriter sw = ...Show All
Guiller OnLoad or some initialization for webservices
I expose a few webmethods. I wish to pre-initialize data BEFORE anyone calls the webmethods. Some initialization needs to be done, some stuff thrown in cache, etc. In a Windows app, I have OnLoad, in a website I have Application_Start in the Global.asax but what can one do when JUST webmethods. Is there some other 'place' I can initialize my data BEFORE any webmethods are called This ...Show All
Andria1974 MDX + .NET Framework 2.0 + VCS Express Edition + Win XP x64
Hi, For any CS code that uses managed D3D : everytime I try to compile an app. w/VCS Express Edition under the 64-bit edition of Win XP, the app. compiles ok but as soon as it is executed an exception message appears telling that the app. is not a real 32-bit native one. As far as I'm concerned, after installing .NET Framework 2.0 under a x64 OS, both versions -32 bits and 64 bits- are installed on the machine. So, it seems that, by d ...Show All
Rvel encoding problem
hi, I'm working on application that retrieves emails from POP mail account, The probleme is this: If have a message with special caracteres like "e e a", all what I get after retrieving the message is " " in the place of these caracters. The message was encoded with "ISO-8895-1" Check this code: //sTemp has a ligne of the message Encoding srcEnc = Encoding.ASCII; byte[] srcData = srcEnc ...Show All
T-C DYNAMICALLY change connections to the MDB?
I am developing a windows app. I load stock price data to a MS-ACCESS database of Stock history which has now exceeded the 2 G limit. I would like to split it into separate MDB s by year. I would like to create a new database in a new folder each time the year rolls and then populate and read the each database using the year to point to the corresponding data. I need to jump back and forth between years to do analysis which crosses year boundrie ...Show All
Leonnuel How to send mail from a Windows Application??
I am attempting to write an application which will send a mail message with an attachment. Here's code: using System; using System.Drawing; using System.Data; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Web; using System.Web.Services; using System.Web.Mail; string filename = "c:\\stuff.xls" MailMessage send = new MailMessage(); send.To = " validmail@mymailserver.com "; s ...Show All
FranckDG Self modifying code in the CLR
Is self modifying code in the CLR possible To be more specific I had previously written a scripting engine for a game project in unmanaged C++. This worked by allocating a buffer big enough to hold the resulting code and then compiling it to x86 instructions using a mini compiler i wrote into memory and then creating a function pointer to the resulting code calling it. Will this work in managed code Or am i better off using IJW ...Show All
Barlet Error "Invalid SQL Statement; expected 'INSERT', 'DELETE', 'PROCEDURE', 'SELECT' or 'UPDATE'"
can someone please help, according to my knowledge this should work... Dim sw As StreamWriter = New StreamWriter("C:\test.doc") Dim sw2 As StreamWriter = New StreamWriter("C:\query.doc") Dim catid As String Dim reader As OleDb.OleDbDataReader Dim comm As New OleDb.OleDbCommand("SELECT * from cat where catid <> 3", conn) If conn.State = ConnectionState.Open Then ...Show All
Niko Pamboukas XmlSerializer or custom serialization?
Hi! I'm currently not sure whether I should use XmlSerializer to save the properties of a class to an xml file or if should just write the file manually with XmlTextWriter. The problem hereby lies in the speed of deserialization. My program will load an undefined number of such files and create instances of the corresponding class at startup. Thus the deserialization operation should take as few time as possible, even if that means writing more ...Show All
Gabriela70026 Form stop responding when fetching data from Stored procedure
I create a form that fetch from Stored Procedure SQL The data itself returns around 3000 records from SQL The problem is when the form begin fetching data the form is not reponding at all the form will responding when the data is finished and put back to the form datagrid Is there any methode to make the form still responding to user command while waiting the data to be finished. I this methode is works i plan to fetch huge data from SAP through ...Show All
resist Input string was not in a correct format
somebody, please could tell me where is mi mistake in this problem I don't understand why is trying to change from string to Int32.. here's the error I am getting.. Any ideas , suggestions thanks in advance Exception Details: System.FormatException: Input string was not in a correct format. Source Error: Line 103: objComm.Parameters.Add(parameterPosition) Line 104: Line 105: objComm.ExecuteNonQuery() 'Execute the UP ...Show All
OneBuckFilms Convert from byte array to float...
I have a 32 bit float represented by four bytes and I need to convert it to a float type, how Thanks, Devin It's actually a lot simpler to just use the BitConverter class which is available on all 3 platforms (1.0 - 2.0). float floatValue = BitConverter.ToSingle(<yourByteArrayGoesHere>); Do a search on BitConverter.ToSingle if you would like specific information from MSDN. ...Show All
David.Dong XSD Validation error
Hi, I have an xsd schema with element definition xsd:integer. When I validate xml against this xsd, the validation succeed with number for example 224774314284064845070339, but when the number is 293409809956581662525034534431949697468, it fails with invalid element according to its datatype. When I try validate with msxml4, it works fine. Has .NET 1.1, 2.0 some bug Thanks for any help. code samples: ----------------xml-------------- ...Show All
