Kryor's Q&A profile
Visual Studio Team System Unit testing Web Services - Code coverage failing
Hi All, I'm having an issue with unit testing webservices from the command-line (works fine from within Visual Studio). I have a testrunconfig file that has codecoverage enabled for this test web service (the default hello world). The method I am testing is: [ WebMethod ] public string HelloWorld() { return "Hello World" ; } The code I am using for the testing (basically the auto generated code modified to actually test correctly) is: [ TestMethod (), AspNetDevelopmentServer ( "WebServicesTestServer" , "MyWebService" )] public void HelloWorldTest() { Directory target = new Directory (); if ( WebServiceHelper .TryUrlRedirection( ...Show All
Visual Studio Team System Schema Compare in the RTM version
Currently (CTP5) we're able to synchronize a DB project with an actual database. Does anyone know if we'll be able to do the reverse when VSTS-DB is released IOW, will we be able to synchronize an actual database with a project I very much hope so. I think this will be a tremendous time saver. Amos. To be clear For each object that you create/alter in your local database, and subsequently do a schema compare with your project. We will generate CREATE statements for each object that you want to push to your project system. mairead PM, TS Data ...Show All
Visual Studio Express Editions Problems downloading Visual Basic/Visual C++
I recently restarted my system, which had visual basic 2005 express edition, and i downloaded it with no problems. However, when i restarted the system and tried to download Visual Basic or Visual C++(from http://download.microsoft.com/download/C/E/3/CE3EB81B-12FE-4503-A566-0E0F49E4A5ED/vbsetup.exe ), nothing happens. I mean, it is a completely blank screen, and no download dialog appears. I tried to right click-save as, but the file was an html file. When i viewed the source, it just shows the <html> and a couple of other tags, none download related. I have internet explorer 7 beta 3, and i downgraded to 6 and temporarily disabled pop-up blockers and firewalls, but it still didnt work. What could be the problem ...Show All
Visual Studio Express Editions VBE .iso vs .img
Hello! For a newbie that is going to be downloading & burning VBE... I'm pretty new to the .img/.iso formats of these files so what is the difference and which one is the preferred one to use Thanks in advance... Here you can read some more about ISO and IMG http://en.wikipedia.org/wiki/Optical_disc_image It's usually a choice from what your burning/virtual cd software supports. I have NERO and usually chooses the ISO image before IMG or other formats. I prefer ISO, for no particular reason other than it has worked all the times so no reason to try other formats. ...Show All
Visual Studio How to know if OnShapeInserted was initiated by a loading process or by a user action?
Hi everybody: I would like to know if it is possible to know if it was the user how inserted the shape or it was a programmatic event (like loading the model) when overriding OnShapeInserted. The final goal is to open a Window to ask some properties to the user to initialize the Shape/DomainElement but only when the user is doing it for the first time. As a semi-workaround, I am firing this window if the setting are empty. But this is not exactly the same behaviour (the loading model could be incomplete). The ideal solution should be to detect such case. By the way, OnCreated (Shape) was removed, wasn’t it Looking for other methods to override in Shape I only found OnShapeInserted as a good candidate for interception. I found references ...Show All
Windows Forms Checking If Date Value Is Null
Hi all, I have been trying to check whether a date value stored in a databae table is null and if so to display an " N/A " value in the datagrid. This is a brief look at the code which i have been using: ------------------ Dim dateValue As String = AdminRptDSet.Tables(1).Rows(PrimaryCourseHeaderCount)("Date Assessment Completed").ToString ' If dateValue.ToString.Equals("") Then row(8) = "N/A" End If ------------------ I should probably be using a Date Type variable instead of a string but not sure how to code around the date type. Any ideas Thanks Or you can set the NullValue of the databinding to "N/A", something like this: my_datab ...Show All
Microsoft ISV Community Center Forums Where can we get the media for Office 2004 for Mac
Hi we have built our application for Windows office and now want to do a port to office mac. I have checked with our RSC and they say its not on msdn subscriber downloads. NO mac software is. So without having any contacts inside the Mac business unit, i deceided to post this question here. Where can we get the Office 2004 for Mac media CD/Download Surely this should be included in MSDN for development Thanks, Marc. ...Show All
SQL Server putting data into table B from table A without using a cursor
on SQL Server 2005, no SP. Currently using a cursor in a stored procedure to retrieve data from one table and to put it into another table. like so: declare @HTR money declare @Uniqueid varchar(15) declare cur_HTR cursor for select uniqueid, sum(hours_to_resolve) as thtr from com_trail_helpdesk_module group by uniqueid open cur_htr fetch next from cur_HTR into @Uniqueid, @HTR while @@fetch_status = 0 begin update com_hpd_helpdesk_history set total_hours_to_resolve = @HTR where case_id_ = @Uniqueid and dateasat = @dateasat fetch next from cur_HTR into @Uniqueid, @HTR end close cur_htr deallocate cur_htr ... This is taking about 45 minutes each time to do 21k records. Is there a faster, better way to do this ...Show All
Visual Studio Team System What happens when the trial expires? Where is Team Suite? How do I upgrade? Partners?
Some frequently asked questions... Q: I am an MSDN Universal Subscriber; why can't I see any of the role-based products or Team Suite in the MSDN Subscriber Downloads Center A: You have not yet submitted a transition request. You must transition from MSDNU to one of the role-based products or upgrade to the Suite. See http://msdn.microsoft.com/subscriptions for more information. Q: How long does the transition request take A: For a retail subscriber it will take 24-48 hours from transition choice to access the new level/role. For a Volume Licensing admin to assign a role choice and then the user to get download access should be nearly instantaneous. Q: If I install Team Suite after installing VS Pro, do I need to uninstall ...Show All
Visual Basic bubble sort in a list box
OK, from what I understand, I would be better off trying to sort numbers in a bubble sort in my listbox. I used the listBox.sorted = true but that does not sort larger numbers correctly., What is the code on this bubble sort and do you just call it in a subroutine with the subroutine alteration, and adding of the correct list box direction, this solution seems to work fine. Thanks again ...Show All
Visual C++ Please tell my how to change from cstring to LPOLESTR and make my code right.
I want to pass my strFunctio string to strFxn, but my following code has the following compiling error: error C2065: 'LstrFunction' : undeclared identifier; error C2440: '=' : cannot convert from 'int' to 'unsigned short *' Please tell my how to change from cstring to LPOLESTR and make my code right. I appreciate your help. CString strFunction=TEXT("GetMapByCordinate"); static LPOLESTR strFxn = OLESTR("GetMapByCordinate"); strFxn = OLESTR(strFunction); An LPOLESTR is a BSTR. The _bstr_t type is a class that is provided with VC that makes use of BSTRs easier. A BSTR must be allocated using SysAllocString and deleted using SysFreeString , but the _bstr_t class does that automatically. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. More XBOX 360 Controller Button Graphics
http://360p.blogspot.com/2006/09/xbox-360-controller-button-graphics.html I know there was some others posted before, but a little choice never hurt anyone. I made these for my own game, but I figured other people might like them too. Cheers! [edited because I didn't realise this forum doesn't auto-link urls ] Even after all this time, these darn buttons are still the most looked at thing on my blog! In an attempt to stave off the emails I get about this, I would like everyone to know that these buttons can now be found here: http://www.360prophecy.com/site/downloads/ As always, these are completely free for use on whatever you want. If you're intent on using them for commercial use... that's okay too. ...Show All
Visual Studio Team System LoadTest in winforms?
Hello, Can I make loadtests in winforms. I have created webtests and loadtests in web applications, and web tests record what you do with your mouse, but what about if I want to do the same for win applications How should I do it with Microsoft tools Thanks Web tests don't actually record what you do with your mouse, they record HTTP layer traffic and play that traffic back upon request. Currently there is no way in VSTS to test the actual user interface for your winform application. ...Show All
SQL Server Left Outer Join versus Subquery
Hello Chaps, I have got question about the performance of subquery and left outer join My scenario is that I have two tables Customer Mater and address book. Customer Mater and address book tables hold the record for both carrier and customer. and i want retrieve the record for customer and related carrier as well i have two options 1. either use left outer join (i.e. Join Customer master to Address Book 2 times, 1 for customer and 1 for carrier) by: Address book (as customer) Left outer Join Customer Master (on related Key) AddressBook (as carrier) Left Outer Join Customer master (on related Key) 2.or use 1 join for customer ...Show All
.NET Development Optional value type pointer/reference parameter during COM interop
Hey, I am facing an interesting interop problem that I haven't found a solution for yet. Let's say a COM method takes a pointer to a simple struct: HRESULT Foo(LPBAR pBar); Let's also say that this parameter is optional and the call pInterface->Foo(NULL); is perfectly valid. Now, if the structure BAR is defined in C#: [StructLayout(LayoutKind.Sequential, Pack = 4)] public struct Bar { // ... }; and the COM interop method call is also defined: [MethodImpl(MethodImplOptions.InternalCall, MethodCodeType = MethodCodeType.Runtime)] public void Foo(ref Bar); In this case, there is no way to be able to call Foo(null) in C#, although it would be valid. The question is: how do I let the Marshaler know that it should pass ...Show All
