microsoft.public.dotnet.framework Archive - February 2003
Post a message to this list
Messages
Page: 123
Synchronized File Access w/ .NET (5 replies)
microsoft.public.dotnet.framework
What's the best way to provide synchronized access to a file in .NET? I'd like to have many processes writing to one file, but I want them to be serialized and block until it's their turn... So many API's. Not sure which one is "best practice."
Converting ASCII codes to CHAR?! (3 replies)
microsoft.public.dotnet.framework
Hi, I have a problem when trying to convert ASCII codes to it s corresponding character. I ve tried this in both MSV C 6.0 and C# .NET. The common problem is that it won t work to convert some ASCII codes like 1 29 for example. The ASCII code of 1 should have a matching happy smile face as a character (☺, like this), but instead I get a rectangle for all those low value ASCII codes. Is there...
Resources Files (3 replies)
microsoft.public.dotnet.framework
Hi Friends Can anybody give me some details of what is .resx files in .Net and how to use it? Any sample code would be better than thousand line of description : ) Thanks in Advance Makarand
Help with App. to parse eml files and send (3 replies)
microsoft.public.dotnet.framework
Im trying to write a program (using .NET) that will search a directory for eml files(ive read that these are simply txt files), parse the contents of the files to get fields like the email, subject and main. Then send it using those fields. And then remove the file so its not sent again. What would be the best way to go about this? Are there any classes that may help parse the eml files? Also ive ...
Dynamic code generation (2 replies)
microsoft.public.dotnet.framework
Wrote code generator using codedom to wrapper stored procedure's in function calls. Want to be able to generate class implementing interface generated. Can't find anywhere in object model where you can specify that dynamically generated class implements an interface.
MTS and .NET (4 replies)
microsoft.public.dotnet.framework
A .NET object is comprised of a completely different structure than a COM object. Therefore: [1] Can you still use MTS with .NET objects? [2] If yes to Q[1], do you configure it in MTS differently? [3] If no to Q[1], is there another application I need to use for object pooling? Thanks!
read write namevaluecollection (2 replies)
microsoft.public.dotnet.framework
Hi Are there any classes i can use to easy read and write namevaluecollections into a file?
Web Services (5 replies)
microsoft.public.dotnet.framework
Dear all I heared a lot about web services, and i want to know what is the web services? thanks a lot
Current Thread Id (2 replies)
microsoft.public.dotnet.framework
Anyone who knows how to get it via .Net ?
Using Process.Start together with Installshield and Acrobat Reader unattended installation (2 replies)
microsoft.public.dotnet.framework
Hi! I have a problem with creating a process using System.Diagnostics.ProcessStartInfo and System.Diagnostics.Process I'm using the following code: public static void RunProcess2(string path,string executable,string args,bool hidden) { path path.TrimEnd('\\') '\\'; ProcessStartInfo pInfo new ProcessStartInfo(path executable,args); pInfo.WorkingDirectory path; pInfo.UseShellExecute false; if (hidde...
datetime datatype comparisons (2 replies)
microsoft.public.dotnet.framework
I am comparing two .net datetimes, aTime EventLogEntry.generatedTime, and the debugger says they both read #1/30/2003 1:30:28# yet the comparison returns false. What's happening?
SQL Connection Pooling (3 replies)
microsoft.public.dotnet.framework
Hi All, I have this problem with SQL connection pooling and broken connections: I have a simple .NET web application, which opens a connection to SQL server, executes a SQL statement and closes the connection. It's very simple textbook code using SqlConnection and SqlCommand objects. When I make HTTP requests everything works fine as it should. Now I restart the SQL server and try to make some mor...
Problems recving SSDP UDP Multicasts in C# App (2 replies)
microsoft.public.dotnet.framework
I am using the UdpClient class in a sample C# console app to join a multicast group(239.255.255.250) for messages on Port 1900. I am trying to read all message/announcement sent via SSDP protocol for the UPnP Internet Gateway device. My code is an exact copy of the sample in MSDN (http://msdn.microsoft.com/library/default.asp? url /library/en us/cpguide/html/cpconusingudpservices.asp), except for ...
Poor performance with binary serializer (2 replies)
microsoft.public.dotnet.framework
Hi all, I'm trying to serialize a fairly large object tree using the Binary formatter, and the performance is not acceptable: FileStream fs new FileStream( Workspace.FullpathName, FileMode.Create, FileAccess.Write ) ; BinaryFormatter bf new BinaryFormatter(); bf.Serialize( fs, Workspace ); fs.Close(); The Workspace object above contains a total of several tens of thousands of classes, and is about...
Please help! Stupid question (3 replies)
microsoft.public.dotnet.framework
Here's the code: Bitmap bitmap (Bitmap)Bitmap.FromFile(Server.MapPath("map.bmp")); bitmap.SetPixel(i,j,Color.Red); bitmap.Save("map.gif",ImageFormat.Gif); It's supposed to read a bmp, add a single pixel, and then save it as a gif. On the last line, I get "A generic error occurred in GDI ." Any suggestions?
StreamReader Text file input 'corrupting' standard ANSI characters? (2 replies)
microsoft.public.dotnet.framework
Hi, I am concerned about the odd behaviour of the StreamReader. On reading a standard ANSI input file produced by notepad some of the data is corrupted, hence on writing out the output file does not match. I know that this is because of Unicode and ASCII conversion but can't seem to resolve it sensibly! The input file contains pound signs and dollar signs and these are effectively corrupted and ou...
Using framework to install non .NET services (2 replies)
microsoft.public.dotnet.framework
I need to write a .NET program that installs a Windows service that wasn't developed using .NET. All I have is the .exe file. The framework doesn't seem to support this. The framework's only interface to the SCM seems to be the clases ServiceInstaller and ServiceProcessInstaller, but neither of these seems to have a property I can use to set the path to the service executable file. I assume they c...
System.IO.IOException (2 replies)
microsoft.public.dotnet.framework
I'm working with XML file IO using the XMLDocument object and it's 'Load' and 'Save' methods for reading and writing to the file system. When I'm writing the newly created files to the file system using the 'Save' method, I'm simply passing the absolute path and file name. I've observed in the exception logs the 'System.IO.IOException' exception stating: 'The process cannot access the file [xml fi...
threading, events, and winforms (3 replies)
microsoft.public.dotnet.framework
I am writing a library that has no gui. There is one main class (Client) that users of the library will attach to events of. There is another class (Connection) that Client contains which spawns a seperate thread to send and receive information over the net continuously for the lifetime of the Client class. When the Connection receives data, it notifies Client and Client parses it and raises event...
Security.Exception (2 replies)
microsoft.public.dotnet.framework
(sorry for the cross post!) Hi! I've just finished developing an application in .NET VB for encrypting WindowsMedia files with DRM. The application is tested on my local developing machine and works fine all the way. So, I make a deployment and intend to test it before I ship the application to the customer and get an exception when making the following call down to the filesystem: wmvFiles Direct...
mySQL (3 replies)
microsoft.public.dotnet.framework
how to connect mySql server to a vb.net application? tryed with a normal connection to a sql, but i got the answer "System error" is this the correct procedure? thanks :) Console.WriteLine("Initializing mySql DB connection...") DB New SqlConnection() DB.ConnectionString "data source LOCALHOST" 'also with a complete connection string :\ Console.WriteLine("[debug] " & DB.State.ToString) DB.Open()
GetLowerBound method in Array: What's need? (2 replies)
microsoft.public.dotnet.framework
We have two methods in Array class: GetUpperBound and GetLowerBound Does existence of GetLowerBound method mean we can have the lower bound of array other that zero (0)? If yes how do we set that? Thanks, Sanjay
problem with Com and Framework v1.1 (4 replies)
microsoft.public.dotnet.framework
I have upgraded my VStudio to the Final Beta. Now have a problem with this code: Dim VisualStudio As DTEClass VisualStudio New EnvDTE.DTEClass This throws an Com interop exeception: COM object with CLSID {3C9CFE1E 389F 4118 9FAD 365385190329} is either not valid or not registered. This is the regisrty enrty for envDTE.DTEClass. The envdte.dll is in the framework v1.1 directory. I registered it wit...
EventLog class (5 replies)
microsoft.public.dotnet.framework
Hi, Can anyone tell me why this code always writes to the Application log instead of MYTESTLOG? if (!System.Diagnostics.EventLog.SourceExists ("MYTESTING")) { System.Diagnostics.EventLog.CreateEventSource ("MYTESTING", "MYTESTLOG"); } EventLog customLog new EventLog(); customLog.Source "MYTESTING"; customLog.WriteEntry("this is a test message"); thanks, Doug
Environmental Variables (3 replies)
microsoft.public.dotnet.framework
I need to find out what unit of measurement the system is using. Whether it is Metric or Imperial (US).
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
 
 Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com