I was considering using UnmanagedMemoryStream rather than MemoryStream for dealing with incoming (and perhaps outgoing?) packets in a network server. What I hope to achieve is less copying of values, and if possible, avoid copying to the heap (too much).
For example, for an incoming packet, one could do:
fixed (byte* p = &data) // wher...
I'm currently attempting to build a WCF service that uses a basicHttpBinding and requires authentication. I intended to use SSL for the project, and since I want it to be accessible from a SmartDevice project, I configured the binding to use TransportWithMessageCredential as security mode.
However, this setting is not available in the ...
I have a namespace extension and when the user does certain action we display a progress bar in a separate window (Ideally we should use the Windows Explorer built in progress indicator in the address bar, but I'm told that there isn't an API for that from my component vendor). I using the Windows Code Pack 1.1 to get a .NET API.
This p...
Hi,
I want to have a trigger when the select item in a WPF ListView is about the change. So a "Changing" trigger. This is not available by default.
Is there a way to do this?
I need this because my ListView is bound to a list of Client. When the client selection changes, I want to ask the user if he wants to store his changes, but when ...
I have the following scenario:
Modify function takes an input object, and calls the stored procedure to update the database. The stored procedure changes some columns, namely updated date, and updated by, among others and returns them back in a form of the dataset.
Now, I need to change these properties on the object. However, the update...
I have a Windows Mobile application that I send to my client as a CAB file and then he installs it to 20 mobile devices. This application communicates with web service and has config.ini file in the Program Files/app_name/ folder to store the web service url. The drawback of the current approach is that client can change WS url only afte...
Hello,
I have an application that uses a Mutex for cross process synchronization of a block of code. This mechanism works great for the applications current needs. In the worst case I have noticed that about 6 threads can backup on the Mutex. It takes about 2-3 seconds to execute the synchronized code block.
I just received a new re...
I am building some instrumentation in to an application that is heavily threaded. We have been running in to various memory issues. One of the features I would like to add to the instrumentation is to track how much memory has been allocated per thread.
I've done some research and I can see where this can be done in unmanaged C++ code...
I am making an application to change the the resolution of that game, to the requested resolution.
StreamReader reader = new StreamReader(@"C:\Documents and Settings\ARTech\Bureaublad\PersistentSymbols.ini");//Reads the file.
string content = reader.ReadToEnd();//Puts the content of the file, into a variable.
reader.Close();
string repl...
Say, I build a dynamic map in WPF.
I need to represent in this map locations(say, cities).
The representation of a city is simple: a dot (circle or image) and the text.
Both text and dot image are customizable.
What would you recommend using as a CityControl in WPF?
Examples:
A UserControl having an <Ellipse>(or picture) and <...
I need to put double quotes in configuration property Property1
<Seection Name Propety1="" .../>
...
I'm writing a new C# application which will make heavy use of a configuration file. My requirements are:
Human readable
Name value pairs
Hierarchical
[Updatable by application]
Um, to translate: I want to define an object and a set of configuration parameters associated with that object. The configuration parameters may be name va...
Hi
I am working on a C# .net app for windows mobile.
Problem is, I am a web developer, this is the first ever for me to write code for a desktop app, and to make things worse, I even have to work using the CF.
I have this problem: I need to use buttons (System.Windows.Forms.Button) but I don't know if I can use a nice picture for the b...
Hi every body,
I know that my question has been asked before but I didn't found any answer suitable for my case or even works.
My problem is: I need to embed a Flash movie inside WPF application, then I need to use Externalinterface - or whatever the way is - to integrate through this flash movie - I'm working on Visual Studio 2008!
I fo...
Is there a desktop .NET-based equivalent of the <optgroup> functionality for comboboxes on html pages?
...
I looked around for this, but all the examples I could find used XAML, which made the solution too static. Here is what I want to do:
I would like to populate a DataGrid's columns, rows and attributes from an XML file to be specified at run time. Nothing about the DataGrid's attributes can be fixed; the XML drives it down to the last ...
Whats the point of HttpUtility.UrlDecode when .net already decodes the querystring when you request it.
Is this a hangover from classic ASP or am I missing something?
...
Hello all!
I'm currently following the great tutorial on Geekpedia to create my own Chat Client and Chat Server.
Connecting the clients to the server works fine but I'm experiencing a few issues with the text being displayed in the chat log.
The first message that is displayed is in the Server window then the incoming connections are ...
i just want to get the result of an sql query into a string variable.how is it possible in c#
(.net) wihout using datatables.
query like this
Select Routine_name, Routine_Definition
From Information_Schema.Routines
Where Routine_Name = 'sp_sudh'
...
Is there a component to allow us previewing Outlook email messages in a custom .NET application?
...