It appears in C# you can not override the post decrement operator?
I was "reflectoring" and ran across some code that reflector translated to decimal.op_Decrement(x) and I was trying to figure out whether it meant --x or x--.
public struct IntWrapper
{
public static IntWrapper operator --(IntWrapper value)
{
return new...
Does anyone know of a Fortran compiler that can be used inside a Windows Azure project? I am ultimately looking to take a fortran code I have upgraded with MPI and get it to run inside Azure.
I can run the code already on EC2 but integrating a web ui has been klunky as there are a lot of moving parts - IIS, mpi nodes and the like that ...
I am deriving from ApplicationSettingsBase to store our users settings, however when the build number gets incremented the app uses a new settings folder, and so the old settings are lost. What is an appropriate way to deal with the situation of shared settings over different build numbers.
...
I want simple encryption and decryption of password in C#. how to save the password in encrypted format in database and retrieve as original format by decryption, kindly anyone help with sample code.
...
I need to give access to the IIS user to a pfx certificate. The website is running under the App Pool under some user AppPoolUser. IIS automatically has the user name "IIS APPPOOL\AppPoolUser" and this is what we need to give access when we use aspnet_regiis -ga .
However, when i use winhttpcertcfg to give access to the user "IIS APPPOO...
This is by far the most complex software I've built and now it seems to be running out of memory at some point. I haven't done extensive testing yet, because I'm a bit lost how I should approach the problem at hand.
HandleCount: 277
NonpagedSystemMemorySize: 48136
PagedMemorySize: 1898590208
PagedSystemMemorySize: 189036
PeakPagedMemory...
I am at a stage of building a wcf service for my application that will provide the products.. I have, the domain model and persistence layer under the application.
For the service I will also need a similar domain model and persistence layer. I don't want to duplicate things and I don't want to also share libraries and couple the applic...
I want to open a small box , when my application starts, where user can enter their name , and I want that name to use in my application.
I am using Windows Form Application and C#.
I am vary new to this, any idea how to implement this.
...
Hi,
I have 2 tables in database. Formula and Ingredient.
They have many-to-many relationship, so I have an association table in the db thats called FormulaIngredient.
I am using C#.net and SQL server 2005.
My FormulaIngredient table has ID, formulaID, ingredientID, ingredientAmount.
For this extra ingredientAmount field I created a a...
Possible Duplicate:
Library Recommendation: C++ HTML Parser
Hi all...
Can any provide me a sample link which can parse all the images and .css files assosiated with web page...
i know the logic.. but i m failing in one or the other possibilities...
i am not getting any documentation that how web-browser download the entire webp...
Looking for a way to programticaly dump the call stack and a .net Win Forms app when ever a section of code is hit. Its something I haven't come across before but will save me some debug time.
Update : Forgot to add , how much overhead would this add to the application , i.e. would it slow it down considerably.
...
I am trying to log the contents of an http request, using an IHttpModule like so:
public class LoggingModule : IHttpModule
{
public void Init(HttpApplication context)
{
context.BeginRequest += ContextBeginRequest;
}
private void ContextBeginRequest(object sender, EventArgs e)
{
var request = ((HttpAp...
I have a collision resolution method in my physics engine, that goes like this:
Vector2 n1pos = n1.NonLinearSpace != null ? n1.NonLinearPosition : n1.Position;
Vector2 n2pos = n2.NonLinearSpace != null ? n2.NonLinearPosition : n2.Position;
Vector2 posDiff = n2pos - n1pos;
Vector2 posDiffNormal = posDiff;
posDiffNormal.Normalize();
float...
hi
this is Ramesh
i have winforms, i trying to copy the file one location to another,if same file name is there i need to overwrite, but i got error like "Cannot create a file when that file already exists."
but my query is i want to overwite what should i do?
but i'm trying File.copy and File.move method not in use same error come ...
Hello there,
maybe anyone have ideas of how to display Chinese characters in the ListView control ?
...
Hi,
I'm not very experienced in C#/.NET [WebMethod] (note: I am on Mono) and I wonder how could I use the JQuery.form plutin.
I have a Service.asmx and Service.asmx.cs with methods I call with standard jQuery AJAX call.
In the form "action" attribute I put link to the Service (/blah/blah/Service.asmx/myMethod). Which firm and/or attr...
In C# when deubgging threads for example, you can see each thread's ID.
But I couldn't find a way to get that same thread, programmatically. And I couldn't even get the id of the current thread (in the properties of the Thread.currentThread).
So I wonder how does Visual Studio get the ids of the threads, and if there's a way to get the h...
I have a line like the following in my code:
potentialCollisionsX.Intersect(potentialCollisionsY).Distinct().ToList();
Which, through profiling, i have determined that it is eating approximately 56 percent of my time. I need to figure out how to provide a efficient implementation. I tried
List<Extent> probableCollisions = ne...
NOTE I have asked the related question: How to combine DataTrigger and Trigger?
I think I need to combine an EventTrigger and a DataTrigger to achieve what I'm after:
when an item appears in my ListBox, it should flash for a few moments
if the item is 'Critical' then it should remain highlighted
Currently I have a DataTemplate t...
Hi...
I am building an application with C#.
I managed to turn this into a single instance application by checking if the same process is already running.
Process[] pname = Process.GetProcessesByName("SwapCardDesktop");
if (pname.Length < 2)
{
// Launch Application
}
I intend to have another fun...