T.R. Roadkill's Q&A profile
Visual Basic Reading from a textfile (Problem with the speed)
I am reading data from a tab delimited text file and then putting them into the Access database. But it takes so much time. Is there any way ti enhance the performance. I am having 1.3 million records in my file (190 MB) Below is my code in vb.net. I have also tried Insert Statement, Sub tabtoaccess() 'Dim input As New StreamReader Dim delim As String Dim InsertRecCount As Integer = 0 Dim arrcolumns As Array Dim colheaderline As String = "" &nbs ...Show All
Visual C++ retrieve symbols from the line
Is it possible to enumerate all symbols from the line using DIA SDK or dbghelp.dll. I know how to get symbol from a function but I need only from the specified line. I try to write some code to detect memory leaks and to show more information about leaks (not only file and line number), for example data of leak (if it is int - show number, if it is string show string and so on). So I need to get type of allocation. MyType* pVar = new MyType I need to get that memory is allocated for type MyType . I wonder can I get type of allocation in any other way The answer is no; we save no information in ...Show All
SQL Server SQL Express silent installation.
I am writing an application that requires SQL Express to be installed alongside. So I try to do the following - Before installing my application, I pop-up a link which leads to "SQLEXPR.exe ADDLOCAL=SQL_Engine INSTANCENAME=MSSQLServer <other parameters> /qb " . But this displays only a basic GUI, which means that the pre-requisite checks for SQL express are not displayed to the user. So if MDAC version 2.8 is not present on the system the installation of SQLexpress fails without any error messages (except in the log files). ( This is not a problem with all pre-requisites :: If .NET is not present on the system, the failure ...Show All
Visual C# How to dynamically check if a type supports the "+" operator
All, Has anybody any idea on how we can query a type to check whether it supports the "+" operator Correct me if I'm wrong, it seems to me that we can only query those methods which are named methods, like "Add" instead of "+". Thanks. Noli Operator+ is a named method; if you inspect CIL code that is produced, you'll notice a method called op_Addition. ...Show All
Windows Forms how to retrieve value from 2nd form
Hi! There. My win form app has two forms: frmMain and frmLogin, and a module: mod1. mod1 sub main has this: Dim dlg As New frmLogin If dlg.ShowDialog() = DialogResult.OK Then Dim frm As New frmMain frm.ShowDialog() End If In frmLogin, there are several properties: Private m_UserID As Integer Public Property UserID() As Integer Get UserID = m_UserID End Get Set ( ByVal Value As Integer ) m_UserID = Value End Set End Property I tried to get t ...Show All
Visual Studio Tools for Office Toolbar button on all mail items in Outlook 2003 using VSTO
I'm new to VSTO and Outlook programming. I'm having difficulty creating a toolbar button that will appear on all mail items (both new mail and received mail.) When I use the code in the Outlook programming labs for VSTO, it seems like the button only appears on the first window I open, and not on any other window. Does anyone have a quick snippet of code that can show me how to do this Thanks, Ike Hello Ike, well when programming Outlook there are some pitfalls. Maybe you can look on my VSTO Sample "X4UTools" that deals with multiple Explorers and Inspectors and also when you use Wo ...Show All
Visual Studio 2008 (Pre-release) can't generate proxy classes for HelloWorld Sample at WC.NET
I'm following this step by step: http://windowscommunication.net/collateral/pages/howto.htm But there seems to be a problem still. svcutil.exe gives me: Warning: Unable to import wsdl:binding Detail: The following Policy Assertions were not Imported: XPath://wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_HelloService'] Assertions: <wspe:Utf816FFFECharacterEncoding xmlns:wspe=http://schemas.xmlsoap.org/ws/2004/09/policy/encoding /> XPath to Error Source: //wsdl:definitions[@targetNamespace='http://tempuri.org/']/wsdl:binding[@name='BasicHttpBinding_HelloService'] ...Show All
Visual C++ arrays with changing values
Hi, While my code(written in c++ and compiled by .NET 2003) is running, some parts of my code causes to change some arrays created by reading from a file with fscanf or created within the code although there are no operations in those parts related with the arrays that are changing. The arrays are well defined and the array names aren't common. Moreover the code runs without giving any errors but at the end, I see that some arrays have changed without my control.(Some new data is probably overwriting my arrays but how and why ) What may have caused such an error How can I fix this Mo ...Show All
Visual C# Options Form
hey ppl. i was wondering how to design an options form, for example the visual studio options form have a treeview docked to left, and when u select an option the content of the right panel changes, i think each treeviewItem useits own panel and when u select the threeveiw the panel changes, but this is very hard at design time, becasue if u have many options u need many panels, and i just want to know how usually the options forms are made becase its hard to set panels position and size when u work with many of them :P mig16 You could create each option view as a separate UserControl. That would allow you t ...Show All
Software Development for Windows Vista Visual Studio Tools for windows workflow foundation
Hi, I am using the Office '12 ' release, as a Microsoft Office TAP member. During the installation I had to remove the previous version of the visual studio tools for WF, beta 2. That is becuase I had to replace it with the WinFX Runtime Components 3.0, beta 2. Now, after successfuly installing the Office 12, I want to re-install the VS 2005 tools for WF. I can't find a version that I can use. What I can find cannot be installed because it doesn't work with this kind of WinFX runtime components 3.0. Does anyone have an idea about what I should install Thanks, Assaf The download page tha ...Show All
SQL Server SQL Express with Advanced Services - what Reporting Features does it have?
I work for an ISV, and some of our customers use SQL Server, others use SQL Server Express. I need to develop some reports, so I was happy to read that SQL Express with Advanced Services would have some (limited ) Reporting Services available. Unfortunately, the sign-up period to beta test appears to be over, and so I am left wondering exactly what functions will be available. Is there anyone out there who has played around with the beta version reporting functions I’m replying here to the issue where BIDS fail due to having Visual Studio Express version installed at a non default location prior to SQLEXPR_ ...Show All
SQL Server Subset of TSQL supported by SQL Server mobile
Hello, What is the subset of TSQL supported by SQL Server Mobile I scoured Books Online, but I couldn't find any page that is dedicated to explaining this. A link to the corresponding MSDN page would be great. Thanks, ravi Ravi, You can go to SQL Server Books online and there is a separate section on SQL Mobile. In SQL Mobile, go to SQL Reference for SQL Mobile which lists all the things you need. ...Show All
Visual Studio Express Editions auto populate date and time columns in access database
ok this is my first app ever and im trying to enter some data into an access database. i can pass the data i want into the database but cant seem to get the date and time columns to populate with the current time and date. cheers in hope lol You can use the datatables new row event to set values in the new row. http://www.vb-tips.com/default.aspx ID=6b05b025-2ace-4ad0-9eae-a95385888e22 ...Show All
Visual Basic Need help with serial communication project
Hello, I'm using VB 2005 on a serial port project and need some general guidance on how to get started. I need to make a program that has no user interface and runs as a background process that will listen to a specific serial port, and when data is recieved interpret it and act accordingly. I am familar with VB and object oreiented programming, and have found the SerialPort class that I will use as the core of the program. My main question is how should I structure the program to achieve the desired function Thanks for any help in advance. ...Show All
SQL Server full-text search of related tables
We have a need for full-text search over related tables. I'll refer to these tables as A, B & C. Table A is the base table and is optionally related to table B through an outer join. Table C optionally has keywords that describe table A and are coalesced in a view with table A using a function. We are using SQL Server 2005 and would like to have a single full-text query search over A, B & C. I thought using an indexed view might be the answer, but we have been prevented from creating the clustered index on the view because of table B being an outer join and table C being joined via the function to coalesce its data. What do you sug ...Show All
