dophine's Q&A profile
Visual Studio Tools for Office Showing Error while running the Setup
Hello All, I prepared the setup for my word template application. I followed all the steps given at the link( http://msdn.microsoft.com/library/default.asp url=/library/en-us/odc_vsto2005_ta/html/OfficeVSTOWindowsInstallerWalkthrough.asp ). It builts the setup successfully. My problem is when i run the setup sometimes it is giving "Object reference not set for an instance of an object" and stops the installation. I am unable to figure out why does it sometimes builds well and installation complete successfully and on the other moment why it gives this error. Please provide me any logical reason. Best Regards Kausar ...Show All
Windows Forms Globalization of special folder names
I turned on the code checking feature of VSTS - what a mistake At any rate it got me thinking because it was suggesting that I put my strings into resources. Is there a method that will deliver the culture dependent strings for the special folder names, in particular Desktop, My Documents, My Pictures, etc. Rather than displaying file names like C:\Documents and Settings\This user\Desktop\somefile.doc, i'm displaying Desktop\somefile.doc Don't know what the standards say about this, and I know the horrible long path name will be a bit shorter in Vista, but since Windows uses My Documents and Desktop in its dialogs, etc, I think my p ...Show All
SQL Server Parameter Available Values
If I have a paramter that has query based available values, how do I get it to use a connection string specified in another paramter to do the query The scenario is that I have one set of reports that pull from a number of databases that have identical schemas and each serve a different customer. i need to be able to somehow populate the valid values with the right data from the appropriate database at runtime. Nevermind, I found it. I just had to populate an array of ParameterValues with just the connection string and then do a call to GetReportParameters, that made sure that the other parameters had ...Show All
Visual Studio Problem "Step Into" unmanaged C++ code in managed C++ project
Hi, I have a managed c++ class library built in VS 2005. When I debug, I can step through all my managed code, but when I reach a line in my managed code that calls an umnanaged method, then I cannot step into this method, even when it is compiled and located in the same project. When I set a breakpoint in the unmanaged C++ and start the application (F5), Visual Studio tells me that "The breakpoint will not currently be hit. No executable code is associated with this line", even thought I know this code will be executed. Any ideas why this might happen The managed cpp-files are compiled with /clr, and the unmanaged cpp-file ...Show All
Visual Basic Very slow speed on displaying controls in a form
How to improve the display performance on dynamics create controls on form load event The following code is very slow. Private Sub Form1_Load( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase .Load Me .Location = New Point(0, 300) Me .Size = New Size(800, 300) Me .Refresh() Dim but As Button Dim x As Integer Dim y As Integer Dim bHeight As Integer Dim bWidth As Integer bHeight = 48 bWidth = 48 Me .SuspendLayout() For y = 0 To 4 For x = 0 To 14 but = New Button but.Location = New Poin ...Show All
.NET Development XPath on xs:selector for a xs:keyref
Thank you in advance for any help you can give... I have a problem. What I'd like to do is define a relationship in an XSD between two tables, where the relationship returns the last row in the child table by default. I thought that the following should work: <xs:keyref name="project_taskproject_eventlast" refer="project_taskkey1" msdata:DeleteRule="Cascade" msdata:UpdateRule="Cascade"> <xs:selector xpath=".//project_event[last()]"/> <xs:field xpath="proj_task_id"/> </xs:keyref> The problem is that the .Net compiler for this returns an error saying ...Show All
Visual Basic using a timeout for file.exists
When I use the file.exists in visual basic, if the file in fact does not exist or there is a firewall involved, etc.... the time to return a value is longer than acceptable for my program. Is there a way I can use a timeout I would like to check to see if the file exists but only if it can give me a return within 2 seconds, for example. Thanks, Arkman5 Hi Arkman5, I haven't experienced a long return time with File.Exists. Are you using My .Computer.FileSystem.FileExists() Can you share a scenario that reproduces this issue Thanks, ...Show All
Visual Basic Data Bound textbox length problem
Data bound controls from typed Dataset when dragged on a form are showing text boxes with maximum length as 32767. if a column is say 20 characters only & user types more then 20 characters and saves it, then it gives error that is not matching the column length. actually if a textbox is data bound with a database column then it should have the proper length set by default... pls help Hi there, I have found that if you alter the Form_Load() procedure in your code, you can set the length of the bound text boxes to the appropriate values. I have placed a code example below. NB. This only works for colum ...Show All
Visual C++ How to compile?
Hi, I wanted to learn c++ but I can't get it stated. I don't know how to compile and run a program. I have Visual C++ 2005 Express Beta 2. Could someone please explain step by step what i have to do to compile and run programs, possibly from Command Prompt as well. I spend quite a while to find out and then i gave up. I appreciate any help I see, I got it now. I wonder if it was the most difficult thing in learning c++. Thanks for your help. ...Show All
.NET Development ASP.NET_SessionId is not UNIQUE In IE7 Beta?
Hi, I m trying to get the session id from asp.net session object. When i was testing it with IE 7 Beta, i found that if i open and close my application in a TAB , it is considered that the application is in the Same Browser. So my aspnet_sessionid is not changing!!!!!! and it still remains the same .. But if i open a new browser, aspnet_sessionid is getting changed. OR does this happen in IE 6 also Ok..my Questions are as follows: Is ASP_NETSessionId is UNIQUE (I mean everytime a User Open and Close the browser). Is this the Session Id (asp.net_sessionid) used by IIS whenever it run an .aspx page via iexplo ...Show All
Visual C# Checking values of variable at runtime.
I have created a C# project using Visual Studio 2003. I have declared a string variable 'strTest'. I want to check the values of strTest.Substring(0, 2) at runtime. I tried checking its value in quickwatch window but getting the following error: error: 'strTest.Substring' does not exist I get the same error for strTest.ToUpper() etc. but its working fine in vb.net. Can anyone plz suggest a solution. Thanks. Ashok Hi David, This works fine in 2005 but the same thing is not working in 2003, C#. Thanks, Ashok. ...Show All
Windows Forms Inherited form question
I would like to create a base form with a menuStrip control that contains 2 menu items to appear on each inherited form. This is no problem! However, I need to add different menu items to the menuStrip on the various forms which inherit from the base. I have set the status attribute to protected on the base form's definition of mnuStrip. I still cannot add items to the mnuStrip on the inheriting form. Any suggestions will be appreciated. What you mean by Status Attribute. Whatever, do the following: select the menustrip in property window box change the Modifier to protected. I think this s ...Show All
Visual Studio Team System VS2005 Source Control Integration With VS.Net 2003
Is there a way to use the source control in VSTS without having to convert my VS.Net 2003 souce code If so, is there an article or some documentation that describes how to do this Note: the client for VS6 & other MSSCCI-compliant IDEs has released its first beta, but this is not the same thing we're planning for VS2003. In short, the former is pretty basic, while we're hoping to bring a bigger featureset to the latter by hacking parts of our 2k5 provider thru COM instead of just reimplementing MSSCCI. I'm sure Brian will keep us posted on the latest. Here's his MSSCCI post: http://blogs.msdn.com/bhar ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to Mirror/Reflect/Flip a texture vertially?
Hi, I've previously developed a small .Net 1.1 application that converts from TGA and DDS files to the native texture files of a game (Dawn of War). The problem is that not everyone wants to then get additional plugins (or can't get plugins) to read the DDS files or convert them to TGAs for editing. Instead, I'm trying to use the DirectX SDK to convert between TGA and DDS (DXT1) without the need for an additional app. The general conversion is working fine, but because DirectX images don't use the same origin coordinates as TGA images, everything needs flipping vertically. I've tried numerous ways of attempting to flip it, all with ...Show All
SQL Server Error (rsInternalError) after installation
I have installed Reporting Services 2005 64bit Enterprise Edition on WIN 2003 64bit SP1 Enterprise Edition. Reporting Services Configuration Manager indicate that everything is ok, green checks except Encryption Keys and Execution Account. Reporting Services databases, ReportServer and ReportServerTempDB, is not "installed" at the same server. Tha DB's runs at a SQL 2005 Server 64bit in the same domain. I get following error: http://localhost/reportserver : An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help Object reference not set to an instance of an ...Show All
