microsoft.public.dotnet.framework.sdk Archive - March 2003
Post a message to this list
Messages
Page: 12
how folks use the SDK (20 replies)
microsoft.public.dotnet.framework.sdk
I am interested in hearing how folks use the .NET Framework SDK. (I guess the Platform SDK too, but mainly the Framework SDK). Do you use it with as a subset of VS? on different machines than VS? Just for Samples? Just to get some basic tools? We are looking at things we can change or do differently in the future, so feel free to share any public rants or raves about how things are working or what...
cannot manipulate a string return by platform SDK through P/Invoke (3 replies)
microsoft.public.dotnet.framework.sdk
Folks: I am lost here. variable buffer is a string. I use p\invoke to call a platform sdk GetKeyNameText (lparam, buffer, 20) to get the key name user strokes. The name is return in the buffer in C#. I can see values returned into this variable in debugger. And I can p\invoke sdk MessegeBox to show the value of the buffer. But I can neither show the value on a .net label or log it into eventlog us...
SQL Server ADO.NET speed issues (2 replies)
microsoft.public.dotnet.framework.sdk
I am doing some testing on the speed limits of SQL Server. I use the SQLClient.SQLConnection and SqlClient.SqlCommand object to ExecuteNonQuery on a stroed procedure running a simple INSERT statement , there are 4 parameters and 4 fields in the record. I am using a 500mhz machine. I am finding a limit of about 300 350 inserts per second. Is this the best I can expect? Is there a faster way to inse...
Replacing WSASend/WSARecv functionality with System.Net.Sockets (2 replies)
microsoft.public.dotnet.framework.sdk
I have a large amount of unmanaged legacy code that has to do a lot of data shuffling from one socket to another. It makes us of the WSASend and WSARecv with overlapped IO and uses chained buffers via the WSABUF structure on the calls to WSASend and WSARecv. The chained buffers are used for efficiency. I have several hundred sockets connected at one time and the message sizes are very variable. (2...
getprivateprofilestring (2 replies)
microsoft.public.dotnet.framework.sdk
Hi all, I can't found getprivateprofilestring in vb.net, any replacement function to read ini setting file?
Interop marshaling / CreateProcessAsUser (2 replies)
microsoft.public.dotnet.framework.sdk
After loading the user profile and creating a user environment, the next step is to launch a process using CreateProcessAsUser. My problem is that I am getting an 'Object reference not set to an instance of an object' on CreateProcessAsUser. I can only guess that the problem is again with the declarations. It would be great if someone could point out the errors in the following code, or provide wo...
DirectoryServices (Hope Willy reads this) (2 replies)
microsoft.public.dotnet.framework.sdk
Hi everybody I have a small problem. I have a domain domainA. In this domain i have a server ServerA. On ServerA i have some local groups with domainusers as members. I try to list all the members in the groups querying "WinNT://", but i only get the local users. In DomainA i also have a LDAP server, but I have to use the local groups on ServerA for this application. How should i do this (VB.net)?...
HttpWebRequest client certificate private key problem (VB.NET 2002) (2 replies)
microsoft.public.dotnet.framework.sdk
How can I use the httpwebrequest functionality to post XML data over a secure authenticated channel (https)? I have a valid client certificate with a corresponding private key. The certificate is in x509 format (.CER) and the .cer file contains the private key. I converted the .cer file to .pfx (PKCS#12) with the OpenSSL utility and this file I can import into the certificate store in the operatin...
Consuming unmanaged dll function, real-life problems ! (2 replies)
microsoft.public.dotnet.framework.sdk
Hi All Sure the "MessageBox" example found in the documentation and books for consuming unmanaged dll functions works great, but i am having numerous problems when trying to consume slightly more complicated functions: 1. I am trying to call "BeginUpdateResource" found in Kernel32.dll, the return value of the function is HANDLE (void *), how do I write the prototype in C# ? I tried using a return ...
System.Web.HttpException: Maximum request length exceeded. (2 replies)
microsoft.public.dotnet.framework.sdk
Hi, I installed .NET framework 1.0 and WSE 1.0, and built an ASP.NET web service which could consume SOAP attachment. I tried to send a SOAP message with attachment about 5MB over DIME/HTTP from a client (not .NET program), and got the following exception from the service, extracting from SOAP FAULT string. (Attachment with size of 4MB worked fine.) System.Web.Services.Protocols.SoapException: The...
Calling CryptImportKey with PInvoke (4 replies)
microsoft.public.dotnet.framework.sdk
I'm having trouble calling the native CryptImportKey API in .NET. This is my C# signature: [DllImport ("Advapi32.dll")] //or [DllImport ("coredll.dll")] for Compact Framework public static extern bool CryptImportKey(IntPtr hProv, byte[] pbKeyData, UInt32 dwDataLen, IntPtr hPubKey, UInt32 dwFlags, ref IntPtr hKey); My code is as follows: pbPublicKey ... (valid byte[]array representing a public key ...
GetFolderPath while impersonating another user (3 replies)
microsoft.public.dotnet.framework.sdk
GetFolderPath while impersonating another user .... The following will normally return the directory of the users favorites folder: string favoritesDir Environment.GetFolderPath( Environment.SpecialFolder.Favorites ); However, if you are impersonating another user and use this code, you get a blank string back. What's going on? I'm impersonating using bool loggedOn LogonUser(,...,out token1); IntP...
Windows forms controls don't get cached in IE (2 replies)
microsoft.public.dotnet.framework.sdk
Hello, I built a Windows Forms Control in C#. Internet Explorer 6 (all service packs and patches have been applied) doesn't cache the control even though the documentation indicates that it should. Caching is critical for my application because most of my users are still on dialup connections. This problem was posted in March 5, 2002 by John Davis, but no solution was presented before the thread w...
AppDomainSetup & config file (2 replies)
microsoft.public.dotnet.framework.sdk
is there a way to set some value of the my default AppDomainSetup so my applications files are ShadowCopyFiles true by default ?
CreatePipe (2 replies)
microsoft.public.dotnet.framework.sdk
Hi I am getting a system null reference exception (object not set to an instance of an object) error in the following code: StructLayout(LayoutKind.Sequential, CharSet: CharSet.Auto) Public Structure SECURITY ATTRIBUTES Public nLength As Integer Public lpSecurityDescriptor As Integer Public bInheritHandle As Boolean End Structure DllImport("kernel32.dll", EntryPoint: "CreatePipe", SetLastError: Tr...
send authentication information with the initial http request (3 replies)
microsoft.public.dotnet.framework.sdk
I tried httpWebRequest.PreAuthenticate true; and it didn't work. The client always waited for an authentication challenge from server. The authentication scheme I used was basic. Thanks in advance, Ying
Multithreaded connection problem (2 replies)
microsoft.public.dotnet.framework.sdk
I have a situation where I want to be able to query a database using ADO.NET on a second thread. My main thread spawns the new thread, which queries the database and then finishes and dies. The class that performs the query operation is a field in a class that both the main thread and the second thread share. The main thread does not access that field while the second thread is alive. If I repeat ...
AppDomainSetup wondering... (3 replies)
microsoft.public.dotnet.framework.sdk
I have played a bit with AppDomain & AppDomainSetup (mainly with ShadowCopyFiles) And now something strange happened. I'm not sure it's a bug or me who just discover that. Now I'm able to delete/move/rename any .exe and its .dll while it's executing. I think I remember I could'nt before (although I didn't explicitly test) and it was the reason why I decide to use AppDomain. could anyone she some l...
Call up help file (2 replies)
microsoft.public.dotnet.framework.sdk
I am trying to add a help file to an application. Is it just me or is this way more complicated than it used to be? The HelpProvider component seems to work very strange. The same could be said of the following: Here I make a call from a menu click. System.Windows.Forms.Help.ShowHelp(GroupBox1, "myHelpFile.chm") Why do i have to specify a control in the first parameter? What is the significance of...
I need a function that will get all running SQL server (or MSDE) on the network . (3 replies)
microsoft.public.dotnet.framework.sdk
For C# or any .net language Thanks
ReadFile - Anonymous pipes (3 replies)
microsoft.public.dotnet.framework.sdk
Hi, I am working on some code to start a console process and redirect the inoput and output. It will run in a service written in vb.net. I am creating an anonymous pipe with CreatePipe and passing the write handle to the 'security information' before the process is started. The process starts running sucessfully. I then create a new thread to watch the pipe : ThreadPool.QueueUserWorkItem(AddressOf...
Overlapped I/O and Socket Class (4 replies)
microsoft.public.dotnet.framework.sdk
Does the .net framework Socket class use overlapped I/O? If so, how do you set it up to do so and if not does anyone have any good ideas about implementing SOCKETs and Overlapped I/O in the a managed language? Roy Chastain KMSystems, Inc.
Sorting Problem (3 replies)
microsoft.public.dotnet.framework.sdk
Hi. I have Data that consitst of two parts an int Index an a String Name. 01 Aardvark 06 Gyroscope I display this data in a Listbox, as name / value of a ListItem Now, what is the best way, in C#, to efficently sort this data by the string values? Thanks in advance! BB
tcpClient or Socket Closed (6 replies)
microsoft.public.dotnet.framework.sdk
When using the AsyncSocket class in C , I was able to get some events. The one I would like to get with TcpClient is the Close event. I believe this was called whenever the socket recieved a close message from the underlying tcpip subsystem. In the .NET classes, particularly tcpClient, I noticed there are no events. Is it impossible to recieve this notification?
RichTextBox problems... (7 replies)
microsoft.public.dotnet.framework.sdk
I want to display text. this text is a dynamically growing list of URL, like this http://fr.mobile.yahoo.com/ http://fr.mobile.yahoo.com/030117/201/2y6r3.html http://fr.mobile.yahoo.com/030106/201/2x538.html http://fr.mobile.yahoo.com/ring.html http://fr.search.yahoo.com/search/fr/options?p http://fr.docs.yahoo.com/decouvrez/all.html http://fr.lifestyle.yahoo.com/astro/ http://fr.adserver.yahoo.co...
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