Cisco_Systems's Q&A profile
Visual C++ How to convert 4 types of C++ strings?
I am new to C++ programming ... and it seems not everything is written in the books. Can anybody explain to me how to convert between the 4 types of string representations: char * char[ ] string class String ^ class Are there simple recipes for conversions Are the classes string and String^ only used with Microsoft C++, or with ANSI C++ as well It would be wonderful to get a sort of systematic overview, which I could not find in any book anywhere so far. Thank you, Sam and the others. This was exactly what I was looking for. How could I possibly miss the perfect Microsoft documentation ...Show All
Visual Studio VS 2005 Addins to right-click menu
Hello guys, I try to create VS2005 addin to Team Explorer right-click menu. The idea is: When you open Source Control Explorer, choose the project and right-click on it you'll get the menu. You can choose: <Get Latest Version> and etc from this menu. My purpose to add my own command (Ex: Custom Get) to this menu. Most of the topics I've found in Google are describe how to add command to main command bar - like Tools-><Your command>, but I haven't found anything about right click menu. Please help.... Thanks I have placed the addins in the right directory. I used filemon to confirm this. I click on Tools -> Addin Manager and I can see that devenv.exe opens/reads/closes the .addin files. But unfortunately, I still can ...Show All
Visual Studio Tools for Office I need my MailItem saved as .msg not TEXT
I need my message to save as an Outlook message but it saves as text. Using VST0 2005 addin template for Outlook What am I missing. if (Item is Outlook.MailItem) { string theSubject = ""; Outlook.MailItem thisItem = (Outlook.MailItem)Item; theSubject = thisItem.Subject; thisItem.SaveAs(@"C:\TestFolder\" + theSubject + ".msg", Office.MsoFileType.msoFileTypeMailItem); } Wrong enumeration. As documented in the Help topic on SaveAs, it's not Office.MsoFileType.msoFileTypeMailItem but Outlook.OlSaveAsType.olMsgUnicode or olMsg. ...Show All
SQL Server attribute key was not found error
everytime i try to process my cube i get this error: Errors in the OLAP storage engine : The attribute key cannot be found : Table : dbo_MCSFinFactData , Column : InvoiceDateDimensionID , Value : 15. Errors in the OLAP storage engine : The record was skipped because the attribute key was not found . Attribute : InvoiceDateDimensionID 8 of Dimension : InvoiceDate Fiscal Year 2 from Database : SRDBAnalysis , Cube : MCSFinancial , Measure Group : MCSFinancial , Partition : MCSFinancial , Record : 10. I have checked the dimension table and the record with an invoicedatedimensionid value of 15 exists. there are also many records in the fact table that use an invoicedatedi ...Show All
Visual C# @ operator, what is its meaning
Hi! In example, in this code: fs = new FileStream (@sFile, Modo); What's the meaning of '@' I'm looking for, but i don't know what's the name in english of this character (in spanish 'arroba'). Regards. @ is called At the Rate Sign and is used for string building in .Net. You know \ is an escape sequence character in many languages like C, C++, Java and this is also true for C#. So when you write something like this: C:\nt.txt Complier will ignore the first occurance of \ and will see what's next to it n in this case it'll assume it a Next ine Character. So when you use @"C\n.txt" you basically tell the compiler the string in "" is an exact string and compiler should not igno ...Show All
Visual C# Thread.Sleep problem
I have a thread doing some work and sleeping for a certain amount of time and doing the work again. The time it sleeps is a specific length of time minus the time it takes to do the work. I found that it always sleeps a couple of millisenconds less than the time I passed to Thread.Sleep. Could some one give me some help on this The sleep amount is not exact. It depents on how the OS shedules the threads and how much resources and time other threads require. You should sleep less and have a check if the timespan you needed to wait has been reached... That's more reliable. ...Show All
.NET Development SqlDatetime overflow
Hi guys the error SqlDateTime overflow. Must be between 1/1/1753 12:00:00 AM and 12/31/9999 11:59:59 PM. has me crazy! Is become from sql server, framework, regional setting on client pc or what I trying to input a begin date 01/06/2006 (default language of the database is m/d/y), the application (asp page) begin date when load the module is 01/01/1. In a environment producction the database is formating equals like the enviroment test and no problems whith dates formats. Any ideas Thanks, I got the same error it is because you are trying to update a datetime field which is having a default value so you will have to let it allow null in the database and don't give it a default value an ...Show All
SQL Server Why it is rounded off the decimal number??
I am using the following code but it rounded off the decimal number and save the number in rounded form in the database(SQL). Plz tell me what is problem with this code. using System; using System.Data.SqlClient; using System.Collections; using System.Windows.Forms; using System.Data; namespace ConsoleApplication1 { class Program { static void Main( string [] args) { string connString = "server=(local);database=WH;Integrated Security=SSPI" ; SqlConnection conn = new SqlConnection (connString); try { conn.Open(); DataSet oDS = new DataSet (); // Create the DataTable "Orders" in the Dataset and the OrdersDataAdapter SqlDataAdapter oOrdersDataAda ...Show All
Visual Studio Tools for Office VSTO Outlook Add-In not loading outside of VS2005
I created a Add-In project using the Add-In for Outlook 2003 project template. I started with some simple code to test functionality and then continued to create the add-in I wanted. During development I always tested using the debug in VS2005. I never had a problem with it appearing this way. However, now that I am trying to deploy the Add-In, I am unable to get the Setup project to work. Even on my own machine, once the setup project is installed, the add-in does not load. I created a simple MessageBox.Show("hello") add-in to see if I had introduced the issue. However, this add-in behaved the same. I could always run it in VS2005; however, when installed from the setup project, the add-in would never load. Another str ...Show All
.NET Development The RSS Reader Project with a microsoft access database file
Hi, I just finished the RSS Reader project from the Absolute Beginner’s Video Series (lessons 12 to 16 http://msdn.microsoft.com/vstudio/express/visualcsharp/learning/default.aspx ) with no problem using a SQL server database, and now i'm trying to addapt it for using a ms access db file. I changed the data source and when I run the application all works fine.. but when i close the application there's no records on the access db file. When i debbug the project I see that the value of rowsAffected is 1 after the update: int rowsAffected = folderTableAdapter.Update(folder); Am I missing somthing I've also tried doing rssDataSet.AcceptChanges() after the update with the same result. Any advice I'm totally new to .NET ...Show All
Commerce Server Auction (Bid n Buy) System in Commerce Server 2007
I read somewhere that Auction Objects are available in Commerce Server 2002, to build a site that provides Bid and Buy option (like on eBay) on e-commerce site. What options do we have on CS 2007 -Manish Garg Yes, we did not bring the Auction sitelet forward to CS2007. This doesn't mean that you can't use what's there. Stay tuned, I am in the process of converting the sitelet. http://blogs.msdn.com/maxakbar -Max ...Show All
SQL Server Deployment options help!
Sorry I am a newbie in SSIS. I have got a small project that requires to feed in a .CSV flat file and load the data into SQL server 2000. I developed a SSIS package for this and get it working in my computer, but I need to deploy it to customers that they don't have VS 2005 or SSIS installed. May any one of you give me some clues on that I played around with the flat file deployment and again it seems only working on my computer as I have everything installed. Did you read BOL http://msdn2.microsoft.com/en-us/library/ms180167.aspx http://msdn2.microsoft.com/en-us/library/ms137900.aspx or the SSIS management whitepaper http://www.microsoft.com/technet/prodtechnol/sql/2005/mgngssis.msp ...Show All
SQL Server Pretty limited ....
guys i'm trying to use a Lookup in a dataflow that looksup stuff in the results of a query. Problem I have is that the query needs to take two parameters.. (Source and BaseCurrency in the code below) and i can't figure out how to supply the parameters.. Parameters can be supplied in other task types or transforms .. but can't see how to do it in the Lookup... PJ SELECT ForeignCurrency, RateFromFile AS YesterdaysRate FROM inputrates IR WHERE fileheaderid in ( SELECT top 1 MAX(ID) FROM FileInputAttempts FIA WHERE Source = ' ' AND FIA.BaseCurrency = ' ' AND status = 'SUCCESS' Group by CAST(FLOOR(CAST(LoadDate AS float))AS datetime) order by MAX(loaddate) DESC ) ...Show All
Visual Studio 2008 (Pre-release) xmlns:src="clr-namespace:DataBindingLab"
Hi! I'm using:VB.net in Visual Studio 2005 ver 8.0.507... with Orcas Technology Preview - WinFX Dev Tools 1.0 I'm trying to get the DataBindingLab from the Hands-On-Lab to work -- with a caveat -- it does actually compile and execute, but there is what must be a small issue. The "Design" page of {Design, Xaml, Source} from DataBindingLabApp.xaml doesn't display, I get the "Whoops! Visual Studio has encountered an error reading the designer..." The code that fails is the xmlns:src="clr-namespace:DataBindingLab" ==> assembly could not be found. Are you missing an assembly reference DataBindingLab is the project name and this is the default code. It's probably helpful to note that every place that xmlns: ...Show All
Smart Device Development Orientation Aware Property Sheet
Hello all, I am having difficulty making the vertical scroll bars appear in my property pages when the screen has been changed to landscape mode, and the SIP is up. So far, I am finding that the vertical scrollbars will appear on *some* pages when the property sheet's extended style has WS_EX_CLIENTEDGE set in the PSCB_PRECREATE hook event. What are some of the fundamental requirements for vertical scrollbars to show up in landscape mode with the SIP up on a Property Sheet ...Show All
