Eric Wellnitz's Q&A profile
Visual Studio Tools for Office .NET 2.0 Addins compatibility (KB907417) to pre-Office2003 versions
Dear all, I am a developer of IME (Input Method Editor) and I have tried to integrate IME with .NET 2.0 based GUI via managed C++. It worked fine on Office 2007. To Word 2003 and Excel 2003, it requires KB907417 ( http://support.microsoft.com/ scid=kb%3Ben-us%3B907417&x=5&y=8 ) to load the IME DLL normally. To pre-Office 2003 versions, however, there's no hotfix to make them support .NET 2.0 based DLL. Since Office 2003 allows users to keep older version of Word/Excel/PowerPoint, it dramatically worked on Word/Excel XP/2000 if there's also a patched Office 2003 on the same environment, although only Office 2003's Addins folder, which is "Program Files\Microsoft Office\OFFICE11\Addins", has the patched " ...Show All
Smart Device Development StingArray from unmanaged DLL to managed C#-Project???
Hi! Is there any possibility to return an array of strings from a dll to a managed c# application thanks for answers jojo Yes. Assuming you're on NETCF V1 you'd need to return pointer to that array as IntPtr and use Marshal class to move strings to the managed array. Don’t forget to free up the memory if it’s allocated by native code. ...Show All
SQL Server permissions granted to an application intead of a user
I have an application that talks to an access db located on a 2000 server. I would like grant permissions to the application instead of a specific user. Any help would be great... I am including a link to a related entry in this forum where we have a detailed discussion on this topic: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=786513&SiteID=1 I hope this information will be useful. Thanks, -Raul Garcia SDE/T SQL Server Engine ...Show All
Visual Basic Copy folder error
Hi I use this code: Private Sub Button1_Click_1( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdfolder.Click FolderBrowserDialog1.ShowDialog() foldernavn = FolderBrowserDialog1.SelectedPath Dim taltekst As String For i = newtal To newtal2 If i < 10 Then taltekst = "0" & i Else taltekst = i End If My .Computer.FileSystem.CopyDirectory(foldernavn, "//server/kursister$/" & combohvem.SelectedItem & taltekst) Next End Sub But after first copy i get an error , don't know why what i want is to select a folder, then copy this folder to selected members by using a value from combohvem and the numbers from ...Show All
SQL Server GetDataDrivenSubscriptionProperties vs GetSubscriptionProperties
Is there a similar method for Data Driven Subscriptions like there is for plain subscriptions ListSubscriptions. I would like to get SubscriptionID for use with the GetDataDrivenSubscriptionProperties just as I do for GetSubscriptionProperties. When I execute GetSubscriptionProperties for Data Driven Subscriptions there is no array of Subscriptions. Here is an examole of the code which I execute using rs.exe: Sub Main() 'Dim rs As New ReportingService() 'rs.Credentials = System.Net.CredentialCache.DefaultCredentials Dim DRPlan As DataRetrievalPlan Dim extSettings As ExtensionSettings Dim desc As String Dim active As ActiveState Dim status As String Dim eventType As String Dim matchData As Str ...Show All
Visual Studio Team System CA2000 exception on RSACryptoServiceProvider
I've build the following code in a method and ran code analysis on it: byte [] theResult; RSACryptoServiceProvider theRsa = new RSACryptoServiceProvider (); // Some code in between theRsa = null ; return theResult; This throws a C2000 Warning in the code analysis. This meens it wants me to call theRsa.Dispose() befor the end of the method. The problem is that there is no Dispose method in the RSACryptoServiceProvider class. Any thoughts on this I finally got around to try this solution. It works like a charm. Thanks. ...Show All
Smart Device Development how to set column width of datagrid in pocketpc application(webservice dataset)
hi,in a pocketpc application iam using webservice to bind the dataset in a datagrid.it has only two columns.I need to set the column width for the datagrid,to display the text in proper way thanx use the datagrid table styles class sample can be found here http://www.thescarms.com/dotnet/ColumnStyles.asp this is for the full framework so some method are not available in CF ...Show All
Visual C# Process class used from Windows Service fails
I'm having trouble with the Process class. I have a Windows Service running as SYSTEM and I want it to spawn processes on behalf of users. I get the user's password there securely and create a SecureString. I get a Win32Exception "Access Denied" on Process.Start. If I run the service under the same account as the user I want to start for, I still get the exception except it says "The handle is invalid". I've checked and checked the SecureString and I've made it read-only so I don't think that's it. I actually had gotten it to work some time ago if I impersonate the client but this isn't really practical since the job can be queued up waiting for some time. I've signed all the assemblies involved and I've given the ...Show All
.NET Development TransactionScope, ADO.NET, and Timeouts
Hi! I've been having trouble using the TransactionScope to wrap multiple database queries into a transaction. What happened was, that the queries took too long to finish and the transaction timed out. Of course, this is the expected behaviour. What I didn't expect, is that the data was committed to the database anyways. I built a small test-app to see what happens. At first, I thought it was because I opened the database connection before starting the transaction. That's why I built two methods, one opening the SqlConnection before creating a TransactionScope, and one the other way around. Both simply add some entries to the database and wait a little to cause the timeout. And in both cases, the result was identical. What I noticed was, th ...Show All
Visual Studio Team System Sql reporting services on another instance on the data tier
Hi there, I am attempting to upgrade team foundation server from RC to RTM. I have a dual server setup. On the data tier server, reporting services is installed but on a different SQL server instance as opposed to the default instance used by tfs. We use the reporting services installation for other purposes. We use a separate app tier server for tfs which will have reporting services installed. Unfortunately, the tfs installation on the data tier fails after the pre-requisites check due to the presence of reporting services. Is there any work-around other than un-installing reporting services, for ex: disabling the installation from checking for the presence of reporting services on the data tier. It will be very painful :( for us to un-i ...Show All
SQL Server Problems with print layout
Hi all, In my report I create a group of matrixes and remove the space between them. They have the same size and when I make the preview it looks just fine. They apear all together without any space between them. My problem is when I make the print layout. They appear with a huge space between them and I don't know why. Has someone passed by the same Any solution for this kind of problem Thanks in advance. vjn Hi, If you check the layout in the designer, you can best select the print preview since this gives the most accurate result. Matrixes sometimes have the intention to use the maximum space (everything expanded) when printed. A solution is to put your matrix inside a rectangle. I use rectangles ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Scrolling a 2D Background
New tutorial on scrolling a 2D background on my site XNADevelopment. This is the quick and dirty approach. It covers creating the project, adding images to the project and scrolling those images horizontally in a continuous loop. I've posted the tutorial and the source code if you're interested. So far, I'm SUPER impressed with XNA development and just how easy it has been. The support from the XNA developers in the forums here has just been outstanding. These guys are really going over and above helping out all of us XNA newbies as we struggle to fly and learn the ropes. I'm also just amazed at the variety and number of tutorials being put up each day by sites in the community. If you haven't been to these sites yet, I highly recommend th ...Show All
Visual C# button_click method
I've got what I think is a tricky question (obviously) To start with I have a tablelayoutpanel and a button above the table. When the button is clicked, a new row of controls are added (textboxes and a button). tableLayoutPanel1.Controls.Add(calc, 0, insertedRowNo); tableLayoutPanel1.Controls.Add(qfs, 1, insertedRowNo); tableLayoutPanel1.Controls.Add(add, 2, insertedRowNo); Where calc, qfs and add are the text and button controls, second variable is the column number and insertedRowNo is the row to insert into (at the moment it's just programmed in, not dynamic) I'm able to insert a row anywhere in the table (usually at the bottom) but when the user clicks the button in a row of the table, i would like to insert a new ro ...Show All
Visual Studio Team System Do shelvesets save all workspace file versions?
When you shelve does it save the current version information for all files in your workspace, so that you can be sure to get back to where you were when you shelved The typical example is I am working on some files but need to work on a different issue, I shelve my current changes, then do a get latest to make sure I'm in sync, make my new changes, checkin then unshelve the code I was working on previously. The question is would my workspace be rolled back to the point prior to me doing get latest or would I potentially have files out of sync at that point (sync I was editing the files I shelved possibly related to early versions of other files in my workspace.) I don't think I hit a scenario like this yet, wondering if that i ...Show All
Visual Studio 2008 (Pre-release) Creating .NET 3.0 RC1 projects
Now that .NET 3.0 RC1 is released, what do I use to create WCF projects against that release I do see the 3.0 components installed in C:\Windows\Assembly, but Visual C# Express Edition 2005 filters out all the v3.0 components in the Add Reference... window. Do I use the June CTP release of "Orcas": http://www.microsoft.com/downloads/details.aspx familyid=1A994549-94CB-4F61-903D-A8C8E453EEF4&displaylang=en PS: I had installed the Visual C# Express Edition 2005 after installing RC1 on a clean machine. Orcas tool is available now: Link: Orcas RC1 download ...Show All
