sobo's Q&A profile
.NET Development Error occured when i am using com objects
Hi all, First of all thanx to read this. I have created a VB dll and it is registered into my local machine. I am using this dll and all classess and methods into my .net application; Exception Details: System.InvalidCastException: QueryInterface for interface testdll._Class1 failed. Line 25: Dim vb6_class As New testdll.Class1Class() Line 26: Line 27: TextBox1.Text = CInt(vb6_class.Hi) Line 28: VBCode Public Function Hi() As Integer Hi = 44 End Function can u provide solution for this and some guide line about COM objects. Hi, Try if you can directly instantiate the class using the ...Show All
Visual Studio Team System Migrating TFS workspace from TFS Server A to TFS Server B, is this possible ??
Hi, I’m trying to migrate a complete TFS Workspace hosting in a small TFS Server to a bigger environment. I can unbind the complete solution and add the solution to the new TFS Server, but I want to keep the history, build tests, etc. Is there any way to do this Thanks from Spain Bruno Capuano Blog: http://www.elbruno.com Unfortunately, we don't have a partial migration tool. You have to restore the entire database on top of the "bigger" server, which would erase anything it already has. There's work being done to enable migration on the Team Project level, but I'm not sure of the ETA. ...Show All
Visual Studio MFC debug information absent with symbol server use
How do you set up VC++ 2005 to use a symbol server for debugging an MFC application When I set up the symbol server, I can no longer step into MFC functions. In the debug output the following lines are present for MFC: 'MFCTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugMFC_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_c8452471\mfc80ud.dll', Symbols loaded (source information stripped). 'MFCTest.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c\msvcr80d.dll', Symbols loaded (source information stripped). It appears that the symbol server has supplied the MFC PDB informatio ...Show All
SQL Server Convert UTC time to local time
Hello, I am new with the reporting services. I am creating a report and I need to display date/time on the report. But the servers stores those date/time in UTC. How can I convert them to the local time in my report. Thanks for your help. You need to use System.TimeZone.ToLocalTime(UTCTime). See http://msdn2.microsoft.com/en-us/library/system.timezone.tolocaltime.aspx . You should be able to use TimeZone.CurrentTimeZone if you want to convert using the server time zone. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Preventing memory leaks
Hello, I am trying to make my project clean and so I am looking for memory leaks reported by DirectX debug driver. The problem has two parts: 1) if I set a "Break on AllocId" in DX configuration with Id obtained from previous program run where DX reported memory leak, project is stopped on absolutely unrelated piece of code - is it possible that it takes some time for DX to stop it when it catches a problem how can i find the exact location could this be because of I am running it multithreaded 2) I discovered that even such calls as SetStreamSource, SetIndices, etc. throw a memory leak if they are not "unloaded" by th ...Show All
Windows Forms changing column header height in datagrid
Hi all, Trying to display column headers where the header text is the column number (e.g. 1, 2, 3, . . 30). To save on space, I'd like to have the column header for 2 digit columns (e.g. 10) be aligned vertically - that is the first digit will be above the second digit (e.g. '1' with a '0' below it). I tried separating the 2&n ...Show All
.NET Development Very slow debugging
I have the 2.0 framework on one computer and haven't tested it anywhere else, but I'm experiencing very slow debugging. I have a Windows Form app with about 60 classes/forms. Sometimes after making a few character change in code it takes 30 seconds before I can continue in the editor. Opening a form with a lot of controls on it can take almost a minute. The hard-drive runs almost continuously during these "wait" times. The computer is a 3.2GH P4 with has 2GB RAM and 700GB (fast) disk. I know that the 2.0 editor does a lot more work than the 1.1 editor did, but the wasted time during coding is very PAINFUL - anyone else having these ...Show All
Software Development for Windows Vista Can the state-transition workflow designer control be extended (using code) to support "swim lanes"?
http://office.microsoft.com/assistance/hfws.aspx AssetID=HP815503021033 is an example of an UML 2.0 Activity diagram ...but don't get caught up in all the details you see in the diagram. However, do note that the activities are aligned into 2 role-based groups (vertical columns): Program Administration and Test Administration. These vertical columns are often referred to as "swim lanes". Is it possible, in a custom WinForms designer host application, to extend the state -transition workflow designer control to create and display swim lanes In this case, it would be a new Root Activity derived from StateTran ...Show All
Visual Studio Express Editions How to change key assignments
Can anyone help me wrestle with key assigments in Visual Studio Express. Tools | Options | Environment |Keyboard must be the worst designed dialog to change key assignments I have ever seen, that is, if it is actually designed to do this - I can't even tell. I simply want to make it so that Ctrl-D deletes a line (not cuts it). Are there any tutorials on how to use this dialog anywhere There is no help for that page. I'm sorry about your frustration, but thank you for the feedback. The easiest way to assign a shortcut key is to search for a command, like type "Edit" which will search all keyboard shortc ...Show All
.NET Development Sharing a software process with my business network
Im trying to find out a way on how to share my application process with the rest of my business computers network. We have over 20 computers that have an average of 2.5Ghz CPU and they only use 10 to 20% of the CPU capaticity daily. So it ill be nice if i could use the 80% of does CPU's so i can execute same major BIG process from a distance software under my local intranet. Any link, ideas, tutorials or help will be well appreciate ! Thank you ! You should have a look at remoting . Moved to .NET Remoting and Serialization ...Show All
Software Development for Windows Vista Workflow Parameters and Activity Properties in xaml Beta2
I would like to know if it is possible to declare a workflow parameter and then pass that parameter into a custom activity using xaml. I see that in beta 2 that ParameterDeclaration has been removed so I am unclear if this is possible. This is my current workflow, very simple, i just want to pass in a parameter and assign it to "To" Thanks < SequentialWorkflowActivity x:Class = " Microsoft.Samples.Workflow.SequentialWorkflowWithParameters.Workflow1 " x:Name = " Workflow1 " xmlns:ns0 = " clr-namespace:ActivityLibrary1;Assembly=ActivityLibrary1, Version=3.0.0.0, Culture=neutral, PublicKeyToken ...Show All
Visual Studio Team System Delete or Edit a build type
Hi, I am new to this thread, not sure if this has been asked before. Does anyone know how you can delete or edit an exisitng build type! Thanks -Bob For editing refer http://msdn2.microsoft.com/en-US/library/ms181718(VS.80).aspx For deleting, you can simply go to the TeamBuildTypes folder in Version Control and delete the <your build type> folder. Thanks ...Show All
Visual Basic Searching via a textbox string
Hi... I'm just jumping in to VS2005, and have tried to create a simple database search that will return all the items that are similar (begins or like ) text in a 3 column database table. The form has an input textbox, and a datagrid, similar to the output of an ASPRUNNER-PRO page...only I don't want a web page, I want to do this on a form. Everything IO've seen and read pertains to bound data to text boxes, whic is the opposite of what I am trying. I want to search and display the results of my matches. For instance... If some text is typed in a text box such as: trans, or gear, or raz, I would like all the matches to be output in a grid di ...Show All
Visual Studio Addin (automation) Form lost input focus forever
If it is not the right place to post any addin (automation) posts, I apologize. I didn't find any addin related groups. I am building an addin which shows a Form using ShowDialog(), the form provides functionalities to: * add/remove ProjectItems from VS.NET Solution Explorer (under Source Control) * select/unselect/add/remove UIHierarchyItem Because the form is shown as a modal Form, normally it is the ForgroundWindow and has the input focus. But when it is adding item to source controlled Project, SCC Provider launches it's own dialog, and after that dialog dispeared, things goes bad: the input focus goes to VS.NET' ...Show All
.NET Development creating web reference in IDE
When trying to add a web reference of a web service which is published through Marshaling (remoting) I receive an error message. The custom tool "MSDiscoCodeGenerator" failed unable to inport binding "<name of reference>binding" from namespace... I'm running VS 2005 professional edition release. on Windows XP. I had no such problem when using the VS 2005 Beta. Anyone have an idea ! I had the same problem, but got rid of it once re built the webservice. It Seems to be a problem with VS release version since beta version was working just fine. try to delete the webreference and rebu ...Show All
