krypton355's Q&A profile
Visual Studio Tools for Office Seroius error while having combobox into each column's cells
Hi all, After binding my listobject/excelsheet with database I put following code to add combobox into each cell of the column. Excel . Worksheet mainSheet = (Excel. Worksheet ) Globals .ThisWorkbook.Sheets[1]; Excel. Range oRange = mainSheet.get_Range( "C10" , missing); oRange.Validation.Add(Excel. XlDVType .xlValidateList, Excel. XlDVAlertStyle .xlValidAlertStop, Excel. XlFormatConditionOperator .xlBetween, "=C11:C150" , " " ); oRange.Validation.IgnoreBlank = false ; oRange.Validation.InCellDropDown = true ; And here getting error for last line i.e. oRange.Validation. ...Show All
Visual C++ How do I distribute Visual Studio 2005 apps?
I'm using Visual Studio 2005 Professional to create a C++/MFC application. I just recently made the switch to VS2005 (from version 6.0!) so there's probably a lot of stuff I have yet to learn... Anyway, I recently tried to give a user a work-in-progress version of the executable for testing, and the user reported that the program failed with the following message: "This application has failed to start because the application configuration is incorrect." The application is a straight-up native C++ program linking to MFC in a shared DLL. The only other dependency of the project is GDI+ (gdiplus.lib). I did a bit of lo ...Show All
Visual Studio Team System VSSConverter for TFS Beta3
Hi, I am trying to convert a VSS database to TFS Beta3 using VSSConverter but I'm stuck on the settings.xml file. Can anyone give me an example settings xml file that will work with TFS Beta 3 I have tried several things as suggested here http://blogs.msdn.com/akashmaheshwari/articles/386062.aspx but I can't get the format right!! Regards Graham See if this is any better: http://msdn2.microsoft.com/en-us/library/ms181247 [EDIT] No, that's not better. The sample XML code appears to have loads of extra bold tags all over the place... It's mince. If you find a better example, please let me know - I wa ...Show All
SQL Server Watermark Generation is Invalid Error
We are currently doing a proof of concept using SQL 2005 merge replication. However we are currently encountering the following errors: "The common generation watermark is invalid at this replica since it does not exist or metadata for changes not yet propagated may have been cleaned up." " The merge process failed because it detected a mismatch between the replication metadata of the two replicas, such that some changes could be lost leading to non-convergence. This could be due to the subscriber not having synchronized within the retention period, or because of one of the replicas being restored to a backup older than retention ...Show All
Visual Studio Tools for Office Help with smart tags
Hello All. Is it possible to develop some smart tag that will appear when user is working in Microsoft Word 2003 and has pressed Ctrl+Enter (actually the best will be if I could replace default word context menu with my custom written context menu, but I can also use smart tagsto reach my purposes ). Thanks in advance. Thanks again Misha. Looks like I will have to use windows hooks You meantioned that I saw some examples. Can you point me to them Thanks in advance. ...Show All
Visual Studio Team System Evaluation version
Is it possible to download an evaluation version. I don't have MSDN sub so can't get sub downloads. Visual Studio 2005 Team Suite 180-Day Trial The 180 Day Trial Edition is a time-limited, but fully functional, version of Visual Studio 2005 Team Suite. It also includes a time-limited and fully functional version of Visual Studio 2005 Team Foundation Server. ...Show All
Visual C++ Event Handling with OpenMP
Hi everyone! I was recently developing an application that did some pretty extensive calculations, so to guarantee that the calculation would not interfere with the event-handling of my application, i parallelized the main-loop of the application with OpenMP: while(!done) //done can be set by the message-handler { volatile bool fin = false; //Input and calculation in parallel: #pragma omp parallel sections num_threads(2) { #pragma omp section //Input and Event-Handling { &n ...Show All
SQL Server Encryption By Passphrase
I am investigating methods of encrypting data in a large number of databases. It seems to me that encrypting by passphrase would be optimum because it would prevent me from having to create all those database and symmetric keys on the various databases (there wil lbe dozens of them). Can anyone give me any advice as whether or not using encryption by passphrase is a good secure method of encrypting sensitive data in a large-scale production environment I would most likely create a unique passphrase for each database and pass it to a stored procedure as an imput parameter. Thanks, Al Thanks fo ...Show All
Visual C++ YA DllImport question...
Hi - Here's another dllimport question. I'm attempting to access native code from managed code. In this case, I'm using the open source tinyXml - a C++ library and wrapping it with a C++/CLI class. I'm able to compile the source code into a win32 dll. I'm exposing a class - TiXmlDocument using __declspec(dllexport). I also expose the base classes. No problem. On the C++/CLI side (VS2005), I can create an object pointer, i.e. TiXmlDocument *t ; Here's the header info: __declspec(dllimport) class TiXmlDocument { public: TiXmlDocument(const char *); } You may see where the trouble is be brewing. Wh ...Show All
Visual C# C# Compiler heap error - help!
For the last week I have been having a bizarre problem in VS. If I double-click on a windows forms control it does not take me to the event code, but if I double-click a 2nd time it does. From then on, whenever I copy-and-paste, random text is deleted and the cursor is moved to just before the end of the "#endregion Windows Form Designer generated code". All intellisense stops working and ctrl+arrow moves to arbitrary places in words. After a few minues I get a c# compiler error mentioning a heap corruption. Has anyone ever seent his before I've been experiencing the exact "Unknown undo error" prob ...Show All
Visual C# How do I use XSD in 2005
I am a beginner with C# and I am trying to use datasets. I have been tiring to find some good books on how to use xsd or dataset class in VS2005 and haven’t' found much like this. Does anyone know of good examples or books I can buy that has this information. I understand Datasets (limited) but xsd just are confusing. Any help appreciated I’d like to validate a xml string against a xsd string. To make is possible to use this code for every input, I don’t want to use a hard coded target namespace, e.g. urn:bookstore-schema. How can I retrieve the target namespace out of the XSD string In stead ...Show All
SQL Server Package Migration Wizard error -- Index was out of range
I am unable to migrate any DTS packages, from a SQL Server 2000 package, from a structured storage file, or from a DTS package imported into SQL2005 (Developer Edition, 32 bit). Running the Package Migration Wizard, every time I get to the List Package screen, i get the error below. I haven't found any other mention of this so far. Anyone else seen this error or have suggestions "Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index (mscorlib) ------------------------------ Program Location: at System.Collections.ArrayList.get_Item(Int32 index) &nbs ...Show All
Visual C++ error LNK2001!!!
Hi, I have a linking problem after attempting to build the file. The error is as follows: Cthread.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > * Pcthread_stream" ( Pcthread_stream@@3PAV $basic_ostream@DU $char_traits@D@std@@@std@@A ) Could anyone tell me what is wrong and how to go about solving it Thanks. The usual problem in cases like this is that you are either failing to link to some required library or you are failing to include the definition of the specified variable. ...Show All
Windows Forms I've beaten my head against the wall for 7 hours on this Icon problem..HELP?
Alright, here's the deal..I have 32bit alpha blended XP icons that i'm using in a control... I'm using a manifest for comctl v6, which I read was the solution..but I cannot make Images that come from an ImageList to work with transparency..i know it's not the icons because i can use the *SAME* Icon using GDI+ DrawIcon() and it works perfectly fine.&nbs ...Show All
Visual C# Integration of MSDN Library 2005 beta in Visual Studio 2005 beta
Hi there! I'm using Visual Studio 2005 beta 2 (mainly C#). With the most recent MSDN subscribtion update the disks containing the MSDN Library for Visual Studio 2005 (Professional Edition) were delivered. Now I though by me happily "Great! So you finally can install the MSDN local!" Because the usage of the online version of MSDN may be a quite good solution, but I miss some thing there (like the index or simple navigation). So I installed the library. But: Something seems to be wrong - the help browser of Visual Studio does neither contain the index of the new installed library nor does it find any keyword on using search (worse: the& ...Show All
