microsoft.public.dotnet.framework.sdk Archive - February 2002
Post a message to this list
Messages
Page: 1
Counter.nextvalue only returning 0 instead of real value under ASP.NET (2 replies)
microsoft.public.dotnet.framework.sdk
Hi all, I have a problem in getting back values for e.g. the CPU Load when using the performancecounter and its nextvalue function. I am using the Visual Studio.NET Beta 2 on an Windows 2000 Advanced Server but tested this also in the combination Visual Studio.NET Beta 2 on an Windows XP Pro. I am using the following code: Private Sub Page Load(ByVal sender As System.Object, ByVal e As System.Even...
Help! Final Release SDK (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I've downloaded the Final Release of the .NET Framework SDK.When I try to install it, an error comes as This is not a valid Windows NT Application.Help.. Thanx in Advance, Deepa
Serializing/Deserializing an object to a MemoryStream through the SoapFormatter (not happening) (2 replies)
microsoft.public.dotnet.framework.sdk
I serialize an object to a memory stream through the SoapFormatter and place the resulting XML text into the clipboard like so: MemoryStream memento new MemoryStream(); new SoapFormatter().Serialize( memento, action ); // action is the object being serialized memento.Seek (0, SeekOrigin.Begin); Clipboard.SetDataObject (new StreamReader (memento).ReadToEnd (), false); At this point I can bring up a...
Counter-nextvalue only returning 0 instead of real value under ASPdotNET (2 replies)
microsoft.public.dotnet.framework.sdk
Please answer to: ralf.stoetzel@axense.com Hi all, I have a problem in getting back values for e.g. the CPU Load when using the performancecounter and its nextvalue function. I am using the Visual Studio.NET Beta 2 on an Windows 2000 Advanced Server but tested this also in the combination Visual Studio.NET Beta 2 on an Windows XP Pro. I am using the following code: Private Sub Page Load(ByVal send...
How to get the JapaneseCalendar... (3 replies)
microsoft.public.dotnet.framework.sdk
Hi All, I created a culture info like the following, but I'm always getting a GregorianCalendar... CultureInfo cinfo new CultureInfo( "ja JP" ); Outputting the Calendar.class name returned by this culture isn't correct. Would appreciate some light on this... Thanks, moses
How to Get Tick Count in csharp? (2 replies)
microsoft.public.dotnet.framework.sdk
The code passed in VC6: srand(UINT(GetTickCount()*time(NULL))); int r rand(); How to implement it in csharp?
Why .net so slow (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I just installed the .net sdk and tried the follow small code from the document. To my supprise, it took at least 10 sec to compile and 15 sec to run. anyone know what's wrong? thanks Imports System Public Module modmain ' Main is the application's entry point. Sub Main() ' Write text to the console. Console.WriteLine ("Hello World using Visual Basic!") End Sub End Module
how do i list all open files using the .NET framework? (2 replies)
microsoft.public.dotnet.framework.sdk
How do I list all the files open on a system, along with the credentials of the user who has opened each file, using the .NET framework? I have tried fiddling with the FileSystemWatcher class, but that only lets me tell work out the name of a file when it gets opened. Basically I'm looking to do something like the "Open Files" section of the Computer Management MMS snap in. Thanks, Andrew
How does it work-CLR-ISAPI-behind the scene (4 replies)
microsoft.public.dotnet.framework.sdk
Hi, How does the Web Application work? What happens behind the scene? The way I would think it works is that all the page behind classes, user control classes are compiled into the application DLL. The aspx ISAPI filter looks for the DLL in the "bin" directory of the virtual root and loads it. Of course! the 46(or whatever) web controls that MS defines are displayed nicely on the client pages (ex....
Interpolation Mode (2 replies)
microsoft.public.dotnet.framework.sdk
I am having trouble setting an Interpolation mode to an image. Can somebody please provide an idea where I might be going wrong. When I use the following code I am not able to set the interpolation mode. Please help. //Create a New BitMap and Graphics Instance Bitmap newBitmap new Bitmap (destWidth,destHeight); Graphics bmp Graphics.FromImage (newBitmap); //Background White SolidBrush xBrush new S...
How to check the state of the Shift, Ctrl and Alt keys in a mouseevent. (5 replies)
microsoft.public.dotnet.framework.sdk
Hi, Does anybody know how I can check the state of the Shift, Ctrl and Alt keys in a MouseEvent (MouseDown, MouseUp, MouseMove). They all get a MouseEventArg passed. But none of the MouseEventArgs give info on the state of these keys. TIA Stefan
How to access NTFS streams? (7 replies)
microsoft.public.dotnet.framework.sdk
On Beta 2 I was able to access NTFS streams. I.e., File.Exists("d:\\filename:AFP Resource") returned true. :AFP Resource, :AFP AfpInfo and :Comments are 3 streams where Mac File Services store Macintosh file forks. The file I check is on NTFS partition and has given stream (I checked in command prompt with 'more filename:AFP Resource') However, in final version of SDK I cannot access NTFS streams....
Character Encoding and ASCII data from Web (5 replies)
microsoft.public.dotnet.framework.sdk
Hi all, Having some problems understanding decoding of character data properly for display when retrieved from the Web in ASCII format. THe scenario is this: Downloading some HTML contentt from the Web via HttpWebRequest. The stream returns the data correctly as ASCII data which I can write out to file with the correct data. The data contains some upper ASCII chars, but the HTML pages are not enco...
how to use an assembly reference? (2 replies)
microsoft.public.dotnet.framework.sdk
Using this command to compile the c# file , display following error message, Why? : csc Snarf.cs Snarf.cs 10,20 : error cs0246: The type or namespace name 'WebRequestFactory' could not be found (are you missing a using directive or an assembly references?) Snarf.cs file content: using System; using System.IO; using System.Net; using System.Text; class Snarf { static void Main(string[] args) { WebR...
Getting path info (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am currently writing a C# dll . I am trying to get the path of the directory where the dll is located in code within the dll in order to load an XSLT file which I will deploy in the same directory as the dll. After a good search of the SDK Reference, I can't find a way to do so. Any ideas would be appreciated. Vic.
Security Permission Exceptions Under WindowsXP Pro (2 replies)
microsoft.public.dotnet.framework.sdk
I am having trouble getting .NET compiled code to run under WindowsXP Pro because of Security Permission Exceptions. Any code that I write and compile with the .NET Framework (I don't have VS.NET) does not have permission to run privileged operations under Windows XP Pro. It's as if it were downloaded over the internet, but its compiled and run locally. The same code runs fine under Windows2000. I...
Passport Integration Into Active Directory (4 replies)
microsoft.public.dotnet.framework.sdk
Has anybody done this? We have set up a test server running .NET Enterprise Server Beta 3 and want to integrate passport into our active directory. I have found this on the .NET Server site: http://www.microsoft.com/windows.netserver/techinfo/overview/overview6.asp ".NET Passport Integration Beta 3 integrates Microsoft .NET Passport as a supported authentication mechanism for IIS 6.0. This integra...
? Decoding the WM_COPYDATA message in .NET ? (4 replies)
microsoft.public.dotnet.framework.sdk
I would like to decode the WM COPYDATA message in .NET. I know how to set up the MessageFilter but need to know how to decode the "m.LParam" I thnk it should be cast to the struct: typedef struct tagCOPYDATASTRUCT { ULONG PTR dwData; DWORD cbData; PVOID lpData; } COPYDATASTRUCT, *PCOPYDATASTRUCT; public class TestMessageFilter : IMessageFilter { public bool PreFilterMessage(ref Message m) { // WM ...
Ad
Need Dot Net Interview Questions?
Ask ExamGuru, Inc. for advice and help on Passing .Net Interviews
.Net Projects
Best-of-breed application framework for .NET projects, developed by ExamGuru, Inc. and ExamGuru IT
Free .net Help
Commission ExamGuru, Inc. and his team for your next bespoke software project
FogBUGZ
The only bug tracking system carefully crafted with one goal in mind: helping teams create great software.
Awesome Tools
If you don't know about these, you're missing out... IT Certification Questions
IT Interview Questions
Free Oracle 10g Training
MCSE Boortcamp
Cisco Study Guides
Cheap Study Guides
Exact Questions
Dot Net Interview Questions
Oracle OCP
Cheap Travel
Designer Perfumes - Wholesale Prices
Free Programming Tutorials
 
ExamGuru IT Solutions - .Net Guru is owned and operated by ExamGuru, Inc., the man behind .Net Guru. If you're in the market for bespoke software or software consultancy, why not get him and his highly trained team to help? - www.examguru.net/ITCertification
 Copyright © ExamGuru, Inc. 2001-2006
Contact Us - Terms of Use - Privacy Policy - www.dot-net-guru.com - www.examguru.net - www.oraclesource.net - www.itinterviews.net - www.examguru.net/ITCertification