Paolo Ponzano's Q&A profile
Visual FoxPro table buffering mode
On a statement like this: IF NOT initTableEmpty TABLEUPDATE () ENDIF I get an error: This operation requires table to be opened in buffering mode . SQLBUFFERING is set to ON before the table is opened. It does not help. Actually the error happens once in a while for no reason. I cannot understand what triggers it. Most of the time the statement works. The USE command does seem to have no option for buffering either. Is any help forthcoming I am sure it is. Thanks. You set buffering on a table with CURSORSETPROP() and you can check the buffer mode with CURSORGETPROP() so really defensive code wou ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. Awesome.. thanks.. that worked.. I have no idea why I never tried that. So all I gotta do is define my variables globally. I thought I tried that.. guess not cause I tried a few tests and it works great. Jeez this language makes it awkward to p ...Show All
Visual Studio adding submenus
i'm trying to add the same command to two different menus (a custom submenu on the menu bar and into the solution explorer context menu). the first add goes through just fine. the second call to Command.AddControl(CommandBar, int) crashes with a "Catastrophic Failure". as usefull as that error message is, can anyone give me a bit more info Catastrophic Failure is the error message returned when a crash is found, usually because a NULL or invalid pointer is used. I ran the Add-in wizard and selected to generate a command on the tools menu. Then I added this code after the call to the AddControl method: toolsControl = menuB ...Show All
Windows Live Developer Forums Test game: MessengerQuest
Hurrah! Finally I got Messenger-Quest done... Four days of terrible hard work has resulted in a really cool game :) Unfortunately the <s>lazy bastar...</s> people checking the apps have holiday too, and they can't check it till after newyears :( So, Because I don't want those 4 days of work to go to waste, I've put the Msgrp2p file needed online :) http://www.stuffplug.com/MessengerQuest/msgrp2p.xml I'm sure you know how it works ;) If you have feedback, give it quickly, as I will be leaving for a nice skiing holiday tomorrow :) Oh, one final note, I *know* the source is completely unprotected, that doesn't mean that I give you p ...Show All
.NET Development Threads, Events & BeginInvoke
I'm having problems getting my head around raising event on the UI thread, and haven't been able to find an example for my particular situation. I've written a homespun class that exposes an integer property, and raises an event whenever it changes: public class Engine { public event EventHandler ProgressChanged; private int progress; public Engine () { progress = 0; } public int Progress { get { return progress; } } public void Run () { for(int index = 0; index < 100; index++) { Thread.Sleep(1000); progress++; if(ProgressChanged != null) ProgressChanged(this,new EventArgs()); } } } I want to bind this p ...Show All
Visual Studio Team System Adapting source control to non-conformant directory hierarchy
Hello, I am investigating using Team Foundation in our organization and am looking at the source control portion of it. We have a directory structure that looks like this: c:\root\Solutions\ solution_1.sln solution_2.sln solution_n.sln c:\root\UI\ project1.csproj file_1.cs file_2.cs file_n.cs c:\root\Logic\ project2.csproj file_3.cs file_4.cs file_n.cs c:\root\Configuration\ configuration_1.xml configuration_2.xml configuration_n.xml c:\root\Configuration\Control ...Show All
SQL Server Gettint error "product level is insufficient" - did full re-install of SQL 2005 Standard Edition
Installed SQL Server 2005 Workgroup Edition on a new server for testing. Installed SQL Server 2005 Management Studio on local PC. Created a database with a single table. Trying to run SSIS and export the database to a flat file. Get the error 0xc007470fe: Data Flow Task: The product level is insufficient for component "Destination - dbexport_txt [25]" I then installed SQL Server 2005 Standard Edition on the server as an upgrade of the existing instance and got the same error. Thinking this might be an upgrade issue, I completely uninstalled SQL Server 2005, rebooted the server, and then did a clean install of SQL Server 2005 Standard Editio ...Show All
SQL Server Using Transactions causes database connection to fail
In one of my packages, I set the package-level property called TransactionOption=Required. During run-time I saw an error saying "[Execute SQL Task] Error: Failed to acquire connection "SQL_DW". Connection may not be configured correctly or you may not have the right permissions on this connection. ". When the property is changed to anything other than Required, it works fine (the calling package that calls this package is not involved in a transaction). The machine running the packages is Windows Server 2003, and so is the database where the data lives. I verified that the machine containing the database does has Ena ...Show All
Visual C++ Linker issue LNK2019
Hi, I am trying to do a class template for matrices. Everything compiles well but when I try to use it in another project I have a small issue. Source for the matrix class: class Matrix { public: //Generic functions short int Rows(); //Returns the numbers of rows short int Cols(); //Returns the numbers of columns Matrix(short int rows, short int cols); //Default constructor Matrix(short int rows, short int cols, T value); //Constructor for the identity matrix with valu ...Show All
Visual Studio SOLVED!!! but "Chapuza"
I use a WindowsForm Reportviewer. C# 2.0 I generate the report and all is OK but when the user try to print (print button in toolbar), the application open the printdialog, I select the printer and press Ok. But the application doesn't generate a document. When I try again, all work fine. If I close the application and restart, occurs the same (first doesn't works, second works, all time works). somebody have any idea Thanks form Spain. Are you using the RTM version of the controls and of the 2.0 framework We saw iss ...Show All
Visual FoxPro Foxpro in Visual Studio 2005
Hi . Why Microsoft dont develop Visual Foxpro . and why Microsoft dont create Visual Foxpro in .NET Freamwork ThankX. Skyline . I'm not sure what your first question means. VFP 9 shipped this year and a service pack is expected before the end of the year. They've announced their plans for Sedna, the next version as well. http://msdn.microsoft.com/vfoxpro/Roadmap/default.aspx Tamar ...Show All
Visual Studio WinFX extensions not removed by auto removal tool
I would like to draw attention to the fact that the auto pre-release uninstall tool provided by Microsoft does not remove these products if they were installed on the client computer: WinFX extensions for Visual Studio beta 1 WinFX SDK beta 1 However it did remove WinFX runtime beta 1. This is highly inconsistent behaviour because, The SDK is useless without the runtime. WinFX extensions cannot be removed AFTER the auto uninstall tool has completed removing the other products as it fails with the message: "A network error occurred while accessing 'C:\WINDOWS\Installer\vsextwfx.msi' ". Trying to uninstall by running the original .msi ...Show All
Visual Studio Team System Word crashes when connecting to TFS
I am trying to create a Team Foundation add in for Word using VSTO and I am currently having problems connecting to a TeamFoundationServer. Here are the steps required to crash word when connecting to TFS. 1) Open Word or outlook 2) Create a new document using my Word template 3) Connect to SomeServer * Connection is successful 4) Close the document created using my template and do not save the changes * There should still be an instance of Word or Outlook open 5) Create another document using my template 6) Connect to SomeServer * Word will crash while attempting a connection I will only be able to connect to TFS again once all ins ...Show All
Visual Basic outlook problems after uninstalling VB
I recently uninstalled VB Express and now everytime I start Outlook, I get a popup window with the title "Visual Basic 2005 Express Edition Beta 2 - ENU". The message says: "The feature you are trying to use is on a network resource that is unavailable." After clicking Cancel (because I don't know what it is and I don't really want it), I get a message box with an Error 1706. I don't want to reinstall VB Express Beta (it's not worth the trouble). What is this mess and how can I permanently get rid of it I uninstalled VB Express and now everytime I start ...Show All
SQL Server Please help me with my Top N query
Hi all, I used to do quite a bit of transact sql programming, but haven't done much recently. Anyway I just started a new job, and I have to analyse some data. I know I can use a cursor to get the information I want, but I'm sure there must be a way to do it using a "set" based approach. If anyone could give me some suggestions I would really appreciate it. In essence I receive a large data file which contains AccountNumber Date (no timestamp) Time (in a strange text based format) DepositAmount This file contains a month worth of data and consists of deposits made by customers into their accounts on various days. Ther ...Show All
