I have a Windows application written in C# that works with an Access database file.
Furthermore, I use some DataSets in my project that work with this Access database.
Arising from this, I have two questions:
How can I convert the Access database file into an SQL Server database, and
How can I convert the project code (using Access Da...
I'm developing a long running process that hosts remoting objects. Due to design restrictions, I cannot use a Windows Service so the process is a background Forms application. I also cannot use WPF because we are restricted to .Net 2.0. In any case, since there is no guarantee that the background process is running, I want to be able to ...
There question relates to a very specific and common scenario in which a dictionary is being used for on-demand caching of items in a multi-threaded environment. To avoid thread locking it's preferable to test for an existing cache item outside of a sync lock, but if we subsequently have to add an item then that counts as a write to the ...
I am building a server app that copies files using System.IO.File.Copy(...) function. My files can be rather large, therefore, it has a fair chance that if the machine crashes, it happens during copying.
After restarting the service, I should be able to pick up the copy tasks and continue. How can I detect if a copy has been successfull...
Good Afternoon,
I have a an Excel template file - which contains Macros - that I load up in .Net. The excel document is built up on a case by case basis (the same format, but with different data dependent on what the user picks). When the Excel document is loaded up, the Macros have disappeared, does anyone know why and how to resolve t...
I would like to know (using c#) how I can delete files in a certain directory older than 3 months, but I guess the date period could be flexible.
Just to be clear - I am looking for files that are older than 90 days, in other words files created less than 90 days ago should be kept, all others deleted.
...
Our group is primarily Java developers with a few .NET folks like me.
We have a new app that we're considering and are thinking of using .NET on the front-end and Java for the app server.
What is the best way to communicate? Soap can be slow. I don't think that Serialized XML will work. I seem to recall that it is proprietary for .NE...
How can I have an embedded website inside a windows app and also have it so that the windows app would startup the web server and go to the default page of the website?
Can I use the webdev server that comes with .NET framework? Or is there something better out there?
...
Tools: SQL2000/5/8, .NET 3.5, C#
I have come across an application that has two tables. In “code” the tables look like this:
TABLE1 (1——N) TABLE2
So Table1 (T1) has an Id: IdT1 and Table2 (T2) has its id (IdT2) and a foreign key t2.IdT1
This 1.N relationship is code enforced to some degree. There were no FKs in the DB whatsoever. (Wh...
Hey, I'm looking for a library that will triangulate planar polygons with openings.
I've seen a couple other questions that ask about triangulation (see http://stackoverflow.com/questions/406301/polygon-triangulation-with-holes and http://stackoverflow.com/questions/974791/polygon-triangulation), but I'm looking for something that I can...
I am using NPlot charting library to draw several plots illustrating signal fluctuations. The plots are inserted one beneath the other in a flowlayoutpanel1.
The x axis is the time. The y is the value of the signal.
I've added a trackbar at the bottom, along the x axis. When the user moves the trackbar, the value of each signal is dis...
Hi,
i've got this servicedefinition:
[DataContract]
public class Test
{
[DataMember(IsRequired = true)]
public TestArray[] array;
}
[DataContract]
public class TestArray
{
public DateTime? field1;
public string field2;
}
which WCFs Metadataprovider ( http://localhost/Test?wsdl ) generates as:
<xs:complexType name="Ar...
Is there any tool available to profile .Net Thread contention. I have added performance counter for threads for a windows Service which is running slow. It shows around 150 thread contentions. I would like to profile what area of the code is responsible for so much of Thread contentions. Is there any tool available which can point me int...
Hi, I am trying to figure out how to use the Boost.Preprocessor library http://www.boost.org/doc/libs/release/libs/preprocessor to unfold a "generic" type for different specific types. Below I will ask this for a simple point class example. Given:
struct Point##TYPE_SUFFIX_NAME
{
TYPE X;
TYPE Y;
// Other code
};
I want to...
I have a place in my code where I am dynamically adding controls to a Top-Down arranged FlowLayoutPanel. I need the controls to appear in a certain order so what I am doing everytime is clearing the FlowLayoutPanel.Controls collection and then adding each child control in the order I want them to appear. My code does this:
private void ...
Hi
I'm starting up a new project and am thinking of what things I should be logging. The logfile is only intended to help developers find bugs. The use case is that when an unhandled exception is thrown a notification is send to the developer, who have access to the logfile and stacktrace.
What things should I include in the logfile? L...
I'm planning on writing a small program that uses the .NET framework to read disk capacities on remote Windows PCs.
I normally write in C#, so I'd like to stick with this. A number of us in our department need access to this program.
Should I write this as:
a desktop app
an MMC snap-in
an ASP.NET application with a service?
Any...
I have rephrased this question.
When .net objects are exposed to COM Clients through COM iterop, a CCW (COM Callable Wrapper) is created, this sits between the COM Client and the Managed .net object.
In the COM world, objects keep a count of the number of references that other objects have to it. Objects are deleted/freed/collected whe...
Hello,
I'm using a custom MemberShipProvider in a c# project based on the code from: http://www.asp.net/learn/videos/video-189.aspx and for some reason I can't figure out, the method that decrypts the user password to validate the login gives an extra 8 characters in front of the password value (for example: 䝉慣嘗㳪畕锬password).
I use "e...
I'm in the process of having to install/publish the same ClickOnce application on several different servers - I can't have a central site.
Do I have to publish the same app several times with only the InstallUrl changed, or is there another way ? A programatically solution ?
...