EWoodruff's Q&A profile
Windows Forms ClickOnce - Can't remove shortcuts
I've created a second version of my ClickOnce installation. I start the original installed version of my application and it asks me if I would like to update the application. I install the new version and it fails with an error report, which claims that is can't remove shortcuts. The 'Publisher Name' is already being used in the Start menu by some of my other applications. If I click on the button to install the update again the program starts. There is no shortcut on the Start menu. What's wrong The shortcut does disappear, in fact it never reappears. I tried moving the other applications to another Start folder and reinstalling my ClickOnc ...Show All
Windows Forms How to get the latest version
Hi all! I get TaskVision and the client asked me to install the newer version, but it is the 1.1, marked as 08/07/2003 and I think that it cannot be the latest. Am I right Thanks! I don't think the msi has changed since then (october 2003 ) ...Show All
.NET Development Best Practice for making DB connection available to components
Since I haven't seen any tutorials/documentation on this subject, I am probably missing something obvious. Any hints would be appreciated. Simplifying the situation a bit, I have a library of data objects (SalesOrder, Customer, Shipment, etc. compiled in a dll) that I would like to make available to both desktop and ASP.NET applications. Each of these objects needs access to a database connection, and I figure that the "host" application should somehow make its connection available to the library (setting a connection string within the component seems like the worst possible idea, and passing a connection to the data object ...Show All
Visual Studio EventWatcher sample does not run correctly under VS 2005.
Hi. EventWatcher sample program show how addin conrols VS events. The sample provided quite old time, but it's really good one. It works fine under Visual Studio .NET and .NET 2003. And it also works fine under Visual Studio 2005 with VSIP 2005 SDK RTM. But a problem took place when I use that sample under my test environment. (My test environment only installs windows 2000 and VS 2005 with VC++ option only.) In the environment, EventWatcher sample program does not get any events. It registers events correctly, but it does not receive any events. Does anyone know about this Thanks for the informat ...Show All
SQL Server Join XML fragment with real table
I was wondering how someone would go about joining an XML fragment with a SQL table. Say for example this is my XML fragment. <foo><key>1</key><description>One</description></foo> <foo><key>2</key><description>Two</description></foo> My table looks like this: key SomeInfo 1 SomeInfo1 2 SomeInfo2 I want to be able to create a Stored procedure that takes my XML fragment as an xml type and then create a SQL select statement that looks like this in pseudo code. Select myTable.key, myTable.SomeInfo, @myXML.Description From myTable an ...Show All
SQL Server SubTotal
example: Account Sales New John Doe 1,000,000 George Bush 2,000,000 Juan Luna 3,000,000 6,000,000 Old Michael Tell 5,000,000 Billy Banks 2,000,000 7,000,000 where Account and Sales are table columns, New and Old are group names. i want to display the total of the group. ...Show All
Software Development for Windows Vista Plans for managed SDK for Vista development?
I wasn't sure if this was answered anywhere ... are there plans for releasing the version of platform sdk (for vista) for managed APIs (i.e. developing in .net/winfx). I know that the current unmanaged APIs for Vista can be used in managed code, but the complexity of those APIs still remain the same (they are still unmanaged). Having these APIs in the form of .net classes would really help (also the fact that .net is now part of windows vista install). Are there any guidelines or articles/samples on how to use the unmanaged APIs in managed code (again, i am just talking about the platform sdk for vista). Thanks! Keeron ...Show All
Smart Device Development Bluetooth communication using Winsock
Hi, Presently I’m working on Win CE for Pocket PC and I’m trying to do some enhancements to an existing Win CE application. The application has originally support for USB and Acitve Sync and other connectiviry mediums and right now I’m working on the Bluetooth connectivity mechanism. The win CE application should connect to a host application that resides on a PC (windows XP). On Win CE side I’m trying to use Microsoft stack and on the PC side I’m using widcomm stack. I’m trying winsock over Bluetooth but I’m not sure if my approach is correct as it is new to me. J These are the steps I’m ...Show All
SQL Server Unable to open MSDB node
I'm sure there is a simple answer to this but it eludes me at the moment. I’m using the Developer Edition of SQL Server 2005. The MSDB node under Integration Services->Stored Packages refuses to open. It always fails with a login timeout message and that the connection was actively refused. I’ve run the SQL Server Surface Area Configuration tool and allowed remote and local access, even though it’s all installed on the local machine. This didn’t help. The next thing I did was to turn off all my firewalls and internet access control software and it’s still not working. ...Show All
SQL Server Query Issues Pt.3
myCommand = New SqlDataAdapter("SELECT tblWatchInstance.WatchID,tblWatchBrands.Description,tblWatches.Serial_Number,tblWatches.OwnerFName,tblWatches.OwnerLName, tblClients.Name FROM tblWatchInstance INNER JOIN tblWatches ON tblWatchInstance.Watch_Key = tblWatches.WATCH_KEY INNER JOIN tblWatchColors ON tblWatches.COLOR_KEY = tblWatchColors.COLOR_KEY INNER JOIN tblWatchBrands ON tblWatches.BRAND_KEY = tblWatchBrands.BRAND_KEY INNER JOIN tblWatchTypes ON tblWatches.WATCHTYPE_KEY = tblWatchTypes.WatchType_KEY INNER JOIN tblClients ON tblWatchInstance.Instance_Key = tblClients.CLIENT_KEY WHERE tblWatchInstance.RepairNumber LIKE '%" ...Show All
Visual Studio Team System About asp.net development web server and tests
I think i need to clear some concepts. I have a test solution, with a WebApp project, i class library project and a test project with a bunch of unit tests already created. As the documentation say, the WebApp property called "Use dynamic ports" is set to false, and a fixed port is selected. I can run the WebApp and the fixed port instance of the development server stays running, even if i cancel de debug... what (i guess) is correct. My question is: Why when i run any unit test on methods inside the webapp, a new instance of ASP.NET is executed (with a different port). The same thing happens with a web test, or a load t ...Show All
.NET Development Cannot convert type 'System.Type' to 'System.Data.SqlDbType'
I encounter error, " Cannot convert type 'System.Type' to 'System.Data.SqlDbType' " when attempting the following code: // Create a secondary DataSet in order to research the unknown data types of the destination table columns. SqlDataAdapter sqlResearchAdapter = new SqlDataAdapter(); SqlCommand sqlResearchCommand = sqlSelectCommand.Clone(); DataTable sqlResearchTable; DataSet sqlResearchSet; sqlResearchAdapter.TableMappings.Add("Table", sqlTableName); sqlResearchAdapter.SelectCommand = sqlResearchCommand; sqlResearchSet = new DataSet(sqlTableName + "0"); sqlResearchAdapter.Fill(sqlResearchSet); ...Show All
Visual Studio Team System need help reg. PDB - FxCop
I am using C# .Net V1.1 for my project. I need help on retrieving the start and end source line number of a given method. Can this be done through reading the PDB file I basically have few coding guidelines (specific to my project) where I want to check those through a tool. So, I am planning to read all Classes, Methods, Members through .Net Reflection and once I find the Method Name and its signature I’ll get the method and its implementation from the source .cs file and I’ll look for the adherence to my coding guidelines(by string matching) . So, for this I need to know the source code start and end line numb ...Show All
Visual C++ C3861 error using Visual C++ 2005
Hi, I was trying to program a C code using Visual C++ which basically saves an area on the screen to a buffer. However, when I tried to Build the code, I got the following error message: "error C3861:clrscr identifier not found." Is it possible that Visual C++ does not support DOS graphics functions Your prompt help would be much appreciated. Thanks Sami It would appear not, it would appear that function is specific to Borland compilers ( at least that's what google told me ). Certainly, the Microsoft site does not mention that function, which is obviously non-standard. ...Show All
Visual C++ MFC CCombobox dropped width/length problem
I recently had to implement some lists in combobox. For a better usability (the texts were cropped and only one line of thelist was displayed when dropped), I tried to use the CCombobox::SetDroppedWidth member fonction with the maximum length of my items list, as shown in the Msdn example, just after inserting the items : [code] index = comboboxCtrl.addstring("blahblahblahblahblah") comboboxCtrl.SetItemDataPtr(index, myData) CString str; CDC* pDC = comboboxCtrl.GetDC(); & ...Show All
