Yustme's Q&A profile
Visual Studio Tools for Office "Failed to update customization from the specified deployment manifest"
I am attempting to attach a Word customization to an existing .doc file via Custom Document Properties, as explained in the article http://msdn2.microsoft.com/en-us/library/ms268877.aspx . While the article is fairly straightforward, I have yet to get this to work. To keep things simple, I am trying to get this to work in an isolated test case. My project is called "BlankVSTO", and is just that, a blank document with just a MsgBox coming up on Startup. This compiles and runs fine, and I am able to successfully publish it. I am publishing to my local drive just to avoid any network/framework permission errors, and the published folder is c:\AttachTest\. The document opens correctly from the published folder. So far, so good ...Show All
Visual Studio 2008 (Pre-release) Failed to convert Parameter Value from a Byte[] to a Datetime?
hey sync'ers... anyone having trouble with converting Btye's to DateTime problems I have stepped through every line and double checked both the client and server db's and cannot isolate this error in code... hopefully i'm being an idiot and someone can look at the below and tell me so... the exception is above the sync call below somewhere... i've tried datetime instead of DbType .Binary with no success... anyone else have this problem solution Thanks! I'm using this: SqlSyncAdapterBuilder ProposalDetailBuilder = new SqlSyncAdapterBuilder (); ProposalDetailBuilder.Connection = serverConnection; ProposalDetailBuilder.SyncDirection = SyncDirection .Bidirectional; // base table ProposalDetailBuilder.TableName = ...Show All
SQL Server @@IDENTITY in code
Hi all, I encountered a problem with SQL server mobile. I am inserting a row inside a database table through C# code and need to obtain the ID of the last inserted row if successful. I have the following in my code: SqlCeHelper.ExecuteNonQuery(connectionString, "*INSERT STATEMENT*"); Int64 id = (Int64)SqlCeHelper.ExecuteScalar(connectionString, "SELECT @@IDENTITY"); The variable id always ends up NULL. Is this the correct approach to this Is there anything else I can use to obtain the id of the last inserted row in SQL server mobile -- The class SqlCeHelper is a wrapper that I wrote, it works 100%. Thanks OK, Fixed the problem. It really was executing these two statements totally separately ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Humorous but somewhat serious question about XNA
Microsoft has claimed the Nintendo Wii as a "kids toy;" however, if XNA can produce graphics and push performance up to what the Wii is capable of handling (games like Half-Life, Sims 2 from most XNA performance claims), does that mean that XNA is a kids toy too XNA is about development, making games not playing them. What ...Show All
Visual Basic Array starting at One
I'm trying to make a array start at 1 and go to 600, i tryed using "to" but never worked. ReDim Preserve Array(1 to 600) ReDim re-dimensions your array - Take a look at this: http://msdn2.microsoft.com/en-us/library/c850dt17.aspx http://msdn.microsoft.com/library/default.asp url=/library/en-us/vblr7/html/vastmReDim.asp the "to" syntax is not valid in this situation. The ReDim will make your array larger (or if smaller then the elements in the "large"/"high" area are lost) I think the documentation explains it better and hope it helps :-) ...Show All
.NET Development Table Adapter Query with Parameterized Where Like Failure
Hello: I built a query using the query builder as follows: Select Customer_ID, Customer_Name From Customer Where (Customer_Name LIKE @Name) When I test this query from within the query builder it work fine and supply a parameter of T% it works fine. However, if I use the View Data function of Database Explorer or bind the query to a ListBox and supply the same T% parameter it returns no data. The table contains two records with a Customer_Name of "Test Customer" and "test customer" It's interesting to note that in both the View Data Function and the list box if you supply a parameter value of "test custome%" the query works. Anyone got a clue on what's going on and how to fix this ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game designing
I'm a Canadian citizen reside in Jordan , My son is 12 years old ,he has made a full online game (Designing and Programming ) which can be played all over the world live and it's now already live on internet , So kindly please advise me how to improve him ( where can he develop his skills and knowledge ) . F.Y.I he has never study programming and Designing he is a student. Regards B. Mirza Thanks alot for your reply , please note that you need to download the game through thease links : The Link to the game is : http://games.byond.com/hub/Miran94/CharmedDestiny And you need to run the program download it , the download link is http://games.byond.com/download/byond_setup.exe Many thanks and regards, ...Show All
Windows Forms How to select text in a textbox on entry using the mouse?
I have set up this simple event to select the text in a control upon "entry": private void cell_Enter(object sender, System.EventArgs e) { this.SelectionStart = 0; this.SelectionLength = this.Text.Length;} However, the mouse handler seems to disregard this and leaves the entry unselected. Anybody know how I can force selection of the full Text on any manner of entry into a text box TIA, Karl The MouseDown event is triggered after the Enter event. It always places the cursor at the end of the text. What you have to do : private void textBox1_Enter( object sender, EventArgs e) { textBox1.SelectAll(); } private void textBox1_MouseDown( object sender, MouseEventArgs e) ...Show All
SQL Server SQL 2005 upgrade to SP1
I have a Windows 2003 server running both a MSDE and SQL 2005 Database. I want to upgrade SQL to SP1. Does anyone know if upgrding SQL 2005 to SP1 will affect the MSDE Thanks -- Nor ...Show All
Commerce Server BizDesk navigation pane issue
Issue: The navigation pane in the Commerce Server 2002 Business Desk client on our server is not displaying correctly. The list of menus and item appears in while and completely expanded. Clicking on any item in the navigation pane will select that item but no action occurs in the main content pane upon click. My 1 st suspicion was that this was an XML issue due to the fact that BizDesk uses XML2 which IE7 (and certain security updates of IE6) is not compatible with due to vulnerabilities. Service Pack 4 of commerce server fixes this issue so I went ahead and installed the service pack. Once the installation ran there were no issues but it did not fix the problem of the business desk navigation It was suggested ...Show All
.NET Development Setting/getting encoding property
Is there any way to get/set the 'encoding' property of a DOMDocument The following works: var doc = new ActiveXObject( "Microsoft.XMLDOM" ); doc.load( "test.xml" ); // Print initial encoding var pi = doc.firstChild; var eattr = pi.attributes.getNamedItem( "encoding" ); var encoding = eattr.value; // Convert to string and reload (this loses the encoding) var xml = doc.xml; doc.loadXML(xml); // Reset the encoding to "ISO-8859-1" pi = doc.firstChild; var eattr = pi.attributes.getNamedItem( "encoding" ); if (eattr == null ) { eattr = doc.createAttribute( "encoding" ); pi.attributes.setNamedItem(eattr); } eat ...Show All
Community Chat 2007 Feels Like Heaven
2007 Feels Like Heaven. I hear the party children give this year a name you spell with Letters. "Feels Like Heaven" Well, that's also a rhyme. Teach old people to replace the # symbol with numbers. Start with making the newest most modern method 1 next= I don't know anything about code sample. That's why I'm furnishing you this free information. nobugz wrote: I tried to figure it out for a while too. I think I found the answer ... I don't get it ...Show All
Visual C++ c++/cli wrapper assembly fails to load
Hi, I have a class A (unmanaged code, exported in A.dll). I wrote a wrapper B in a new assembly interfacing class A and its members/methods. This is all done in Visual Studio 2005 Standard. Now I wrote 2 test programs - the first as c++/cli and the second in c#. No matter which of those two I invoke, on startup a BadFileImage Exception is thrown. And the first line of code is never reached. What can be wrong here I have a similar project, where a class A is exported by a static library. In that case, everything works as expexted. I do not understand what's going wrong here. Any help is appreciated. ...Show All
Windows Forms How do i prompt an error if different format is used...
I building a software that can play movie file. How do i make an error prompt in C# Coz now i have a button that open a dialog box to choose movie file coz my program only can play movie so if let say a user open format other than a movie format..eg. mp3,.wma a messagebox will appear saying "this is not a valid movie format" something like that.. can anyone help my source code for the movie: //----------------------------------------------------------------------------------------// //Video private void button1_Click( object sender, EventArgs e) { // Allow the user to choose a file. OpenFileDialog openFileDialog = new OpenFileDialog (); openFileDialog.Filter = "Me ...Show All
Microsoft ISV Community Center Forums VBA hangs when closing Access, PPT, Outlook, Excel
Windows XP Pro, Office 2003 SP2 When I open a database in Access, work with it, then close it, it closes immediately. When I open a database, then open the VBA Editor, Access fails to close immediately, but instead shows the error dialog “Unexpected critical error; can’t start program.” I assumed it was trying to compact the database, so I turned that option off, to no effect. Click OK in the error dialog dismisses it. Access stays running. After a while (20 secs ), a new error dialog opens with the message “Runtime error ‘429’: ActiveX component can’t create object.” Same thing happens when I open the VBA editor in Outlook, PowerPoint, and Excel, but not in Word. What is going on here, and how do I ...Show All
