| ANN: Programming C# 2nd Edition (12 replies) |
| microsoft.public.dotnet.general |
| This is a one time announcement that I hope will be of interest to this list... I'm pleased and proud to announce that the second edition of Programming C# is now in stores. This is a full update, in which all the known problems have been fixed, and all the code has been tested with Release 1 of .NET. You can read about this book and review a sample chapter on my web site (http://www.LibertyAssoci... |
|
| System event logging (2 replies) |
| microsoft.public.dotnet.general |
| Are the classes provided that handle system event logging? Thanks, Tony |
|
| AppDomain.UnhandledException (3 replies) |
| microsoft.public.dotnet.general |
| I can't seem to successfully to add by exception handler with the code: Public Sub New() MyBase.New() AddHandler AppDomain.CurrentDomain.UnhandledException, AddressOf MyUnhandledExceptionEventHandler InitializeComponent() In Debug Configuration, this works, although the debugger catches the unhandled exception first. But it then lets me continue, and then I execute my event handler. However, In Re... |
|
| Get current CPU load (2 replies) |
| microsoft.public.dotnet.general |
| Is there a way to obtain the current CPU load on the machine (% of CPU usage)? Thanks, Tony |
|
| how do I convert an image created by GetThumbnail method into a byte array? (4 replies) |
| microsoft.public.dotnet.general |
| From: Larry Bilodeau [mailto:Larry@froghaven.com] Sent: Wednesday, February 27, 2002 9:31 AM To: sgyuanonline@microsoft.com Subject: Re: Help Please to Creating Images in .net that will work with SQL I looked over the referenced page and tried to apply it but I still come up short on making this work. Sorry to be so dense. I now understand that I need to store the image as a byte array. What I now... |
|
| ShellExecute (2 replies) |
| microsoft.public.dotnet.general |
| Hi, im having problems with the shell execute command.... the code is compiling but is not actually openning the application [DllImport("shell32.dll")] public static extern int ShellExecute(int hWnd, string lpszOp, string lpszFile, string lpszParams, string lpszDir,int FsShowCmd); static void Main(string[] args) { int hWnd; long noth; ShellExecute(0, "OPEN", @"D:\WINNT\NOTEPAD.EXE", null, null, 0)... |
|
| Debugging of custom HttpHandler from Visual Studio .NET (2 replies) |
| microsoft.public.dotnet.general |
| I have written a sample HttpHandler, and have been able to invoke if from IE, and get some sample HTML output out. I'm trying to set up VS.NET to debug it, but I created the project as a C# dll, so it want some sort of starting point (makes sense). I tried to copy the debug settings from a ASP.NET and a Web Service project with no success. Does anybody know how to tell VS.NET that this is like a A... |
|
| maybe u can help me? (3 replies) |
| microsoft.public.dotnet.general |
| cannot convert from 'System::String gc *' to 'wchar t' i am upset :O( |
|
| .NET terminology (4 replies) |
| microsoft.public.dotnet.general |
| I was wondering if there is anyone out there who can CLEARLY define each of these .NET terms and explain how they are related to each other: 1) Project 2) Component 3) Assembly 4) Namespace 5) Application domain I have not been able to find any information that ties all of these items together and explains the relationships between them. Thanks! |
|
| TcpClient and NetworkStream problems (4 replies) |
| microsoft.public.dotnet.general |
| I'm trying to monkey around with these classes for whatever reason and here is my read function: Private Function ReadStreamBuffer() As String Dim bytes(mNNTPConnection.ReceiveBufferSize) As Byte Dim returnBuffer As String Dim returnRead As String ' ' Read the stream buffer until no more data is available ' Do Try mNNTPStream.Read(bytes, 0, CInt(mNNTPConnection.ReceiveBufferSize)) returnBuffer Enc... |
|
| ?No more MDB files? Just .XML files? (10 replies) |
| microsoft.public.dotnet.general |
| Hi I've written quite a few little desktop apps in the past using VB6 to read/write data from/to Access .MDB files *** No sever involved, all data resides on the desktop machine *** Now it's time to reprogram my dinosaur brain into C# and .Net I'm wondering if .MDB files are no longer a technology of choice for use in desktop apps like I used to do with VB6 MDB? Things that make me wonder: 1) The ... |
|
| HELP CONNECTING - Using SQL Server with .net framework and ASP (4 replies) |
| microsoft.public.dotnet.general |
| I have tried all three of these and still get "The page can not be displayed" This database was set up by the installation of .NET framework. I think I have the datasource correct as it is the name I see when looking at the sql server. Is there just a guest user ID I can use? Do I look at users? I am running Windows 2000 Professional (NOT SERVER). % set conn server.createobject("ADODB.Connection")... |
|
| OpenFileDialog directories? (2 replies) |
| microsoft.public.dotnet.general |
| Hello. I'd like to use OpenFileDialog to select a directory. How can I do that? |
|
| objects are destroyed when not in use? (5 replies) |
| microsoft.public.dotnet.general |
| Hi, It seems like that objects that are not in use for a long period of time are being destroyed by the dotnet garbage collector. Is there a way to prevent this? some sort of a setting, or my observation are just incorrect? Thanks, jdado |
|
| Suspending/Resuming context during execution (11 replies) |
| microsoft.public.dotnet.general |
| I want to simulate a threaded environment, where each thread gets potentially up to a couple of seconds of timeslice time, and where thread pre empting occurs at controlled locations only. I don't want the overhead of actually having a thread so instead I want to round robin a set of objects that represent a job of somekind, and just let them have some CPU time (a timeslice), and repeat that until... |
|
| Problem with serializing (possible bug?) (2 replies) |
| microsoft.public.dotnet.general |
| Hy, this weekend I wanted to implement serialization for my program and stumbled about the following problem. I have a bunch of objects which hold data. These classes have events to alert someone that their contained data has been changed. I have drawing objects which have themselfes registered for the change events in the data objects. The data objects themselfes are organazied in a kind of tree.... |
|
| This is addressed to developers and help authors at Microsoft. (5 replies) |
| microsoft.public.dotnet.general |
| I have been a VB programmer since the days of version 3.0 and have followed the product enthusiastically ever since. I'm currenltly using VS.NET (full release version on Win2K SP2 January 2002 MSDN) which I have been looking forward to a very great deal as it promises to be a major step forward in software development. However, I do have a question... When do you plan on finishing this product? Th... |
|
| Binding to existing WORD object (4 replies) |
| microsoft.public.dotnet.general |
| Hi, I am automating WORD but donr want to have more versions of the word.exe running that required. To this end, if WORD is already running I want to bind to that process rather than create a new one. How can I do this? Thanks for any help on this one. Nick. |
|
| Making an activex dll (COM) with VB .NET (4 replies) |
| microsoft.public.dotnet.general |
| Is it still possible to make an ActiveX DLL with VB .NET or do I have to stick with VB6 to do this ? Christian |
|
| Crystal for .NET - requiring parm values at runtime w/linked subreport (2 replies) |
| microsoft.public.dotnet.general |
| I am having a problem getting a linked subreport to work in Crystal Reports for .NET. I am using MSSqlServer for the database, and stored procs are used for the data source in both the main report and the subreport. I followed documentation examples when setting up the subreport (and checked the on demand checkbox), but when I try to test it, I'm getting an error saying: "CrystalDecisions.CrystalR... |
|
| MultiParameter Hyperlink (4 replies) |
| microsoft.public.dotnet.general |
| I am try to generate a multiparameter hyperlink from data displayed in a datagrid. Does anyone know of a way to include two colums, i,e. Last Name and First Name to generate a DataNavigateUrlFormatString like Detail.aspx? last {0}&first {0} thanks.. |
|
| C# and System.net Error (2 replies) |
| microsoft.public.dotnet.general |
| When running a C# Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. Compiler Error Message: CS0246: The type or namespace name 'WebRequestFactory' could not be found (are you missing a using directive or an assembly reference?) Source Error: Line 21: Lin... |
|
| Help Please to Creating Images in .net that will work with SQL (4 replies) |
| microsoft.public.dotnet.general |
| I'm trying to create a MSSQL data table of filenames and thumbnails and I'm having some problems. The error I get is: An unhandled exception of type 'System.InvalidCastException' occurred in system.data.dll Additional information: Object must implement IConvertible. I've narrowed down the root cause as being associated with the image I'm trying to store. I looked up the IConvertible but I'm having... |
|
| Server.Execute method raises "View state is invalid..." exception (2 replies) |
| microsoft.public.dotnet.general |
| Hi A trivial question, I'm sure... I'm using Server.Execute method for executing another aspx page, but server returns only error "The View State is invalid for this page and might be corrupted." I have two pages Test.asp and Test2.aspx (all using C#). After posting the Test.aspx i will to call Server.Execute("Test2.aspx"). But this only raises "The View..." exception. I tried to set EnableViewSta... |
|
| System.IO.FileNotFoundException (4 replies) |
| microsoft.public.dotnet.general |
| HI, I got this problem that it's telling me that cannot find find a certain file. But the file is there and all the pathes seem to be right, I don't understand what the problem is I even uninstalled and reistalled my VS but the same problem. and it wasn't giving me this problem with the previous version of VS .NET I would apriciate any suggestions, thanks, Endri |
|