Blackwood's Q&A profile
Visual C++ Console::Write() and Console::WriteLine() versions of cout justification formatting
I cannot find anything anywhere about this. What I want is this. In std I can code: cout << right << endl; cout << setw(25) << "Total Target days: " << setw(5) << totalTargetDays; The output looks like this in the Console window: " Total Target days: 300" How do I accomplish this with Console::Write() and Console::WriteLine() Hello Numerous examples abound on MSDN (or on the web in general), such as under here http://msdn2.microsoft.com/en-us/library/system.console.writeline.aspx . It looks like this: using namespace System; int main() { Console::WriteLine("{0: 0000}", 42); ...Show All
Visual Studio Express Editions An compile error.
I'm a beginner of VC++, that met a error to compile an sample codes from a learning doc. Here the error message: : error C2075: 'Target of operator new()' : array initialization needs curly braces where the error pointed is : Foo *f = new Foo[2]("Hello"); in which "Foo" is just a simple class only. Is there anyone help to me to correct the error, that how to initial an array with initial value. Thank your reply. As you said ISO/IEC doesn't suuprot it, what's ISO/IEC C++ means Does it include Micorsoft Visual Stdio C++ complier( i am using 2005) Or, is there any other C++ complier support such initialization ...Show All
Software Development for Windows Vista MenuItem
How do you make a MenuItem a separator now Chris ...Show All
.NET Development How to handle a integer null value in a (.xsd) dataset
Hi. I want to pass a null value to an integer in a (stored) dataset. The column in the database allows null values, but the dataset throws an error. (VS2005) Goos van Beek In a case of binding, I do not think you have much control, but I believe application should not freeze in this case anyway. Do you get any exception Do you trap any exceptons but do not handle them In a case of unbound controls, you could assign value using next code, but you have to know index of the row that require the change MyDataTable.Rows(IndexOfTheRowHere).Items("MyColumn)=DBNull.Value ...Show All
.NET Development Creating MDB from MDF
I have a mdf file that contains a few tables, but I only need one table from it. I have created the tableadapter and I can view it fine in the DataGridView. What I want to be able to do is output that specific table into a MDB. Is there a simple way to do this programatically I am using VB.NET 2005 You can retrieve schema information using GetOleDbSchemaTable: How To Retrieve Schema Information by Using GetOleDbSchemaTable and Visual Basic .NET Creating an Access database would require DAO or ADOX: http://www.codeguru.com/vb/gen/vb_database/microsoftaccess/article.php/c5149/ You can generate Access tables using Jet SQL DDL: Intermediate Microsoft Jet SQL for Access 2000 It's also ...Show All
Visual Basic stacking dialog boxes
My application instantiates a dialog box and shows it using the showdialog method. That dialog, in turn, may instantiate another dialog and, again, show it using the showdialog method. My problem is that when I dismiss the newly instantiated dialog with the close method, the parent dialog is also dismissed as though its close method was called. Is this anticipated behavior My application is a VSTO excel addin which may or may not be pertinent. thanx, garretth class myfirstdialog ... private sub showsecond() dim newdialog as new myseconddialog me.hide '(or me.visible=false) newdialog.showdialog me.show '(or me.visible=true) end sub end class class myseconddialog ... P ...Show All
Microsoft ISV Community Center Forums Table or Array in the header of an excel sheet
Hi everyone! I'm trying to add a table or something like this in the header (right part) of an excel sheet in order to align datas ,there are 2 columns with 3 lines. I'd like to have something like that: Name Mr XXX Function Blah Blah Age 24 When I add these as a string, I get something like : Name Mr XXX Function Blah Blah Age 24 Does someone know if it's possible and if it is, how Regards, Christophe. ...Show All
.NET Development Display data retrieved from a datasource in a label
Hi all, can someone tell me how to display some data from a datasource into a label control Thanks What kind of DataSource are we talking about (Afaik there is no such class... or interface) this.label1.Text = dataSource.SomeProperty; this.label1.Binding.Add("Text", dataSource, "SomeProperty"); .. ...Show All
SQL Server Management Studio
Hello! What are the differences between "SQL Server 2005 Management Studio" and "SQL Server Management Studio Express" I have an installation of SQL Server 2005 Standard Edition and can only find the Management Studio Express! How can I install the "not-Express-version" Regards CSharpNewbie22 Hello, and thanks for your answer. But what about a review about the differences between those two versions Is there a website for that Regards CSharpNewbie22 ...Show All
Windows Forms Including non referenced dll in ClickOnce deployment
I'm deploying an applikation using ClickOnce I need to include a dll from another project in the solution. This dll is not directly referenced in the project I'm trying to deploy, but is added as a Project dependency. This dll is not getting bublished alongside the rest of the project files and references. How do I get the ClickOnce deployment to include this dll file -- sparrez You actually have no choice in VS whether to sign the ClickOnce manifests because they are required by ClickOnce. So, what I think happened is you installed with the VS created key, and then you made modifications with Mage and then signed with a different key... hence the "identity has changed" error. If that's ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 2d graphics how to animate a sprite
Could someone please post the source code that is needed for how to animate a sprite that is an example in the xna game studio express help that is in the programming guide section under graphics. Could you also please post a animated sprite sample to go with the code. I could not get that example to work. I tried to debug my program but the program stopped responding. Needless to say, I am not a programer and never used C# before. But I am trying to learn how to use the xna game express . Thanks. I have a tutorial on animating a sprite on my site. Here is the link. http://www.xnadevelopment.com/tutorials/thewizard/theWizard.shtml Basically, the tutorial covers making a character walk, duck, jump and sho ...Show All
Visual Studio Tools for Office VSTO & Outlook custom regions
Hi, Is there any support for Outlook Custom Regions in VSTO 2005 SE I mean sample FormRegionStartup class like with Ribbon.... (and perhaps without needing to modify registry manually) I have tried to follow a couple of walkthroughs (both MSDN and from Outlook blogs) but I have a little successs. System.ArgumentException: The value entered for the DesignMode property is not valid. Enter a proper value. at Microsoft.Vbe.Interop.Forms._UserForm.get_Controls()} Message: "The value entered for the DesignMode property is not valid. Enter a proper value." ParamName: null is thrown when I try to access Controls collection in BeforeFormRegionShow(Outlook.FormRegion FormRegion) Wel ...Show All
Windows Search Technologies Uninstalling Windows Desktop Search
I'd like to uninstall my windows desktop search but can't find it in the add/remove programs. How can I uninstall it If you have installed the pdf add-in you should be able to find it in Control Panel: Add/Remove Programs. If you can't find it you may want to make sure you check the Show updates box at the top of the Add/Remove Programs window. This will ensure that you are looking at the complete list of programs that are eligible for removal. Paul Nystrom - MSFT ...Show All
Visual Studio Express Editions newbie qn - VB vs VBA processing speed
Hi guys, please excuse me if this is a dumb question. I've written a programme in VBA in Excel, a Sudoku solver. The program runs entirely within a user form, doesn't use any worksheetfunctions and only uses the excel interface for the button to press to launch the userform - the calculations are all done in an array variable, and the results copied to a microsoft office owc11 spreadsheet control embedded in the userform. I've now written the same programme using virtually the same code, in VB Express. With a bit of tweaking, the programme is now running as a stand-alone application and works properly. However the VB version is more than 7 times slower than the VBA version (the programme has a timer in it, so I can tell). How c ...Show All
SQL Server Always two queues?
I'm just getting around to understanding notification services in sql 2005 and I have been working through some examples. I'm curious as to why there are always two queues and two corresponding services being set up even when both queues/services exist in the same database. Here is my ultimate goal. I want to have triggers put messages on the queue for various stored procedures to handle asynchronously - i.e. table xyz is updated, and I need a stored proc to take the updated values and possibly generate or update rows in another table. When I tried to set up one queue and one service, nothing ever seems to get put on the queue: Create Message Type TestMessageType Validation = Well_Formed_XML; Create Contract T ...Show All
