| About the tools "XSD.EXE" (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, Currently, I am working on converting XDR to XSD ( XML schema). I have found there is a converting program in .Net framework SDK tools. The program name is sdk.exe. I got a error on running the program. result D:\XML xsd Test.xdr Microsoft (R) Xml Schemas/DataTypes support utility [Microsoft (R) .NET Framework, Version 1.0.3705.0] Copyright (C) Microsoft Corporation 1998 2001. All rights reser... |
|
| Alternatives to XmlTextReader.Close()? (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi. If I have a method that accepts a Stream object and inside, I enclose it inside an XmlTextReader object, like so: XmlTextReader reader new XmlTextReader( stream ); When I'm done with the reader, I don't want to call reader.Close() as it would also close the Stream object, which I don't want to happen. If I do not call reader.Close(), will I not be freeing up any resources that the XmlTextReade... |
|
| Exceptions (4 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi. This is a bunch of questions regarding exceptions in .NET. 1. Can I trust the documentation in that if there are no exceptions listed for a particular method, then it will indeed not throw any exception? And that if some are listed, it will throw those and only those exceptions? 2. What about critical/non recoverable exceptions like OutofMemoryException, StackOverflowException, and ExecutionEn... |
|
| FileIOPermission does not work ! (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I run a .NET dll and a COM dll on a WebServer, using IIS5. The WebServer is part of a server farm, and needs to access other computers on the server farm LAN. My problem is that I cannot access files on these other computers from the .NET dll, but can just fine from my COM dlls. My .NET code is something like this: using System; using System.IO; using System.Security.Permissions; ...... FileIOPerm... |
|
| relation between two dataset? (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| hi is it possible to create a table relation between tables that exists in two datasets? |
|
| make changes to xml file (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| hi all, i am loading a xmldatadocument with data from a xml file, then access the elements via the dataset and make changes to a few values. i noticed that calling acceptchanges() method does not update the xml file. so i tried calling either ds.writexml method or xmldatadocument.save method but i get an error stating that the file is in use by another process. how can i propogate changes to the s... |
|
| Enabling control resize at runtime? (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Does anyone know if there is a way to enable controls on a form to be resized at runtime? Similar to how controls are resized at designtime in the IDE. If there's no quick way to do it, I think I know of a way to programatically do it. Using ControlPaint.DrawSelectionFrame etc. |
|
| How do I get current instance id in application itself by using c# (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, dear all I am trying to get application instance id from application itself, does .net framework support this operation? best rgds, Jonathan |
|
| How can I convert a struct(object) to byte array? (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| public struct sample { int n1; short n2; float f1; } sample a; How can I convert a to a byte array with 10 bytes? How can I get the size of a? |
|
| How to get the local and remote IP address (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hello, How can I get the local and remote IP address from a System.Net.Sockets.TcpClient ? I'm getting the TcpClient from a TcpListener this way: TcpClient tcpClient m tcpListener.AcceptTcpClient(); Thank you. Cesar |
|
| ManagementObjectCollection Bug Confirmation (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| Okay, I think I'm losing my mind or something, but can anyone else take the following code, and explain why queryCollection.Count produces the exception that it does? Using the same sample code, I've foreach()'d through and know for a fact I (my system that is) has 11 user accounts returned by this WMI query. However everytime you run the code below, it fails. using System; using System.Management... |
|
| Why TextReader does not read hebrew from file ? (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| I have an html file that I want to parse that contains both Hebrew and English characters. When I try to read it using this code below I get only the English letters and not the Hebrew. Anyone knows a solution ? Dim MyInput As TextReader File.OpenText("c:\myfile1.txt") Dim strline As String strline MyInput.ReadLine() Thanks for your time ya94@hotmail.com |
|
| Removing an AD object (8 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, I'm trying to delete a user from the AD. I use the following code. DirectoryEntry myRoot new Directory("LDAP://DC TESTDEV,DC COM"); DirectoryEntry myChild new Directory(LDAP://CN testuser,CN USERS,DC DEVELOPMENT,DC COM); myRoot.Children.Remove(myChild); myRoot.CommitChanges(); This code gives an error shich is either 1. A response was returned from the server. or 2. There is no such object on ... |
|
| System.Windows.Forms.ToolbarButton - Disabled appearance (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hello out there The default behavior of the toolbar is that when a button is disabled, the image takes on a "punched out" appearance, as in: (that image is from outlook express 6). Looks a bit hokey to me, compared to, even OE 5: in the latter case, you can still figure out what the image is. BTW Office XP acts in the latter fashion. OK, I know you can change the point the toolbar button to a diff... |
|
| Win32_UserAccount Rename (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| Using the WMI, does anyone have any example code about calling the method Rename? I've been unsuccessfull in making it work. |
|
| As Any no longer valid in API Declaraion. How to define instead? (6 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, 'As Any' is no longer valid for an API declaration. How should this be defined? As Object? Private Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" (ByVal hKey As Integer, ByVal dwIndex As Integer, ByVal lpValueName As String, ByVal lpcbValueName As Integer, ByVal lpReserved As Integer, ByVal lpType As Integer, ByVal lpData As Any, This needs to be changed ByVal lpcbData ... |
|
| System::String to char * (4 replies) |
| microsoft.public.dotnet.framework.sdk |
| I'm trying to do a simple strcpy from a System::String to a char *, is there any way to get the string pointer out of a System::String? |
|
| STL and .net (3 replies) |
| microsoft.public.dotnet.framework.sdk |
| I'm converting a C app over to using managed c and .net. During this conversion I'm learning .net. Well I've run into a problem where I can't put any .net or managed c objects into any of the stl containers. I've looked high and low for generic .net containers that would be similar to stl map, vector, etc. but I can't find any. Am I looking in the wrong place? |
|
| Bitmap.FromHbitmap and handle ownership (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| Hi, Does a bitmap created with Bitmap.FromHBitmap() take ownership on the bitmap handle or should I delete the handle explicitly? I'm aware that the handle returned by GetHbitmap() should be deleted, but the docs are not clear about Bitmap.FromHbitmap(). In other words, does the following code leak resources? using(Bitmap bmp new Bitmap(100, 100)) { IntPtr hBmp bmp.GetHbitmap(); // pass the hBmp t... |
|
| Administering IIS remotely (14 replies) |
| microsoft.public.dotnet.framework.sdk |
| How can I administer a remote IIS server with .net ? I would like to have a managed class that with an ip address, a username and a password, allows me to access the metabase of a remote computer. Any ideas? thanks. Spartaco |
|
| Process.Start fails for htm file and jpg files. (2 replies) |
| microsoft.public.dotnet.framework.sdk |
| I can start those file manually by clicking on them but when I select them through file Open dialog and try to launch them it fails. Does any one know work around for this? Thanks Anil |
|
| NetAPI and NetUserSetInfo (4 replies) |
| microsoft.public.dotnet.framework.sdk |
| Okay, I am attempting to make a call to netusersetinfo in the NetAPI in C#, my question is this, if you take a look at the sample code below, am I going about this in the right manner (x is a variable of the USER INFO 3 struct)? IntPtr pBuf Marshal.AllocCoTaskMem(Marshal.SizeOf (typeof(NetAPI.USER INFO 3))); Marshal.StructureToPtr(x, pBuf, true); NetAPI.NetUserSetInfo(server, uname, 3, out pBuf, o... |
|