all groups > dotnet framework > december 2007
Filter by week: 1 2 3 4 5
C# (float) cast is costly for speed if not used appropriately
Posted by Arnie at 12/31/2007 11:46:41 AM
Folks,
We ran into a pretty significant performance penalty when casting floats.
We've identified a code workaround that we wanted to pass along but also was
wondering if others had experience with this and if there is a better
solution.
-jeff
.....
I'd like to share findings r... more >>
WaitForSingleObject in .net
Posted by Nathan Smith at 12/31/2007 7:44:07 AM
Hi,
I'm a Win32 programmer trying to develop a vb.net app, and I'm trying to
find out what the vb.net equivalent method is for WaitForSingleObject. I
need a way to wait for an object for a specified timeout. Since I'm used to
Win32, naturally I would use WaitForSingleObject, but this is not... more >>
private array member still public...?
Posted by bern11 at 12/30/2007 11:28:14 PM
I have a class with a 3 point array which I want to protect through
encapsulation. Unfortunately, the following does not do what I want:
private PointF[] vtx = new PointF[3];
public PointF[] Vtx
{
get { return vtx; }
set
{
... more >>
Active host IP address
Posted by Neil at 12/29/2007 8:17:06 PM
Hi,
I have a c# app that binds to a port on the host machine.
How do I determine the IP address of the active network interface?
On a PC with multiple NICs I can obtain a list of IP addresses as follows:-
string hostName = Dns.GetHostName();
IPHostEntry local = Dns.GetHostByName(hostName);
... more >>
Help! All my text has turned into lines of boxes!
Posted by harmony at 12/29/2007 2:33:01 PM
Can someone help me? I am writing a book and saved it last night on my pen
drive and when I opened it this morning all the text had turned into lines of
boxes. I can't figure out how to change it back. I tried all this but it
did NOT work:
If all the text appears garbled or as question marks, ... more >>
Plugin Architecture
Posted by kris at 12/28/2007 9:46:34 AM
hello all
i am trying to make a pluggable application which can use plugin dll
savailable at some particular folder. i have searched for samples on the net
and have found some but am not very clear. if any of you can help me with an
easy example that would help me a lot.
thanks and regar... more >>
ExecXmlConfig: Error 0x800401f3: failed to initialize xml utilities
Posted by alexandis@gmail.com at 12/28/2007 8:04:37 AM
Trying to install Framework 3.5 on WinXP home edition. Fails!
Tried to uninstall MSXML 6.0 - framework installation downloaded it
from internet, installed into system32 folder and then - again the
same error..
Please, help - i need to install visual studio, but can't...
P.S. IIS is uninstal... more >>
Dot net 1.1 in Dot net 2.0
Posted by Nishanth at 12/28/2007 3:14:54 AM
I have a code that is compiled and runs in VS 2003, which i believe
runs 1.1 frameworks,
I want to know if we can do any of the following
1. I want to compile the code in 1.1 framework but run on 2.0
framework in the same machine, as I believe it is not possible to
configure VS 2003 to run ... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
interface vb.net
Posted by Philippe at 12/28/2007 2:08:01 AM
I look for the code in vb.net to interface with a regulated, and in the
middle of the screen an area that represents a white area of design... more >>
Link ENUM to a ComboBox
Posted by bern11 at 12/27/2007 11:25:21 PM
How do you link an numeration to a combobox? I have an enumeration
which I want to appear as the data source in the combo-box. Do I have
to skip the enumeration and create a bindable list object instead?... more >>
cannot get into hotmail
Posted by riley999 at 12/27/2007 3:18:02 PM
When I try to open my email after clicking on hotmail, I get a blank screen
and it says "done" at the bottom. This is the second day this has happened.
I recently did a spyware and virus scan and things look ok there. This is
the first time I have not been able to open my email. I have XP a... more >>
How can i make Refresh(rerender) on control in wpf?
Posted by Poly at 12/27/2007 1:53:48 PM
I have custom control, with my own render function, but i don't know how
to make my control to Refresh itself?... more >>
.NET Framework versions
Posted by fourstardave at 12/27/2007 6:31:00 AM
My control panel says I not only have .NET 3.0 but also STILL have 2.0, 1.1
and security fix for 1.1. I want to remove all but, of course, the 3.0 as the
rest (especially 2.0) takes up a lot of space. BUT is this safe? or am I
missing something?
HELP!
john ...with thanks in advance... more >>
Use of idisposable interface.
Posted by Archana at 12/26/2007 11:06:17 PM
Hi all,
Can anyone tell me exact use of idisposable interface.
I read that to release unmanages resources its better to implement
idisposable interface and call its dispose method.
But what if without implementating interface idisposable i write
method dispose and call that method to rele... more >>
ConfigurationSettings.AppSettings always returns null
Posted by Andrew Hayes at 12/26/2007 10:46:00 PM
I'm not using One Touch or OpenNetCF, so none of the workarounds offered by
those search results work.
What I do have is a .NET 1.1 EXE which runs as a service on a machine
without IIS, and it used to work fine until I had to install .NET 2.0 because
of another application being installed. ... more >>
UDP Server scalability question
Posted by Ron Skufca at 12/26/2007 6:38:00 PM
I am implementing a UDP server to retrieve and process GPS coordinates from a
client application installed in various vehicles. Right now there are around
10 UDP clients sending data with that figure expected to grow to hundreds in
the future. The basic architecture is as follows:
1.) Clien... more >>
using System.Net and System.XML Question
Posted by newscorrespondent@charter.net at 12/26/2007 3:41:35 AM
My XML knowledge is extreemly limited but learning not quite fast enough!
I am getting some XML back from the USPS web service as a string
<?xml version="1.0"?>
<ZipCodeLookupResponse><Address ID="0"><Address2>6406 IVY
LN</Address2><City>GREENBELT</City><State>MD</State><Zip5>20770</Zip5><... more >>
BeginInvoke without EndInvoke allowed?
Posted by Norman Diamond at 12/25/2007 5:09:57 PM
BeginInvoke returns an IAsyncResult, but in cases where the caller doesn't
care and couldn't do anything even if it did care, I don't assign the
returned value and assumed it would be garbage-collected.
Some bloggers say that this pattern leaks resources.
MSDN doesn't seem to see a problem... more >>
Restarting windows
Posted by Alexander Vasilevsky at 12/24/2007 9:19:46 PM
How can I do it in NET?
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
... more >>
Sending mail using Timer control in Global.asax
Posted by Manoj at 12/24/2007 3:31:01 AM
Hi Everyone,
System.timers.timer control is triggering every minute and it is
updating the application variable. But i am not able to send a mail when it
triggers.
please see the code below (Global.asax):
Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
... more >>
MVC Framework - Routing
Posted by Chris Marsh at 12/23/2007 9:04:34 PM
All
I've just stated playing with the MVC framework included in the ASP .NET
Extensions release, but I'm hving trouble with the default settings.
I have created a default ASP .NET MVC Web Application, which includes a
default controller (HomeController) and two default views (Index and Abo... more >>
Version Question
Posted by Wayne at 12/22/2007 10:08:34 PM
I'm New to using .net and have downloaded and installed the 2005 Visual
Studio Express applications.
I currently have .net 1.1 & 2.0 framworks installed and am thinking of
downloading and installing the .net 3.0 framework. Is it advisable to
install to 2.0 sdk first? Do they all operate an... more >>
Problem Installing .Net Framework 3 or 3.5
Posted by Ralph Tomaccio at 12/21/2007 2:58:00 PM
I recently downloaded new software and in order to install it, .Net Framework
3.0 is required, which was part of the installer. During the installation
process it presented a window that said "Microsoft .Net Framework has
encountered a problem during setup. Setup did not complete properly."
... more >>
HttpWebRequest
Posted by Arne Garvander at 12/21/2007 11:56:00 AM
I am making a HttpWebRequest. In my reponse stream I get an object tag.
How can I instanciate that object?
--
Arne Garvander
Certified Geek
Professional Data Dude... more >>
Query DHCP via WMI via C#?
Posted by coconet at 12/21/2007 11:16:03 AM
I would like to see a .NET Framework 3.5 or 2.0 example of how to
query the DHCP server using WMI to list all current clients and lease
begin and end datetimes. I want to make a simple web page that shows
this information.
Thanks.
... more >>
How OS diffentiates COM dll and assembly??
Posted by Esha at 12/21/2007 9:24:00 AM
How OS diffentiates COM dll and assembly??... more >>
How to calculate the difference between 2 dates in days, months and years
Posted by Alexander Vasilevsky at 12/20/2007 9:13:34 PM
How to calculate the difference between 2 dates in days, months and years?
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
... more >>
Zooming UI in WPF?
Posted by henon at 12/20/2007 3:46:57 PM
Dear WPF specialists!
I am currently using Piccolo.NET as a ZUI (zooming user interface)
Toolkit. The problem with it is, that I need to implement lots of GUI
elements by myself. WPF seems to be very I very new to WPF and I don't
know if it is worth the effort to dig in so deep just to know if... more >>
what are the disadvantages of reflection??
Posted by Esha at 12/20/2007 9:53:03 AM
I have used reflection to dynamically invoke methods and properties of the
classes(business logic)(each class has more than 20 prop's and methods...),
Entire application is designed using core values of reflection. Now i want to
implement the same in client's environment. Will this leads to pe... more >>
How .net webservice is better than J2ee webservice
Posted by Esha at 12/20/2007 9:45:02 AM
How can i recommend client that .net webservices are better than J2ee
webservices... more >>
DLL Path
Posted by jlnm at 12/20/2007 9:37:18 AM
Not sure if this is the correct area, but nothing else was more
appropriate. I have class libraries that may or may not load dlls via
reflection. The definition of how to load these resides in a
file.config.xml (but not the dll). Because the libraries are
ubiquitous, they can be GACd (preferr... more >>
BindingList and ArgumentOutOfRange when bound to DataGridView
Posted by Jim Balo at 12/19/2007 11:24:31 PM
Hi,
When I bind a BindingList<> to a DataGridView and then call RemoveAt(n) on
it, I get ArgumentOutOfRange. Could someone explain why?
Sample:
public partial class TestForm2 : Form
{
private BindingList<Person> _personList = new BindingList<Person>();
public... more >>
puzzled in Application manifest
Posted by Jeremy at 12/19/2007 4:56:21 PM
Got from MSDN that there's an element - assemblyIdentity in the application
manifest which describes and uniquely identifies the application owning this
application manifest.
What I'm puzzled is following attributes with this element:
1- processorArchitecture (optional), which specifies th... more >>
Need Telnet client Library for .Net
Posted by Alexander Vasilevsky at 12/19/2007 3:42:06 PM
Need Telnet client Library for .Net.
http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas
discount
... more >>
EnumWindows, VB.Net
Posted by Zamdrist at 12/19/2007 1:35:50 PM
I know that a callback function can be used to run the EnumWindows
function of WIn32 API in VB.Net.
My question is however...is there a strictly VB.Net way of doing this,
not using a callback function and the Win32 API?
i.e. What is the .Net *way*...or is there one?
Thanks... more >>
Type 'List' is not defined
Posted by Steve-o at 12/19/2007 9:16:34 AM
Hello,
I have a asp.net application that works fine locally, but when I try
and deploy it, it breaks with the error
Type 'List' is not defined
on the line
Public allFields As List(Of FormField) = New List(Of FormField)
I have imported generics Imports System.Collections.Generic
I ha... more >>
visual studio
Posted by dixitpuja3@gmail.com at 12/19/2007 8:44:38 AM
i am very nw user of visual studio. i am trying to install visual
studio in my laptop . i have tried several times but there is always
some problem or the other. i woud like to to give me a good link where
i can install visual studio 2008 and list of all the components which
is needed to install... more >>
Coder un serveur HTTP en DotNet 2.0 ( C#)
Posted by aaa.aaa at 12/19/2007 6:42:48 AM
Bonjour,
Je voudrais savoir si avec le DotNet framework 2.0, il serait possible
d'écrire une application windows service qui incorporait un serveur
HTTTP "embedded"( via code) sans passer par le serveur web IIS en local.
Le but de l'application serait de consommer des messages SOAP sur HTT... more >>
Installation problems on Win2K
Posted by Anil Gupte at 12/18/2007 5:07:39 PM
We are trying to install the .Net 2.0 framework on a Windows 2000 Pro
machine and it keeps kicking us out saying Windows Installer 3.0 is not
installed. However, even after we installed Windows Installer 3.0 it
continues to give the same message. We tried reinstalling Windows Installer
3.0... more >>
.NET Runtime Event ID: 1023
Posted by jas6062 at 12/18/2007 2:30:01 PM
Every time I run a .net application I receive the error box that pops up and
says the application has encountered a problem and needs to close. I receive
an Event ID: 1023 in the Application log from the source .NET Runtime with
the description ".NET Runtime version 2.0.50727.1433 - Fatal Exe... more >>
Creating a web setup project in .net 3.5 that targets to .net 2.0
Posted by Pooja at 12/18/2007 12:35:01 PM
Hi,
I have my 2.0 web application running in VS 2008. I added a web setup
project to the same solution and selected the template while creating the
project as: .Net Framework 2.0. After creating the .msi, I tried running it
on a different machine, which has .net framework 2.0. It prompts t... more >>
C++ vs CSharp vs VB benchmarks
Posted by tlicious@gmail.com at 12/17/2007 9:29:23 PM
I created two benchmark applications. One does a discrete Fourier
transform on a data series and the other is an implementation of
quicksort. Before entering the main section where all the work is
getting done, I save the start time using their respective tick count
function. When the work is co... more >>
About System.Process of .NET
Posted by Benny Lam at 12/17/2007 5:26:01 PM
Hi,
I have a question about System.Process of .NET in C#...
in this code:
static void Main(string[] args)
{
string filename = args[0];
Process p = new Process();
p.StartInfo.FileName =filename;
p.StartInfo.UseShellExecut... more >>
when hwnd is created ?
Posted by shark at 12/17/2007 12:13:31 PM
Hi,
My question is, when exactly window is being created? Let's assume that we
have user control placed on any form. Form's contructor create user control
and adds it to its controls collection. But when exactly this window is
created? When form window is created ?
I thought that it's crea... more >>
Assembly Binding and Visual Studio Projects
Posted by Chris Marsh at 12/17/2007 12:12:21 PM
All
I'm still grappling with assembly binding - hopefully I'll grok it soon :)
I create a strong named assembly. I add a reference to this assembly to a
project in Visual Studio. When I view properties for the assembly reference
in Visual Studio, I am informed (correctly) that the assembly... more >>
Weird double parsing
Posted by Jimmy at 12/17/2007 4:21:01 AM
Hi!
Simply put, the following code:
bool systemOk = true;
for (int i=0; i<10000; i++)
{
double s = double.Parse("-606,11");
if (!s.ToString("0.00").Equals("-606,11"))
{
systemOk = false;
Console.WriteLine("On iteration #{0}. '606,11' was parsed as {1}", i, s);
}
}
if (s... more >>
Type Safe Units of Temperature
Posted by Jeff Louie at 12/15/2007 11:10:30 PM
Here is a type safe unit of temperature that can be used to enforce type
safety at compile time.
http://www.geocities.com/jeff_louie/OOP/oop38.htm
Regards,
Jeff
*** Sent via Developersdex http://www.developersdex.com ***... more >>
High defintion photos
Posted by ascliff at 12/15/2007 5:53:01 AM
How to convert normal digital photos to high definition on Windows XP? I
need to change them so I can enter a competition. Is this possible... more >>
Extended TreeNode
Posted by Hakan Ugur at 12/14/2007 5:10:27 PM
Hi All,
I got a treeview object. I extended its TreeNodes to ExTreeNode and then
added ExTreeNode to Treeview control and binded to screen. And then, when I
try to read treeview it returns TreeNode instead of ExTreeNode. When I try
to cast to ExTreeNode, it throws Invalid Cast Exception.
H... more >>
Garbage collection
Posted by Alan T at 12/14/2007 3:00:41 PM
What is the frequency the garbage collector to clear the non-referenced
memory?
eg. every minute?
... more >>
|