Home All Groups Group Topic Archive Search About

.NET Framework

microsoft.public.dotnet.framework
Score GC Question
Cool Guy - 11 Jun 2005 8:10 PM - 14 messages
In the following code, is it possible that foo be garbage collected (and therefore foo_Finished() never gets entered?  I'd imagine so, because there are no references to foo after Main exits.  However, I can't make this ...
Score How to display Image without using PictureBox?
Gravity - 11 Jun 2005 4:47 PM - 4 messages
Hi, As the title indicated, does anyone has any easy solution? I found the I have trouble attaching images to the PictureBox in a separate thread. Basically it just hang there and not even catch it. I am really stuck at there. On the other hand, direct calling the function without ...
Score Why String.Empty is not Constant?
hB - 11 Jun 2005 7:49 AM - 2 messages
Hi. Why String.Empty is not Constant? --- hB ...
Score Microsoft.VisualBasic Removal
Conceptor - 11 Jun 2005 4:09 AM - 5 messages
Hi all, Should I or shouldn't I remove the reference the microsoft.visualbasic reference (project properties/Imports/Microsoft.Visualbasic)?  Yes I know, the reference is still there and visible in IL code, but then at least my IDE ...
Score How to change the dragdrop cursor on the destination
Johnny H - 10 Jun 2005 10:27 PM - 1 message
Dragging a something from ANYONES apllication, my program MUST display a cursor related to the Data type. How to change the cursor FROM MY program? Thanks in advance A customer ...
Score print to file using shellExecute and retrieving printed file name
hsifelbmur - 10 Jun 2005 10:11 PM - 1 message
We are writing an app that automates printing of documents of different types. These documents are printed to PostScript files, not to a printer. The app uses shellExecute with the "printto" verb (and the Process class). This is a server app which requires that everything is ...
Score Capturing headers from Request/Response
octupul - 10 Jun 2005 9:21 PM - 5 messages
Basically I have some code that accesses an Internet Explorer interface directly through COM and the WebBrowserClass.  I have access to all the navigate and alteration functionalites this provides however, when I try to obtain headers I am at a loss.  The only event that seems to ...
Score ConfigurationSettings.GetConfig difference between .NET 1.1 and .NET 2.0 beta 2
Predrag Stanar - 10 Jun 2005 8:36 PM - 4 messages
This piece of code works flawlessly in .NET 1.1 but fails in .NET 2.0 beta 2 with following exception: Unhandled Exception: System.Configuration.ConfigurationErrorsException: An error occurred creating the configuration section handler for customGroup/customSecti on: Could not load type 'System.Configuration.NameValueSectionHandler' from asse ...
Score PictureBox Code Hang at PocketPC Emulator -> Why?
Gravity - 10 Jun 2005 8:31 PM - 1 message
Hi, I am confussed. I am developing an application on PocketPC using C# with VS.net 2003. It run fine on the compiled exe. It always do. However, when run on the emulator, be it PocketPC version 2002 or 2003, it ...
Score XML Storage Queue and Offline Application Block
Rob - 10 Jun 2005 5:13 PM - 1 message
I'd like to have the IsolatedStorageQueue provider in the MS Offline Application Block store a XmlDocument object returned from my web service.  An XmlDocument object is not serializable, so it fails with a "not serializable" exception when it tries to store it in the cache. ...
Score Problem with .net and Strings
Travis Ellis - 10 Jun 2005 4:18 PM - 4 messages
I am having a problem with .net Strings. Encoding ascii = new ASCIIEncoding(); string foo = ascii.GetString( new byte[]{ 0, 0, 0, 0 } ).Trim(); if( foo == "" ) {     Console.WriteLine("Empty");   // This never happens } I have noticed that when you create a string using the null characters ...
Score Excel process remaining
Rob T - 10 Jun 2005 3:59 PM - 3 messages
I have a routine that imports a spreadsheet which normally works fine. However, sometimes I can find excel.exe is still running as a process in the task manager and I manually need to end it.  If I don't kill it, I'm unable ...
Score dynamically growing rows and coloum of a table which have controls
kripa - 10 Jun 2005 2:04 PM - 1 message
i am working on a senario in which coloums will grow dynamically(i.e no fixed no. of coloums.it will depend on data coming from backend) . rows would contain textbox where user can enter data which has to saved on ...
Score Debugger Breaks
jsh02_nova - 10 Jun 2005 1:34 PM - 1 message
What setting causes my VS Debugger to break on exceptions within other assemblies even though I use try catch blocks? ...
Score Returning Byte[] from C++ to C#
capsoncc - 10 Jun 2005 11:13 AM - 2 messages
I am creating a method that I need to return an array of Bytes. How do I return a Byte array in C++ as an output variable? In C# I can do this Calling application (C#) {   byte[] attByteArray=null; ...
Score ClickOnce with Apache and Linux
redneon - 10 Jun 2005 10:13 AM - 1 message
I'm experimenting with the .NET beta 2 ClickOnce deployment. It's very impressive but I can't seem to get it to work with Apache in Linux. It works fine with IIS and I'm sure that I managed to get it to work with ...
Score Send SMS using a GSM modem
Pino - 10 Jun 2005 9:18 AM - 1 message
Hi to all. I would like to send an SMS using a GSM modem. Have you got any reference or example to do this action in .NET? Thanks, Pino. ...
Score Find which machines do NOT have .NET Framework installed
cindy - 9 Jun 2005 11:06 PM - 3 messages
I need to include something in our 200+ users' login scripts that will tell us which machines do not have the .NET Framework installed. Anyone done this before? What file can I look for? TIA........cindy ...
Score CANNOT debug
MrDotNet - 9 Jun 2005 9:19 PM - 5 messages
I copy  My.dll and My.PDB files into bin directory but still I CANNOT debug the code I am geting message box "there is no source Code Availble for the current location" so can you help me how I do debug. ...
Score Calendar - Event listings, large format
Brent - 9 Jun 2005 9:16 PM - 1 message
Hi, Before I start to build this from scratch, wanted to check if there are any good free ones out there that I can add to my site. I want a calendar that displays a large format events calendar, not just a date picker. Ability to ...
Score Microsoft .NET Framework 1.1 Wizards
Soumitra Mondal via .NET 247 - 9 Jun 2005 9:04 PM - 1 message
(Type your message here) Please try to run the Microsoft .NET Framework 1.1 Wizards using another user. It could be possible that some files are not properly registered with the current proflie. If it does not resolve it could be analyzed by taking the memory dump such as AD PLUS. ...
Score How to get Drive Volume Name
Chuck Walters - 9 Jun 2005 8:14 PM - 3 messages
Is there a .net API to get the "Volume Name" of a given drive? ...
Score framework installation issues
JohnMSyrasoft - 9 Jun 2005 7:55 PM - 2 messages
Hi, I'm seeing lots of issues like this logged on the Net but a whole lot of solutions.  I have an XP Pro SP 2 machine that I cannot get the .NET 2.0 Framework installed on.  I'm using the latest dotnetfx.exe from MSDN. ...
Score Find Connection Object
Tom W - 9 Jun 2005 6:33 PM - 4 messages
How can I locate the currently active database connection? I'm writing a class that will be used in an application that will have one connection object. Without passing it the connection, how can I locate it? Tom ...
Score non resizable window forms
ve - 9 Jun 2005 5:06 PM - 5 messages
how do i make the Window.form non resizable? ...
Score USB power reset
Pino - 9 Jun 2005 4:58 PM - 2 messages
Hi to all. I would like to reset the power of an USB device. Are there same methods to do this action in .NET or WMI? I would like to replace the power off state, when I phisically disconnect the PC from the power supply. ...
Score BadImageFormatException with Reflection.Emit
Hermann Scheibe - 9 Jun 2005 4:53 PM - 1 message
Hi NG, How can i find what is wrong with my emit code C#? Scenario: We have C# class library(DEF_I.dll) with interface definitions: pulbic interface I {     public int ZIPCode { get;set;}     ...     .. ...
Score Application dependencies
Todd Bright - 9 Jun 2005 4:25 PM - 2 messages
Is it possible to only replace the EXE of an application without replacing its dependency DLL's (or replace one of the DLL's without replacing anything else)?  When I've tried this before, the application blew chunks until I also ...
Score Enterprise Library - Getting Started in VB?
cara_little - 9 Jun 2005 3:56 PM - 3 messages
Good Morning, I'm trying to get started with the Enterprise Library to evaluate it and recommend to the rest of the developers in the company. However, I'm having a heck of a time getting started and must be missing ...
Score Group IV TIFF image
RichardF - 9 Jun 2005 3:34 PM - 1 message
I have the following function that reads an image from a disk file and returns it as an array of bytes in either JPG or TIFF format. The problem is that when I select TIF it is returning a TIF image with ...
Score SecurityAction RequestOptional, RequestRefuse, & more
David Thielen - 9 Jun 2005 2:41 PM - 6 messages
Hi; I have a DLL that has events that applications can register with. When those delegates fire, my DLL is in the permission call stack. In this case here is where I get confused. If I use SecurityAction.RequestMinimum- then that permission can be used by ...
Score catching an event(VB) raised in Assembly(C#)
Irene - 9 Jun 2005 1:46 PM - 3 messages
I have an Assembly written in C# and its app in VB. In the Assembly an event is raised, and it is consumed by the app. The problem is whenever the event happens, its handler (VB) in the app is ...
Score how to ensure generated xsd classes are marked as serializable ?
desmcc - 9 Jun 2005 1:40 PM - 1 message
Can anyone tell me how I can ensure that all the classes in the class hierarchy generated by the xsd tool are marked as serializable ? - Can i just place some kind of serializable tag in the xsd file ? thanks, Des. ...
Score compilationconfiguration
Martin - 9 Jun 2005 1:16 PM - 2 messages
Hi, I am trying to find out why I am getting a "File or assembly name <Name>, or one of its dependencies, was not found I indeed once made a reference to an assembly "ProgressBar" but this was ...
Score Is there a NumericBox rather than TextBox in C# compact .net
Gravity - 9 Jun 2005 11:51 AM - 5 messages
Hi, As the title indicated, any ideas? Basically I want to have a EditBox to enter network port number. I had using convertion from text to number, but the results messed up with the following codes; Byte[] f_bytePort = System.Text.Encoding.ASCII.GetBytes(textBox_Port.Text); ...
Score Parse error: type ...Gridview cannot be loaded from System.Web
Jaime Conejo - 9 Jun 2005 8:54 AM - 1 message
Hi, under client everything works fine but when i run it under sbs2003 IIS it gives following error: Parser-error message: The type System.Web.UI.WebControls.GridView cannot be loaded from assembly System.Web, Version=1.0.5000.0, Culture=neutral, ...
Score Connected users list
Mircea Pleteriu - 9 Jun 2005 6:53 AM - 2 messages
Hi, How to get the list of the users connected to my system? ...
Score ANN: NLog 0.9 has been released
Jaroslaw Kowalski - 9 Jun 2005 6:30 AM - 1 message
NLog 0.9 has been released! Source, binary and Win32 installer are available for immediate download from: [link] About NLog: NLog is a .NET logging library similar to log4net, designed with simplicity and flexibility in mind. ...
Score Zip file while Chinese or Japanese Characters.
Shrek - 9 Jun 2005 5:11 AM - 6 messages
HELP! I write a C# class which uses J# class java.io.FileOutputStream,java.util.ZipInputStream and so on to do operations on zip file. For example: When I add a file '1.txt' into 'hah.zip',everything goes well. ...
Score Error while authenticating with DirectoryEntry
Gabriel Giraldo - 9 Jun 2005 1:03 AM - 1 message
Hi people, I'm trying to write some authentication code for my Novell Network. Several days ago, the code worked fine, but right now it is throwing the following exception: Unhandled Exception: System.Runtime.InteropServices.COMException (0x80072035): The server is unwilling to process the request ...
Score assembly security/permission question
David Thielen - 9 Jun 2005 12:07 AM - 4 messages
Hi; I have a library DLL and in my AssemblyInfo.cs I want the permissions to say that the dll does not ever call the file dialogs. But I do NOT want to stop other parts of any program that connect to my library from using the file ...
Score Supress message boxes in AxWebBrowser?
Aaron Pfeifer - 8 Jun 2005 11:56 PM - 4 messages
Here's the problem: I've got an AxWebBrowser control on a form that I'm writing in c#.  I have an algorithm which navigates through different pages on the control.  I'd like to be able to supress message boxes that pop up while I'm navigating the ...
Score GetType from custom class library
baffled - 8 Jun 2005 11:09 PM - 3 messages
I'm baffled, please help!!  I have a class library (MyClassLib).  A class in the class library (AClass) is a simple class not derived from anything with basic methods and properties.  I need to be able to get a Type object of the ...
Score [BUG] LoadLibrary fail (sometimes) in the debugger (only)....
Lloyd Dupont - 8 Jun 2005 10:52 PM - 12 messages
I have this very simple program (attached)(~30 lines) which call LoadLibrary to load libraries. I notice that *some* library fail to load in the debuger... ?!?!? In fact I have the sample here: [link] (which ...
Score Pausing and Resuming Threads cause High CPU Utilization
MVB - 8 Jun 2005 8:41 PM - 8 messages
I have implemented Thread.Suspend and Thread.resume for pausing and resuming threads respectively. It works fine,But the only thing that I noticed was,when I suspend my thread,the CPU utilization goes to 99-100% Why would this happen?And is there a workaround for this or is there any ...
Score newbie: RichtextBox
Peter Schmitz - 8 Jun 2005 8:31 PM - 4 messages
Hi, just one question: I placed some code in my RichTextBox's keyPress handler (VB.net), and now I want to know at which current position (index) in my RichTextBox.Text the new char would be inserted. Can anyone help? ...
Score Cannot save file to network: UNC path should have the form \\server\share.
cnathaide - 8 Jun 2005 8:23 PM - 4 messages
I have developed a .NET application using C#. It has been installed at a client site on a Citrix server, and a new version was just released. Now the users inform me that when they try to save files to the ...
Score Alter regex to allow a url to span multiple lines.
recoil@community.nospam - 8 Jun 2005 6:41 PM - 2 messages
(http|ftp|https):\/\/[\w-_]+(\.[\w-_]+)+([\w\-\.,@?^=%&:/~\+#]*[\w\-\@?^=%&/~\+#])? I have the following RegEx which extracts URL's from texts. It does a very good job however i need it to be able to match something like [link] ...
Score Data Access...
Ty Salistean - 8 Jun 2005 6:18 PM - 14 messages
Why can't M$ allow .NET developers to run ANSI standard SQL queries on ADO.NET datatables/datasets (SELECT, INSERT, UPDATE, DELETE)? This will allow other developers to learn ANSI syntax and be able to utilize SQL Server without much learning curve.  I bet there are people out there ...
Score Coloring text
Peter Schmitz - 8 Jun 2005 5:56 PM - 3 messages
Hi, how can I automatically change the color of specific words in my RichTextBox (VB .NET). The feature I want to create is similar to the feature that's included in VS.NET: Some specific keywords are colored. How can this be done? ...
Score Using the thread pool properly.
Jim Kitterman - 8 Jun 2005 4:20 PM - 4 messages
i Currently have a vb.net application that iterates through a selected directory structure.  I have 6 threads running all iterating through different folders and does an insert into sql database. The 7th thread would start sporadically at best sometimes not at all.  I would like to use the ...
Score test outlook express
microsoft - 8 Jun 2005 2:44 PM - 1 message
hi,all: i test my outlook express,sorry ...
Score how to do memory allocation in C# need help
Naveen koul - 8 Jun 2005 12:56 PM - 2 messages
Sir , I am new to c#, I am unable to allocate memory to this structure. can anyone please tellme how can we allocate memory to this strucutre. struct matrix     {         public int row_dim;  ...
Score Client side lifetime of remote object
Kumarajothi C - 8 Jun 2005 11:32 AM - 1 message
Hi All, I have a remote object (MSB), which is hosted on a dotNET NT service. In the onstart method of NT service, i create the Remote object instance and register it to remoting infrastructure using RemotingServices.Marshal API. I ...
Score unexpected termination when calling DLL func from win service ??
Rafi - 8 Jun 2005 11:15 AM - 1 message
hi, I have a C++ DLL with function f1. i am calling this function from vb.net application. when my application run as a windows application, function f1 behaves perfect. when i run the same code as a windows service under local system account, ...
Score .NET Framework 2.0 Beta 2 Configuration Snap in failure
Bruce Ramsey - 8 Jun 2005 10:16 AM - 5 messages
After installing the new Beta 2 .NET 2.0 framework on a Win2k3 (64bit) machine, the Framework 2.0 Configuration MMC won't start, I get the follow message: Snap-in failed to initialize. Name: .NET Framework 2.0 Configuration ...
Score DllImport and Windows Services
Tushar - 8 Jun 2005 10:01 AM - 1 message
(Note follow-up set to microsoft.public.dotnet.myservices only) We have a client-server environment where clients request services from the server via a C/C++ DLL (it is *not* COM based). The DLL has been used by many application including C++ and VB over many years. ...
Score ASP NET Applications with net framework 1.1 and SP4
RE: IIS 5.0 Can not run ASPX pages - 8 Jun 2005 8:19 AM - 1 message
I ran a asp net application on WIN2k Server, IIS 5.0 and net framework 1.1. After installing SP4, the application does not response. No error message and the ASPX page is just pending forever. Running <framework 1.0 path>\aspnet_regiis.exe -s <application path>, make ...
Score Not creating window handle
trialproduct2004 - 8 Jun 2005 5:01 AM - 2 messages
Hi all I am having problem in dot net application. I am getting lots of errors while running this application. But no exact sceanario is found. First error i am getting is 'error in creating window handle'. Which is occuring if i run application continuously for nearly 30 minutes or for ...
Score Obtaining the URL from an Internet Shortcut
Rich S. - 8 Jun 2005 4:06 AM - 2 messages
Hello, How does one use the IUniformResourceLocator interface from C# in order to get the URL that an internet shortcut points to? Is there a specific reference I should add to my project? Thank you very much, Rich ...
Score Password protect ClickOnce site
Sam - 8 Jun 2005 12:29 AM - 1 message
Hi, I would like to allow only authenticated users to download, install, and update my ClickOnce application.  I thought all I'd have todo is simple disallow "anonymous access" to the website on my IIS server, but that breaks ...
Score Window class name
AlexS - 7 Jun 2005 11:49 PM - 5 messages
How can I set class name for my form in .Net? For example, my app main form has class name like WindowsForms10.Window.8.app3 is it possible to change it? Tx Alex ...
Score Mac Moves to Intel - Anything for CLR?
Richard Myers - 7 Jun 2005 11:07 PM - 3 messages
Hello, With Steve Jobs recently confirming the Apples move away from the IBM Power PC chipsets and over to Intel, Im wondering what, if anything, will this mean for the .NET framework and a potential Mac based CLR? On the face of it Im thinking this means very little. With the CLR ...
Score Dynamic SQL generation for the UpdateCommand
John - 7 Jun 2005 9:22 PM - 3 messages
I upgraded the MDAC to 2.8 on a server/system that has been in operation for several months, but now get the following error: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. ...
Score OLEDB 2.8 Problem w/ Dynamic SQL
powelljohnc@johndeere.com - 7 Jun 2005 9:04 PM - 1 message
I upgraded the MDAC to 2.8 on a server/system that has been in operation for several months, but now get the following error: Dynamic SQL generation for the UpdateCommand is not supported against a SelectCommand that does not return any key column information. ...
Score install problem
Reza - 7 Jun 2005 9:03 PM - 1 message
The Install method of my installer class uses my dll which is also installed as part of application. During install I get this error "the specified module could not be found" apparantly becasue installer can't find that dll whereas ...
Score MemoryStream.Write() Offset cannot be zero
Gravity - 7 Jun 2005 8:05 PM - 6 messages
Hi, I am using the MemoryStream class with the member function, Write( ). I found that the 2 parameter, which supposed to control the offset of the destination cannot be zero. As long as it is non zero, like 1, 2 or 3, it ...
Score MSI size dropped dramatically
Michael Jackson - 7 Jun 2005 6:51 PM - 1 message
I've been (re)building my VB.NET 2003 solution for months now, and the MSI created by the setup has always been around 9 mb. I cleaned out some old code and consolidated a few functions, then rebuilt my solution. ...
Score framework redistributable vs languages
kenneth@nospam.nospam - 7 Jun 2005 6:20 PM - 3 messages
BASED ON CREATING INSTALLATIONS FOR AROUND THE WORLD: What is the difference between different versions (english,german,etc) of the v1.1 framwork resdistributable? When creating an installation for your application, where you want to pre-install the framework, does it matter which version you use?   ...
Score out of Memory exception
cmies - 7 Jun 2005 5:57 PM - 12 messages
I hope someone can help. I have an application whose purpose is to suck files into memory and read through them.  These files can't be read sequentially.  This has worked like a charm for over a year... file sizes are anywhere from a few hundred bytes ...
Score What is the PostMessage(to self) equivilent in .NET?
David Thielen - 7 Jun 2005 5:32 PM - 3 messages
Hi; In the windows API you could call PostMessage() to yourself (the window you are in). Is there an equivilent in .NET so I can cause an event in my form to trigger after all events presently in the queue complete? ...
Score SecurityException on GetTempFileName()
David Thielen - 7 Jun 2005 5:24 PM - 16 messages
Hi; This is driving me nuts because it should work. In my AssemblyInfo.cs I have: [assembly:CLSCompliant(false)] [assembly:ComVisible(false)] [assembly:IsolatedStorageFilePermission(SecurityAction.RequestMinimum, UserQuota=1048576)] [assembly:SecurityPermission(SecurityAction.RequestMinimum, UnmanagedCode=true)] [assembly:FileIOPermission(SecurityAction.RequestMinimum, Unrestricted=true)] ...
Score Control.Invoke
Cool Guy - 7 Jun 2005 5:20 PM - 2 messages
If I call Control.Invoke on a worker thread, which thread gets blocked: the worker thread or the main (GUI) thread? ...
Score modal DLL calling
Elisabete de Moraes - 7 Jun 2005 5:10 PM - 3 messages
Hi everyone, I have a .Net dll that instantiates other .Net dll's and win32 dll's, through LoadLibrary and System.Reflection.Assembly namespace. That's working fine. I need .Net dll (caller) to wait till the end of the called function / ...
Score My application object is nothing on a network drive
NICOLAS Julien - 7 Jun 2005 4:03 PM - 7 messages
Hello, I have a dotnet dll file. This dll is to use MS Project by VB. When I am launching my application from a local drive (c:\mylocapp) : no problem The Problem is when I am trying to launch my application from a network ...
Score View Assembly Cache information remotely?
tron9901 - 7 Jun 2005 4:03 PM - 4 messages
In .NET Configuration 1.1 - Assembly Cache, there's a link called "View List of Assemblies in the Assembly Cache." I need to look at that information on several Windows 2000 Advanced Servers. Is there a way I can view this list remotely? Without having to ...
Score Pass Parms to script via Process class
Billy TheKid via .NET 247 - 7 Jun 2005 4:00 PM - 2 messages
Using the Process class I need to pass some parameters to the .vbs file i am Starting Code so far Dim ShellProcess as new Process ShellProcess.StartInfo.FileName = strVBS ShellProcess.StartInfo.UseShellExecute = True ShellProcess.Start() how do I pass parameters to the Start method? ...
Score .NET Memory Problems
Prasad Dannani - 7 Jun 2005 3:46 PM - 5 messages
HI, I am a C#.NET Developer. I created a windows application which is taking too much memory. But my code is calling dispose methods of all objects and assigning null them. I don't know why is it happening After that i tried the GC methods it worked ...
Score performing pre-batch compilation
julio - 7 Jun 2005 2:27 PM - 2 messages
Hi, I need some article about performing pre-batch compilation. Can any help with this topic and find this articles? Tia Julio ...
Score GC.Collect doesn't trigger finalizers?
Conceptor - 7 Jun 2005 2:12 PM - 11 messages
Hi all, I am building a VB.Net app on Framework 1.1 using VS.Net 2003.  I have a special logging *singleton* class that needs to do work once every object in my application has either finalized or been disposed of.  ...
Score GC.Collect doesn't trigger finalizers?
Conceptor - 7 Jun 2005 2:11 PM - 2 messages
Hi all, I am building a VB.Net app on Framework 1.1 using VS.Net 2003.  I have a special logging *singleton* class that needs to do work once every object in my application has either finalized or been disposed of.  ...
Score Runtime Control Of XML Serialization (Elements vs. Attributes)
grwalker - 7 Jun 2005 11:39 AM - 2 messages
I have some classes that have the <Serializable()> attribute applied, which of course by default serializes the class properties as elements. What I would like to do is to be able to override this behavior at runtime to serialize the properties as attributes. ...
Score Install windows service from command line
Brecht Yperman - 7 Jun 2005 11:23 AM - 3 messages
Hi, I'm trying to create an application that's, in normal use, nothing but a simple console application (a server), but can install a service if certain arguments are passed through. (compare with, for instance, mysqld and mysqld --install). ...
Score "double" precision and rounding off issues, please help
Uma Abhyankar - 7 Jun 2005 9:57 AM - 1 message
Hello, We are facing precision issues with addition, multiplication or division of "double" Issue1: ##### The output of 0.1 + 0.2 is not 0.3 It is 0.30000000000000004 How do we tackle this?? Issue2: ##### Minute value: 8.6994833333333332 Case1: From Minutes to Seconds: ...
Score Checking version...
NICOLAS Julien - 7 Jun 2005 8:58 AM - 3 messages
Hi, I need to know if the framework was installed in the computer and after that checking the version of it to be sure that I can use my .net application on the machine. thanks for your help ! JULIEN. ...
Score ASP mail component
AVL - 7 Jun 2005 8:47 AM - 2 messages
Hi, What is ASp mail component? where can i find more info abt it? Is it a freeware or do i need buy it? ...
Score .NET Framework configuration tool in Beta 2
Diego F. - 7 Jun 2005 8:17 AM - 1 message
I've just installed the framework 2.0 Beta 2 in a Windows 2003 Server, but now there are no Configuration tools. The Beta1 had some errors accessing assemblies and I decided try the Beta2, but now there aren't neither .NET ...
Score Curious: static void Main() does not to be public?
Neo The One - 7 Jun 2005 7:40 AM - 2 messages
I just found that program entry point static void Main() does not need to be public! Is that an violation of language infrastructure and runtime security? ...
Score LoadLibrary VS.NET/C#/C problem
Lloyd Dupont - 7 Jun 2005 4:11 AM - 1 message
I'm developing on WIndows with VS.NET. (and, amazingly, GNUstep, an ObjectiveC library). At some stage I do something like (in C# in fact, not in C) char newpath = "PATH=" + /* something like %GNUSTEP_SYS_ROOT%/Tools;%PATH% */ wputenv(newpath); void* lib = LoadLibrary("gnustep-base"); ...
Score PInvoke(ing) & VS.NET problem
Lloyd Dupont - 7 Jun 2005 4:04 AM - 1 message
I have defined in my code: [DllImport(KERNEL32, SetLastError = true, CallingConvention = CallingConvention.Winapi)] public static extern IntPtr LoadLibrary(string libname); [DllImport(LIBC_LIB, EntryPoint = "_wputenv", CallingConvention = CallingConvention.Cdecl)] static extern int WPutenv(IntPtr envvar); And, at the begining of my program, it is my intention to add the path to my ...
Score attribute?
pinetaj - 6 Jun 2005 11:46 PM - 4 messages
This question is about serialization of .NET. Why a class to be serialized should be defined with [Serializable] attribute? Is it just a security concern so that a run-time system(CLI) knows that the class shouldn’t be serialized? Or is there any other reason like a class ...
Score How to use Formatter.Schedule() ?
pinetaj - 6 Jun 2005 8:54 PM - 1 message
Hello, I found schedule() method defined in System.Runtime.Serialization.Formatter. Does anybody know how it can be used? Actually I'm looking for a way to delay actual serialization later but reserve some objects (to be serialized later) in advance. ...
Score TCP Socket not working - Logic issue?
Gravity - 6 Jun 2005 7:19 PM - 10 messages
Hi, I have a TCP server running on my desktop. While another TCP client running on my laptop. Both written in raw C/C++ and they work perfectly fine. Now I am developing socket application using C# on the same laptop as TCP ...
Score Populate DataReader
Roby Eisenbraun Martins - 6 Jun 2005 6:58 PM - 3 messages
Hi,     How can I populate a DataReader without connection or command? or Hpw can I store a lot of data in a better way?     I don't have all the data at once.     Thank you, ...
Score Hash File Stream?
Sebastian Dau - 6 Jun 2005 6:03 PM - 2 messages
Hello, I'm writing a security related application in .NET 1.1 and I wonder how I compute hashes from very large files (up to 1 GB). Does anybody know a good pattern of how to create a stream from a binary ...
Score console.in.peek
mef526 - 6 Jun 2005 4:26 PM - 1 message
I have a console application in vb.net and I want to do a _kbhit() function. I assumed that console.in.peek would do the job, but it hangs up untill there is actually a key to peek at, it doesn't return immediately with a -1 like I ...
Score FrontPage Extensions
Frank Baed via .NET 247 - 6 Jun 2005 3:12 PM - 2 messages
I am creating an ASP.NET Web Application, but I am not using file share, I want to use FrontPage extensions. MS Devel Environ wont let me set up the project because "the project folder can't be opened with FrontPage." I have tried reinstalling FrontPage Extensions and got an error message which says, You must first install IIS 4.0" I looked in Administrative Tools and sure enough my workstation does not have an IIS. What am I missing? What do I need to install to give me IIS 4.0 or greater? ...
Score What is DWORD equivalent in C# .Net?
Gravity - 6 Jun 2005 2:24 PM - 3 messages
Hi, As the title indicated, does anyone know the answer? ...
Score How to return the pointer of int32 in C# .NET?
Gravity - 6 Jun 2005 2:23 PM - 4 messages
Hi, I am a bit shocked that C# got nothing to do with C/C++. Here is what I wanted to do; Int32 f_nSomeValue = 200;  // Supposed to be 4 bytes long in length, right? MemoryStream f_MemoryStream = new MemoryStream(20); ...
Score Save a System.Drawing.Color in the db
Richard Brunet - 6 Jun 2005 2:15 PM - 3 messages
Hi,     I have a DataTable that has a Color type DataColumn. I use OleDbDataAdapter.Update(myTable) to update the db. Is there a place(an event?) where i can do a type conversion from Color to string (or int) so ...
Next »