microsoft.public.dotnet.framework.sdk
Up to: Discussion Lists

  • RSS Syndication
  • Post a new message to this list...
    Latest Discussions Archive
    order of execution of page_load in a base and derived classes (15 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hi, i have a class that is derived from System.Web.UI.Page, and this is the class i use in my application as PageBase. all other page classes are deriverd from my PageBase instead of the original System.Web.UI.Page in order to have common checks in the page base. i make securirty checks in the page base page load event. if the security fails, i can do whatever i want before the "real" / derived pa...
    System.Diagnostics.StackTrace and Exceptions (8 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I am creating a custom exception that derives from ApplicationException to automatically capture additional information that is not included in the base Exception class. One of the pieces of information I am wanting to capture is a more complete call stack than the one provided by the StackTrace property in the base Exception class. By "more complete", I mean two things: 1) Include the entire call...
    Reading/altering an .xml document (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hey guys I'm fairly new to .NET and am trying to do the following: Read in one ..xml document, selectively remove and/or change certain nodes within it, then save the results in a second document. For instance, if I have: a name "a" b name "b" miscattr "blah" c name "c1"/ c name "c2"/ /b /a I want to convert that into: a name "a" b name "b" miscattr "blah" c name "c3"/ c name "c4"/ c name "c5"/ /b...
    Reflection pass by ref abnormal behavior (3 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    hi, I am trying to call a method from a .net class dynamically and I am passing a string reference to the method. Below is a sample of what I am doing. Somehow the value of the parameter passed is not being updated. The wierd thing is that if I change the variable type to Integer, it works. using System; using System.Reflection; using System.Collections; namespace ReflectionTest { public class M {...
    How to read .PDB (Program debug database) files using Visual C# (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I have loaded an assembly using Assembly.Load[] (reflection) and a method named "MyMethod" in this assembly. I want to know the .cd or .vb filename and the line number on which this method is being declared, as VS.NET uses the .PDB files to read this information while debugging. Thanks in Advance. Saurabh Verma Microsoft Visual C# MVP Posted by a user from .NET 247 (http://www.dotnet247.com/) Id M...
    how do I make use of dt_dll/dt_dll2 (6 replies)
    microsoft.public.dotnet.framework.sdk
    Hi, I'm running windows 2000 and I'm trying to use the dt dll or dt dll2.dll as it comes with the Microsoft SDK feb 2003 samples.... (I just did an nmake to the two directory to build the .dll ) this is to be able to debug the calls between App, winsock and the LSP (LSP is also my modified version of the sample included in the same sdk) but the document says how to add code or modify the dt dll bu...
    help me with my understanding of WSPRecv/From (5 replies)
    microsoft.public.dotnet.framework.sdk
    I understand that LSP resides between the Wsock32.dll and TCP.sys... so if the sequence to send is the following App Wsock32.dll LSP TCP.sys send WSASend WSPSend lpwspsend then shouldn't the sequence to receive be the following TCP.sys LSP WSock32.dll App what function called inside LSP by the TCP.sys to notify LSP of a receipt of packet?? when I track the functions, I see WSPRecv and WSPRecvFrom ...
    how to post the data to the browser from LSP (how does browser works) (3 replies)
    microsoft.public.dotnet.framework.sdk
    Hi, I have made some modification to the lsp sample from microsoft... I'm having difficulty with giving the incoming data from my LSP to the browser (IE). I'm trying to underestand how does browser works... the communication channel, what format it expects and all that...I guess this is necessary in order to be able to solve this problem... I have no issue with a pure TCP based application with re...
    is it possible to build the microsoft sample LSP in a VC++ env? (3 replies)
    microsoft.public.dotnet.framework.sdk
    Hi All I like to build the sample LSP included withing the microsoft platform sdk feb 2003 samples in a Microsoft Visual C env so I can build the .bsc files.... is it possible? I build it with nmake and it works in microsoft tools but when build it in VC it gives me 69 errors..... could it be done? how? thanks in advance.
    SIP/RTP/RTCP analyzer tool?! (7 replies)
    microsoft.public.dotnet.framework.sdk
    Dear All I'm looking for a free and simple to use easy to install video/audio player with the capability to track and analyze SIP/RTP/RTCP between two computers.... does Microsoft provide such tools? if yes, how/where can I get it? if no, do you know of any in priticular that you can refer me to? I did my search, still working on, but haven't been able to come across a good one yet... Appreciate y...
    No option to create a Pocket PC 2003 app. (2 replies)
    microsoft.public.dotnet.framework.sdk
    I am running win xp VS .NET 2003 Pro Trial Have installed eMbedded C and SP4 PPC2003 SDK.msi When I choose to create a smart device app I only have the option for WinCE or PPC 2002. I have a PPC 2003 enabeled Dell Axim synched to this computer with AS 3.7.1 abd can also run the emulator but show no option for PPC 2003. Also when I choose to "Connect to device" I see no 2003 option either. What hav...
    Iterating through Global Assembly Cache (GAC) ... (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hello, Can anyone explain whether I can programmatically iterate through Global Assembly Cache (GAC) and discover the assemblies that support the certain interface? I know that I can discover the assemblies that support the certain interface located in specified (let say plug in) directory, but I can't find any way to iterate through GAC. Please help. Thanks.
    Ascii -> UTF8 and Excel trouble (2 replies)
    microsoft.public.dotnet.framework.sdk
    I'm having trouble with an ascii character... ....getting turned into ... Â ....when I write it to a file and open in Excel. It looks fine in notepad, but excel mucks it up. I can only guess it's a Ascii to UTF8 problem. Does anyone have any idea, or perhaps a lesson on strings they'd like to share? Thanks, Chad
    How to specify the App.config file for an independent c# program (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    As we know, a App.config file can be specified in a C# project in the .Net IDE. However, how to specify the App.config file for a C# program independent of any C# project? For example, a.cs is such a C# program that it can only be compiled by the following command line under Windows console: c: csc a.cs Seek for your guide.
    creating my own shortcuts in .net (3 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Is there a way to create windows shortcuts (.lnk files) via the .net framework? I have only found a way to do this with the scripting host DLL and I do not want to have to redistribute this with my application. Thanks!
    How to specify App.config file for a project-independent C# progra (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    As we know, a App.config file can be specified in a C# project in the .Net IDE. However, how to specify the App.config file for a C# program independent of any C# project? For example, a.cs is such a C# program that it can only be compiled by the following command line under Windows console: c: csc a.cs Seek for your guide.
    BITS, DOT NET framework and Visual C++ 6 (2 replies)
    microsoft.public.dotnet.framework.sdk
    Does BITS (Background Intelligent Transfer Service) 1.5 require Dot Net framework on the client side. From what I have read it seems like Bits 2.0 needs the dot net framework but Bits 1.5 does not. I am trying to write a wrapper for BITS(Background Intelligent Transfer Service) to use in our VB 6 applications. At first I thought about shelling out using bitsadmin.exe utility that comes with Bits 1...
    How to convert String to WCHAR ? (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    How can I convert a String to a WCHAR array? Here is basically the code I'm trying to execute (in C ) but the casting from Char* WCHAR* does not work: ////////////////////////////////////////////////////// #include windows.h #using mscorlib.dll using namespace System; int main(int argc, char *argv[]) { String *s S"this is a string"; Char cArr[] s ToCharArray(0,s Length); WCHAR *wcArr (WCHAR*)&cArr...
    Windows Media Services, H.323 and Video streaming in general (2 replies)
    microsoft.public.dotnet.framework.sdk
    Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of technologies, among them WMP, RealMedia, H.323 and XviD (not sure if it is suitable for streaming even) . I would like to seek the advice of those experts on the following questions, 1) What is the best ...
    Identifying "System" assemblies in a stack trace (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hi, I am using the StackTrace class to loop through the entire stack trace of my application. I am doing this to check my calling assemblies for some security purposes. But I have a problem now. I don't want to check on "system" assemblies (like System.Windows.Forms, etc.). I have to stop looping through the stack trace the moment I enter into the "system" area. And I don't want to check by name (...
    ConvertTypeLibToAssembly and oleaut32.dll (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I am attempting to write a program, in C#, that converts some COM DLLs to Interop DLLs (following the instructions in http://msdn.microsoft.com/library/default.asp?url /library/en us/cpref/html/frlrfSystemRuntimeInteropServicesTypeLibConverterClassConvertTypeLibToAssemblyTopic.asp). However, when I compile their code fragment, I get the following error : "error CS0234: The type or namespace name '...
    tlbimp problem (2 replies)
    microsoft.public.dotnet.framework.sdk
    Hi, I am trying to generate RCW PIAs for my COM dlls. One of my DLLs fail with the error message: TlbImp error: System.Runtime.InteropServices.COMException Element not found. I am using this command line on the visual studio command line prompt: tlbimp /primary /nologo /asmversion:3.6.0.1 /strictref /out:Metis.Team.Interop.Services.Core.dll /ref:Metis.Team.Interop.Interfaces.ITeamServer.dll /names...
    How to abort a Console.ReadLine operation (3 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hello everybody, is there any way to interrupt a Console.ReadLine operation ? I have a server application running as a console application with a remoting interface. One thread is waiting for commands entered at the console. If the application is shutdown through the interface I want to shutdown the console thread too, otherwise the application will not terminate. I tried to abort the console thre...
    Socket Listener Issue (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I have a problem with my TCP Socket Listener. I am using a vb.net synchrounous listener to allow a client to connect. I have no problem with the client connecting and exchanging data between the two systems. The server constantly listens, processes, and sends back response messages. However, the other system has to disconnect on a daily basis to do an offline backup of their system. I don't receiv...
    Availability of RESGEN.EXE utility? (3 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    RESGEN gets installed with the Framework SDK and shows up in the FrameworkSDK directory of VS.NET. Does it get installed with any other applications or packages, or is it available in any other way? Bert Hyman | St. Paul, MN | bert@visi.com
    Update an ArrayList item (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    If I create an arraylist that contains integers, how can I change the integer values in the list? From: ron2464 Posted by a user from .NET 247 (http://www.dotnet247.com/) Id l6Yc4M1GzEeTPMltL6lENQ /Id
    How to load wav files in .Net (2 replies)
    microsoft.public.dotnet.framework.sdk
    Hi, In my program I have few wav files and I want to load different wav files based upon the input. Is there any API or component in .Net to load the WAV files. Thanks, Koti
    How to play the content of an audio buffer? (3 replies)
    microsoft.public.dotnet.framework.sdk
    Hi. I have a byte array containing an uncompressed audio waveform and I would like to play it under MS Windows using .NET 1.1. Could anyone give me some tips on how to do it? Eric
    httpHandler and custom extensions (3 replies)
    microsoft.public.dotnet.framework.sdk
    I've .net 1.1 installed on a XP Prof computer. My problem is that I can't use own extension ie file.myextensions with my httpHandler. The web.config contains the following code: configuration system.web httpHandlers add verb "*" path "*.aspx" type "MSDNHandlers.CSHandler,CSHandler" validate "true" / add verb "*" path "*.MyExtension" type "MSDNHandlers.CSHandler,CSHandler" validate "false" / /httpH...
    Error creating window handle (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hi, I am working on a windows application (C#) which has number of tab pages and each tab page contains large number of controls (labels, text boxes, buttons etc). After facing the window creation problem, I came to know that the maximum no. of window handles per process is limited to 10000. I thought of calculating the no. of user objects in the current process and restrict the user to add more t...
    SDK VIEW (3 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    where are the classes (source codes) for the sdk? I am very interested in reading the code and familiarizing myself to the classes and methods availalbe for future development....Thanks in advance
    Which version shall I use? Visual studio .NET or 6.0? (5 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Can I under no circumstance build an application in Visual studio .NET 2003 unmanaged to work on a computer without the framework .NET? Or is there any dependencies between the compiled program and the framework? Or is the Visual Studio 6.0 better to use. The program is written in Visual C . Thanks!
    How to get the folder for dll (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I try to get the folder which contains a assembly(dll). It seems to me Directory::GetCurrentDirectory() will give me the folder for the host application. How do I get the folder for a dll?
    How to find the OS? (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I want to find in which operating system my C# project is running. Can anyone tell me how to do this? Christopher
    Difference between .NET and Visual C# or VB etc (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Newbie question: I just installed .NET on my computer and its as if nothing was put on there. I would have expected to see some 'Visual' tools or something. My wuestion is what did I install? What is the difference betwen ..NET and Visual C# or Visual Basic etc.?
    Compiler problems? (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I am using Visual Studio .NET 2004, Version 7.1.3088, and I have experienced some really odd compiler issues, and was wondering if anybody has had similar experiences. Two that come to mind are: 1) A child form inherits from a parent form. The child has a constructor that calls the parent's constructor. When I instantiate the child using its New method, the compiler complains that the New method i...
    GetObject equivallent in C# (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I have a following sample code in VB. I am trying to convert it into C#. The code tries to tap into 3rd party API. Dim m oProj As RP40.Project m oRPGUIApp GetObject(vbNullString, "RP40.GUIApp") m oProj m oRPGUIApp.CurrentProject( ) Thanks for the help. Alpa.
    Increasing number of threads in ThreadPool (4 replies)
    microsoft.public.dotnet.framework.sdk
    Does anyone know how to increase the number of threads in the ThreadPool? The MSDN docs state: "The thread pool has a default limit of 25 threads per available processor, which could be changed using CorSetMaxThreads as defined in the mscoree.h file." Any ideas which component implements CorSetMaxThreads so I can call it? Being able to set the max number of threads in the thread pool is important ...
    Debugger API (4 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    is there a debugger API for .NET. I need to be able to read a .net assembly for analysis and when I need to report something about it I need to point to the line of code when the .pdb file is present. Is there a way to interace with .pdb files?
    binary compatibility support for .NET assembly (6 replies)
    microsoft.public.dotnet.framework.sdk
    Suppose that I have a class in an assembly that is delivered to the user, what can I do to change the class so that it doesn't break the binary compatibility? That is, user application can run with recompiling and relinking. I know that if I define an interface, and only expose the interface but not the class which implments the interface, I can add a data member to the class without breaking the ...
    How to do tasks before and after serialization (5 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I am using serialization in my webservice. I want to do some tasks before and after serialization. How to do that. Can anyone explain me Bye, Shrine
    Is there a way to find physical location of .Net binaries installed? (3 replies)
    microsoft.public.dotnet.framework.sdk
    Hi, Is there a way to locate where .Net binaries are installed during run time? More specifically, I want to find location of IEExec.exe at run time inside application. Any help is greatly appreciated. Thanks, Konstantin.
    how to call C++ lib file from C# (5 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Dear everyone: I know I can call a dll by c# like this: using System.Runtime.InteropServices; [DllImport("user32.dll")] public static extern int MessageBox(int hWnd, String text, String caption, uint type); but now I want to call a lib file created by VC6.0,for example "a.lib". Could anybody tell me how to do it? Thanks! Tom
    Where to find sn.exe in VS.NET (3 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    I am creating a StrongNameKey in Command Prompt. e.g sn k key1.snk Everytime when I want to create the key, I have to go to command prompt. Is it possible to do the same in VS.NET. I tried, but I dont find the option in VS.NET. Tell me where to get it.. Thanks, Prabu
    How to get absoulte path from relative path? (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Hi! Consider string containing relative path, may be with "\..\"and "\.\", with or without drive name, etc. I looking for API routine that converts that arbitrary filepath to full path, based on current drive, current directories on all drives and (bingo!) on any other filepath that is used as starting point. Example: starting point "d:data\configs\conf1.txt", filepath "..\images\img1.gif", result...
    Array.IList implementation (4 replies)
    microsoft.public.dotnet.framework.sdk
    I am very confused with the Array.IList implementation. All of the methods are private which hardly seems to be fulfilling the IList contract... If I cast an array then IList methods (e.g. Contains()) work correctly for arrays of rank 1. Where is the code that check the rank of arrays and allows/disallows IList.Contains() accordingly? I am using Reflector to examine the framework code and I cannot...
    Setting files/folders permission (3 replies)
    microsoft.public.dotnet.framework.sdk
    Hello, I'm just wondering if there are any .Net objects that I can use in the framework that set folders/files permission, assign quotas to users. Any suggestions/comments are welcome. Thanks in advance. Samuel
    XmlTextReader strangeness (2 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    Got a bit of strangeness going on when assigning an XML stream to an XmlTextReader. It's actually a MemoryStream representing a well formed ASCII XML document (I've confirmed this). The following code snippet works... XmlTextReader tr new XmlTextReader(stream); stream.Position 0; // this is the key to making it work tr.Read(); .... and the next code snippet throws the error "root element is missin...
    MessageQueue.Receive access denied (5 replies, VIP)
    microsoft.public.dotnet.framework.sdk
    i wrote a simple app that creates and uses a private message queue. the Send completes without errors, however when i call Receive i always get a message queue exception saying access denied. the CanRead property is false. the messagequeue constructor does not ask for exclusive access. there is no other program using this private queue. the server explorer gets the same error if i browse to the pr...
    IMetaDateDispenserEx->OpenScope failing with 0x80131107 (3 replies)
    microsoft.public.dotnet.framework.sdk
    Hello I have simple native c console app that uses the IMetaDataDispenserEx interface. I first developed it using VC Express 2005 Beta1, Windows XP, Framework 2.0 beta where it works just fine. I'm now trying to get it to work using VS 6, Windows NT 4, Framework 1.1 here's a very cut down version of the code: cor.h is the version that comes with VS.net 2003 why do I get this error and what does it...
    Visit the archive for messages from this site.
  • October 2001 (50 items)
  • November 2001 (18 items)
  • December 2001 (9 items)
  • January 2002 (13 items)
  • February 2002 (18 items)
  • March 2002 (21 items)
  • April 2002 (23 items)
  • May 2002 (17 items)
  • June 2002 (22 items)
  • July 2002 (23 items)
  • August 2002 (24 items)
  • October 2002 (57 items)
  • January 2003 (38 items)
  • February 2003 (17 items)
  • March 2003 (31 items)
  • July 2003 (43 items)
  • January 2004 (116 items)
  • February 2004 (33 items)
  • March 2004 (21 items)
  • April 2004 (48 items)
  • May 2004 (23 items)
  • June 2004 (20 items)
  • July 2004 (14 items)
  • August 2004 (59 items)
  • September 2004 (19 items)
    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