Answer Questions
vibha g panse R6025 - pure virtual function call
I have a vb.NET application which sometimes craches and gives the error: R6025 pure virtual function call this is a run-time error in Visual C++ This is followed by: LoaderLock was detected Message: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. And thats weird... cause I don't have any ...Show All
Derek Comingore - RSC How to retrieve the SELECT statement from a dataset?
I trying to get the SELECT statement used to fill a typed DataTable at run time. Like in vb6 you used objAdodc.recordSet.Source or objAdodc.recordSource to get the SQL Statement The information is in the TableAdapter as design time but I can't access the SelectCommand at run Time. Any help would appreciated Thanks in advance Ger . Thanks Dave. That did it. Ger Sorry I should of said that the TableAdapter i ...Show All
Howard Steadman how to read a certain line of textfile??
Hi, Is there any way in c# of specifying which line number of a textfile I want to read Thanks, Keep reading line by line until you get to the right line number. ...Show All
Macrel FTP or webservice
Hi all, I want to ask of the better way to transfer a stream to server through FTP or web service. I need the fastest way. Can you please geve a tutorial Regards... Wasim wrote: Thanks for you reply, I'm dealing with transfering pictures in online time. I'm looking for the fastest way to do that. The pictures are captures on a pocket Pc, and I want to transmit them to a web server as fas as possilbe ...Show All
Sri Prasada Reading 3GB text file in C#
Hi I need the assistance in C#. I have 3GB Text file I want to Split that file based on some delimiters, Currently I reading that file multiple blocks. Each block having 10 mb content. When I process grater than 700mb source file. It give the memory out of exception. I have some files size is 2GB or 3 GB. These I files I cant read even first block. Pls any one help me to get good solution. Hi Even i can't open that 3 ...Show All
Ryan Garaygay How to retrieve info (messages) from the SQL Execution
Hello. First, I hope I'm posting in the right forum. I'm developing av .NET application using ADO.NET. Everytime you execute SQL Queries the database returns information like "(1 row(s) affected)" etc, but I haven't found a way to get this info from the ADO.NET tools - eg. the SqlDataReader or OdbcDataReader. I need this information to get data returned by STATISTICS IO and STATISTICS TIME (ref http://www.vbcity.com/forums/topic.as ...Show All
Brad Lindberg Events in Generic List
In a C# program I've been working on, I have a class that makes use of a couple of generic lists to store some data. When the form that displays the database is closed, I do a check to see if the class is dirty. I've got some properties set up for the singular values so that when they changed, the dirty state gets updated, but I haven't got the lists updating the dirty flag yet. The way that I'm looking at doing it is attaching an event handler ...Show All
Blair Allen Stark User App Settings not binded in C#
Hi, I'm missing something here. I've been thru the posts and help to no avail. I bind a property in a C# form (WindowState as an example) using the designer. When the form close, I call Properties.Settings.Default.Save(). The save works. The problem is that the value of the setting isn't updated. By debugging, I can see that the form value (this.WindowsState) has changed, but the setting value ...Settings.Default.WindowsState has not been ...Show All
WDK_Kernel Querying Active Directory in C#
I need to be able to query Active Directory for information about a particular workstation. How does one query Active Directory in this way in C# Take a look at System.DirectoryServices namespace. A good starting point is: http://msdn2.microsoft.com/en-us/library/system.directoryservices.aspx If you already know the ADsPath, you can use DirectoryEntry directly, for instance to retrieve the root: DirectoryEnt ...Show All
Simon Marshalling COM interface between threads--help!
I am developing a Windows Forms 2.0 application that references a COM primary interop assembly to communicate with a COTS product. I am still very new to working with COM from .Net and the threading issues that are involved, so I am unsure how to marshall a COM interface between threads--I have the main UI thread, of course, but for many of the data access calls I use a BackgroundWorker component to execute the calls asynchronously. The issue I ...Show All
Stuart Ray Serviced Components Dynamic Registration
Is there any way in which I can avoid the Dynamic Registration facility that is available through Serviced Components . Meaning if the user wants to use a particular Serviced Component he has to manuallly go and register it using regsvcs. Currently there is no way to do this the best way to protect yourself from this is to explicitly register as a first step before invoking your component. ...Show All
Wende When doing "INSERT INTO..." how do I retrieve the ID? (Access)
So basically I'm doing public Client CreateClient( string name ) { OleDbCommand command = null ; try { ...Show All
Robert Seiler Compacting an Access 97 DB from VB.NET 2003
Hi everybody, Here's my code, Imports System.IO Public Class Access97Routines Public Shared Sub RepairCorruptDatabase(ByRef corruptDB As FileInfo, ByVal destinationFileName As String) Dim accessApp As New Access.Application Try accessApp.DBEngine.CompactDatabase(corruptDB.FullName, destinationFileName) ...Show All
Sam Stokes Using Bluetooth with VS 2005 beta 2
I was watching the " Creating a Managed Bluetooth Application Using Microsoft Visual Studio 2005 " MSDN video, and there was an example of using new bluetooth classes for connecting to a PocketPC via bluetooth. I have the VS 2005 and i didn't fount these classes. Classes like "ServerHandle" or "Core" and others dosn't exist. I want to use bluetooth to make my laptop as a Headset for my phone. I need to register a bluetooth Head ...Show All
tosun VB.NET Regular Expressions
What namespace or library must be referenced (imported ) to be able to use regular expressions in VB.NET I've seen references that they exist, but don't know how to reach out to use them. It's System.Text.RegularExpressions not System.Text.RegularExpression System.Text.RegularExpression Function RegExpTest(ByVal patrn, ByVal strng) &nbs ...Show All
