newanalog's Q&A profile
Visual Studio Express Editions Error OLE_E_CANT_BINDTOSOURCE when upgrading Visual Basic 6 Project
Hi I have a Visual Basic 6 project which I tried to upgrade into Visual Basic 2005 Express. It asks me the project type (EXE) and the path. Then on page 5 of 5, status bar entitled 'Invoking Upgrade Engine' I get the above error - Unexpected Exception ... : Not able to bind to the souce ( HRESULT: 0x8004000A OLE_E_CANT_BINDTOSOURCE). And the upgrade engine stops. The upgrade directory is empty. System is clean install WinXP SP2 + updat ...Show All
Visual Basic How to Raise and handle events in same class?
How can we raise and handle events in the same class.This is the code I tired and got JIT debugging error. Public Class Form1 Inherits System.Windows.Forms.Form Public Event msgdone() Public WithEvents h As New Form1() Public Sub dgdone() RaiseEvent msgdone() End Sub Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click dgdone() End Sub Public Sub dd_handler() H ...Show All
Visual Studio Creating a modelElement at runtime
Hi, I have a DSL integrated with GAT and I need to create a GAT recipe that creates ModelElements. Which are the necesary steps to create a modelElement via API, and then associate the ModelElement with the Current Diagram, and finally create a Shape that represents the ModelElement previously created Thanks, Pablo Hi Pablo, You might find the following post usefull: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=115002&Site ...Show All
Visual C++ Reference to C# form library causes entire C++ app to recompile
We are adding C# form support to our main application (MFC C++). Question A) I have created a new form library and added a reference to the library to the main application project. Now whenever there are any changes to the form library (any change to any form or user control), the entire C++ project must be re-complied. The recomple is killing us because currently only 1 of hundreds of source files even use the new C# forms. ...Show All
SQL Server How to Fetch the Recrods from MS Access and using it in Script Task Using Control Flow Tools(Execute SQL Task)
Hi I have an application like fetching records from the DataBase(MS Access 2000) and results i have to use in Script Task. At present i have used the record fetching query,connection string in Script itself. I would like to use in Independently. Is there any Tools like (Control Flow Tools like Execute SQL Task) are there to fetch the result set from Acccess and can use the fetching results in Script Task.... Thanks & Regards Deepu ...Show All
Visual Basic Refreshing the XSD in 2005 from the database
For sake of example, I have a table called Varieties. I forgot to set the key to an Identity, so when the table was modeled by the Data Sources tool, the field wasn't set properly. The Configure... menu item doesn't seem to change any of that information - is there a way to tell the XSD to refresh itself from the database Or do I have to modify the schema in the Properties window Thanks! S Yeah, I saw that it wasn't hard, but ...Show All
Windows Forms Appupdater - how to deploy changes to application config?
Hello, I am just starting to use the appupdater component (manifest method) in my windows application (vs.net 2003) and noticed that if I have the application config file located on the web server with the files for download the download fails with ...Show All
Software Development for Windows Vista Beta 2: WorkflowMarkupSerializer (De)Serialize Signature Mismatch
Hi, All, Another upgrading question. WorkflowMarkupSerializer.Serialize (TextWriter, Object ) is the signature for the function, according to the help files come with Beta 2 installation. However, the assembly(C:\WINNT\assembly\GAC_MSIL\System.Workflow.ComponentModel\3.0.0.0__31bf3856ad364e35\System.Workflow.ComponentModel.dll) gives a different signature: WorkflowMarkupSerializer.Serialize(System.Xml.XmlWriter, object) This ca ...Show All
Windows Forms Master/Detail Combobox in DataGridView (VS.NET 2005 Beta 2)
I want to create 2 combobox in DataGirdView which have relate Master/Detail together. Ex : 1. I have three tables in Database : Customer, City, District. - Customer (n-1) District by DistrictID. - District (n-1) City by CityID. 2. DataGirdView have 3 column : CustomerID, CustomerName, CityID, DistrictID. 3. In this DataGirdView i have 2 combobox which display City, District and they have Master/Detail Relation. This is my code ( ...Show All
Windows Forms clear dataGrid
Hi there, I was just wondering how to clear a DataSet. I couldn't find the right method in the MSDN Library. Thanks Chris Since you are using C#, set the Datasource = Null. 'Nothing' is a VB construct. ...Show All
Windows Forms Implementing Cut, Copy, Paste, in a Menu
Here's my situation. I have a Form with a couple of TextBoxes and a MenuStrip that contains an "Edit" menu with cut, copy, paste, etc. If I simply have the "Edit" menu items using NO shortcut keys (i.e. Ctrl+X, Ctrl+X, etc) the that functionality works fine in the TextBoxes, for example I can select some text in a TextBox and and use Ctrl+X to cut it. BUT, if I add shortcut keys to my menu items that functionality goe ...Show All
Visual C++ Detecting compile in Studio 2005 vs. Studio 2003 or 6.0
I share common source code with several other projects that compile in Studio 2003, Studio 6.0, Borland, or (gasp) an embedded Green Hills compiler. Is there a #define I can look for so that I can fix all the deprecated CRT functions when I use the code in Studio 2005 (and so I can leave the old unchanged version in place for all the other folks) Something like #ifdef STUDIO_2005 strcpy_s(DestString, sizeof(DestString), ...Show All
Visual C++ Improper assembly code generation for inlined method on Release|x64 for AMD64 on Visual Studio 2005
The complete source code and .vcproj file are posted below. When the cometLocationType operator= is declared in the following manner: inline cometLocationType& operator=(const cometLocationType& point) When the value of ret1, is printed inside the main function, the value of mX and mY are both 0 when they should be 260. This is because inside the operator=, it falsely thinks that "this" and "&point" are equa ...Show All
Windows Forms How do I get the active item in a listview?
I'm trying to make a method where I doubleclick on a listview item, and a button should then be added on a panel with the listview item's text Thanks for the answers. I did it this way; ListViewItem activeItem = new ListViewItem(); act ...Show All
SQL Server Complex Transformations (SSIS components vs TSQL)
Greetings SSIS friends, I have been attempting to implement one of our numerous ETL processes in SSIS but hit a brick wall when I tried replacing a complex stored procedure with a series of Merge Join components. In the end, I had to settle with using a SQL task which merely calls the stored procedure and this proved to be the better option as the other version where I used SSIS components only took forever to run. How do people c ...Show All
