huangchikai's Q&A profile
Visual Studio Tools for Office VSTO Excel add-in only working in development machine
Hi, I am creating a Excel 2007 VSTO COM Add-In using VSTO 2005 SE . It runs perfectly fine when I build it and run the in development computer having VS 2005 . However, when I try to install the setup.exe or .msi file for the same addin in the client machine or Virtual PC having the following installed: 1. VSTO Runtime - Shipped with VSTO 2005SE 2. Office 2007 3. .NET 2.0 Framework it does not seems to load . I have done : 1. caspol settings to make it Fully Trusted . 2. set vsto_suppressdisplayalert=0 and run excel.exe from cmd ......Same Results .... I get the following error " Not Loaded. A runtime error occurred during the loading of the COM Add-in." It has been over a week now that I am str ...Show All
Visual C++ Asked for VC 7.1 libraries when compiling a project in VC 8
Hi folks: I encountered a problem when I was compiling a VC++ 8 project convered from .NET 2003 in Visual Studio 2005. When the process came down to link stage, the VS 2005 IDE asked for some version 7 VS libraries such as "mfc71.lib", "mfcs71.lib", "libc.lib", etc, which are not included in VS 2005. Could anybody provide any hints for cracking this problem. Thanks a lot in advance. Jason Yes you're right Ayman. My base project is built as a Win32 application with "Use of MFC in a Shared DLL" option. Its runtime library option is thus selected as "Multi-threaded DLL(MD)". The compilation options of some of the referred libraries were not compliant ...Show All
Visual Studio Team System DataDude and ADOvNext
Are there any plans to support ADOvNext in VSTS for DBs Have you thought of refactoring dataobjects just by refactoring variables in ADOvNext code Thanks, Martin Kulov http://www.codeattest.com/blogs/martin I cannot commit to any future unpublished product development, but it is certainly lays in our vision to provide a bridge between the application and database schema, and this would be a natural integration point. You must have been reading my mind -GertD Software Architect Visual Studio Team Edition for Database Professionals ...Show All
Visual Studio Removed J# distributables from VS2005
I removed the J# distributable files from VS2005 through the Add/Remove Programs option on the Control Panel. Now when I run VS2005 I get the following message in the output window: The Visual J# Language Service Package ({E6FDF8B1-F3D1-11D4-8576-0002A516ECE8}) did not load because of previous errors. For assistance, contact the package vendor. To attempt to load this package again, type 'devenv /resetskippkgs' at the command prompt. I am a C# programmer so I don't need any J# capability. Am I safe to ignore this message or should I re-install VS2005. Thanks Mike, Your points are well taken. I do happen to have J# and Visual Web Developer Installed. What is the safe way to remove these ...Show All
SQL Server Date Range filter
Hi guys, I need to filter result in MDX query by passed Start Date and EndDate I come up with following solution Without specifics on what you're doing, it's hard to suggest a specific course of action. (What is the full query, what tool, etc.). Some suggestions on how to proceed: Validate that your filter "set" is in fact correct. I'd look at the the specifics behind the selection, date formatting, etc to ensure it's still being properly parse. Try (in the MDX) creatng a dynamic set, then referencing the set in the where statement. At a minimum, it'll make what you're trying to do easier to understand and test. Depending on your front end tool, consider putting the "WHERE" into the pages (axis 2 ...Show All
Visual Basic RichTextbox Copy Files
When I paste a file (xls or Doc) copied from richTextBox (vb.net 2003) to an folder, only appears a "Scrap" file, why Thanks Maintaining the format of the xls file is going to be the trick...you can however easily save file in plain text or rtf formats to a folder and then open them in word or excel... Me . RichTextBox1 . SaveFile ( "C:\MyFIle.Doc" , RichTextBoxStreamType . RichText ) ...Show All
.NET Development We're not supposed to use List<T> ? ( List )
I installed FxCop and had it analyze my application. In several spots, it says: "Do not expose List<T> in object models. Use Collection<T>, ReadOnlyCollection<T> or KeyedCollection<K,V> instead. List<T> is meant to be used from implementation, not in object model API. List<T> is optimized for performance at the cost of long term versioning. For example, if you return List<T> to the client code, you will not ever be able to receive notifications when client code modifies the collection." I'm a bit weak in my OO.. so I'm not sure what "expose" really means in this context. Is this saying to not use List<T> ...Show All
Visual C++ Big loss in performance when using wrapper for unmanaged code
I have followed the general outline by MVP Brian Kramer when developing a wrapper for Rick Wagner's C++ version of the Mersenne Twister. But to my utter disappointment the performance of the code was quite week. The native code running in a win32 console application was able to produce 300 000 000 million random integers in just over one second, but my wrapped version running in an CLI console application took about 6-7 seconds to produce the same amount of integers. This was absolutely not what I have hoped for. Performance is of the utmost importance in the part of my application where I will run the Mersenne Twister. I know that is it not advisable to run my wrapper code in a loop, but I really have to do that in my application due t ...Show All
Visual Studio Express Editions Accessing elements from a different window form
Hey everyone, Just downlaoded C# EE (Express Edition) the other day and ive gone through the 10 hours of Absolute Beginners videos, so i have a decent understanding of C# now and the way Visual CSharp Express Edition 2005 works. My question is this, Say i have a new Windows Form popup as a dialogue box with a single text area known as textBox1, and when someone clicks on the "Add" button it is to add the contents of the textbox onto a RichTextArea known as mainWin in the "main" class. So what im asking is, in the class button click 'contructor' i think its called (when you double click on the button in the designer view) How would i go about accessing main.mainWin (and its set to public) (ps. id LOVE to post source co ...Show All
Gadgets MIME types in Spaces vs. Live.com
It looks like a recent change to Spaces makes it more restrictive on MIME types than live.com. Specifically, where the application/xml MIME type used to work just fine on Spaces and continues to work on live.com, Spaces will no longer load a gadget.xml manifest presented as application/xml. Instead, it requires the manifest to present as text/xml. This was preventing me from debugging my gadgets on Spaces because my web host presents .xml files as application/xml (a simple .htaccess file fixes this, but it took me a bit to track down the root of the problem). My Hangman gadget currently has a problem retrieving its data feeds which are presented by Yahoo as application/xhtml+xml. The same feeds pull just fine on ...Show All
.NET Development Newby of Newby questions
As a seasoned programmer, I am used to writing extensive code to accomplish the unordinary. Of course I would write COM objects, and my own function libraries to approach OOP. Now it's time to move from VB6 to VB.NET, with it's promise of less code and less time. As you might expect however, .NET takes much more time, due to the hundreds of classes in the Framework that I am as yet unfamiliar with. As with any language, once you get through the familiarization zone, you're good. .NET is clearly going to take more time than usual, and I'm optimistic about the outcome. There are many things that just don't make sense to me yet. For example, today I wanted to use HttpUtility. I only know that because someone herein sugg ...Show All
Software Development for Windows Vista CreateWorkflow Exception
I created a State Machine Workflow Console Application with the Visual Studio Project Wizard. When I run it I get an InvalidOperation Exception when calling the CreateWorkflow Method. Additional Information: "The requested Performance Counter is not a custom counter, it has to be initialized as ReadOnly" Anyone an idea how I can solve this problem thank you in advance. I use a german Windows XP SP2 Proffesional and the VS 2005 Team Edition. I installed the .Net Framework 3.0 and then the VS Extensions for WF. I'm not sure what elevated mode means. I only wanted to test WF, so there is no workflow to investigate, yet :-) Thanks in advance ...Show All
Visual Basic Running a batch file
Is there a special way of running a batch file I have tried process.start but it is not working. The batch file works when I double click it but not when I try to run it through my program. Thank you, Troy L The following will work without any clicking at all and will start xyz.bat with no arguments. Process.start("xyz.bat","") If your requiring a double click - then its probably something in your code or the bat file as process.start should not require any user involvement. ...Show All
SQL Server Problem when exporting data into Excel file from SSIS
I have problems when exporting data into Excel file from SSIS. It all works fine with numeric columns but an apostrophe is attached at the beginning of each text cell. I tried using derived columns and data conversions but it didn't work. It seems to me that problem is in 'excel destination' task... I saw many people had this kind of problems too... Is there any solution possible Thanks. This inconvenient behavior of the Excel driver is mentioned in the BOL topic on the Excel Destination, and appears to be an attempt by the driver to force the output to be treated as string data (since the destination column does not really have a built-in data type), using the convention of the single quote that dat ...Show All
SQL Server web parts with ie7
Hello, I'm using RSWebParts in a SharePoint page. The Explorer and the Viewer web parts worked fine with IE 6 but now I'm using IE 7 and when I choose a report in the explorer to be opened in the viewer it opens a new browser window with the report instead and the viewer stays empty. I looked into the source code and I think thai it's all ok. Does someone passed by something like this Any solution Thanks in advance. vjn ...Show All
