I have a program that opens a large binary file, appends a small amount of data to it, and closes the file.
FileStream fs = File.Open( "\\\\s1\\temp\\test.tmp", FileMode.Append, FileAccess.Write, FileShare.None );
fs.Write( data, 0, data.Length );
fs.Close();
If test.tmp is 5MB before this program is run and the data array is 100 by...
I really love the sketchy-ness of the Sketchflow buttons and controls, and would love to use those controls/styles in my own WPF app, can this be done in anyway? Perhaps just reference the Sketchflow binaries?
...
I am looking for a .NET Pop3 Email Library.
I need be able to read from a Pop3 account where I'll copy all the mail to a local database.
A paid library is fine
I found aspnetPop3 do anyone know if this any good
Any help would be a great help
...
Does anyone know where can I find the sample code for Practical .NET2 and C#2? www.practicaldot.net seems to be abandoned.
...
I'm using DataContractSerializer to serialize a class with DataContract and DataMember attributes to an XML file. My class could potentially change later, and thus the format of the serialized files could also change. I'd like to tag the files I'm saving with a version number so I at least know what version each file is from. I'm still d...
I am trying to dynamically create a XML for a webservice but when I test the service I get the following error
XML Parsing Error: no element found
Location: http://stuiis.cms.gre.ac.uk/dd615/aspweb/WatCoursework/Service.asmx/getMusicdetailsSql
Line Number 1, Column 39:
--------------------------------------^
// Make a new XML document...
So here is the code:
interface A<T>
{
T Save();
}
interface B : A<B>
{
}
class BusinessBase<T>
{
T Save();
}
class D<T, U> : BusinessBase<T>
where T : BusinessBase<T>
where U : B<U>
{
new U Save()
{
base.Save(); // this is where the error is because T can't be converted to U
}
}
class Concrete : D...
I'm trying to add functionality to the v8sharp project and I'm having some issues (I'm not very good at C++ so I'm pretty sure the issue lies in my lack of C++ abilities rather than misusing v8.)
Anyone in v8sharp we have this code
v8value.cpp:
v8sharp::V8FunctionWrapper^ V8ValueWrapper::WrapFunction(v8::Handle<v8::Value> value) {
...
What is the difference between the two? Are they supposed to perform one and the same function - data binding? Or are they "apples and oranges" in comparison?
...
i am doing search page in dot net . here we have 11 options like location, key skill,designation,ug etc. user can select any of the 11 i should retrieve the data from the table which is matching to the selected keys. since it has 11 options i dont know how to do all condition
...
Hi
I been trying MS Test manager 2010 and man it sucks bad. It's got huge potential but right now it sucks and is too buggy and crashes on all my development machines every few mins.
So is there any free software what can sort of do it the same thing?
Like what I liked about it is this.
It had a nice check list on the side you woul...
I m reading data from a source as array. a[n]
I need to add one more element to the array.
Once i get the array, i create a new array with capacity n+1 and copy all the elements to the new array and put the new element as the last element of the array.
I can do this.
Is there a better way to do this? especially with Linq?
...
I have a .NET application that polls an Exchange email mailbox for new messages on a scheduled basis. Further processing happens when new messages are found in the email mailbox. I've encountered an issue with the processing when auto reply messages are received in the mailbox [e.g. auto reply rule, or Out of Office messages].
I nee...
Some software I am developing requires the presence of a USB device (which I interact with as a SerialPort, with a USB-to-UART bridge).
Sometimes, after a computer is being restarted from hibernation, the device is not being detected, and I can no longer write to, or read from, the device through its serial port. Having read/write acces...
I'm writing a web site that uses multiple web services with throttle restrictions. I.e. Amazon is 1 request per second, another is 5000/day another is x/minute.
When a user does something, I need to trigger one or more requests to the above services and return the results (to the browser) when available.
The solution need to be flexibl...
Using C#
C# Code
protected void cusCustom_ServerValidate(object sender, ServerValidateEventArgs e)
{
if(e.Value.Length == 8)
e.IsValid = true;
else
e.IsValid = false;
}
Page code
<asp:CustomValidator runat="server" id="cusCustom" controltovalidate="txtoedate" onservervalidate="cusCustom_ServerValidate" errorm...
In C#, WinForms, VS2008, .NET 3.5...
For this code:
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
try
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(fal...
Hi guys!
We often use event handler in C#, just as below:
some_event+=some_event_handler;
Does this happen at compile time or run time? What if the some_event is static member? AFAIK, the some_event contains nothing but the entry address of some_event_handler, and the method address of some_event_handler could be determined at compil...
I have a small vb.net application utilising the FileSystemWatcher hooked up to a UNC path, after an undetermined period of time (< day) events from the watcher are not raised.
Im capturing the file created event and passing the path to a processfile code block:
Private Sub fsWatch1_Created(ByVal sender As Object, ByVal e AsSystem.IO.Fi...
I want to do a deepcopy in IronPython Microsoft Visual Studio 2008, but I get error:
IronPython.Runtime.Exceptions.PythonImportErrorException was unhandled by user code
Message="No module named copy"
Source="IronPython"
StackTrace:
at IronPython.Modules.Builtin.__import__(ICallerContext context, String name, Object globals,...