Neels215375's Q&A profile
Visual Studio Team System fxcop build consistancy
I'm looking at incorporating fxcop into a checkin queue, where the primary requirement is for a checkin to build successfully, before being checked into our source control system. I would like to be able to use fxcop to add another layer of checking above a successful build, but am wondering if there is any possiblilty that a build which fails normally could succeed under any conditions while being run with fxcop. I believe fxcop runs on top of the normal build, but i don't know if there is any manipulation of the build or if fxcop operates on it's own just pulling information from the build. This is important, since the primary requirement is failed builds fail. Also how well does fxcop scale for automated builds, for example, on a cod ...Show All
Windows Forms DateTimePicker disable dates?
Just a question, hoping someone can help me here. I'm wanting to.....disable certain dates to be chosen from a DTP control. Is this possible How can I do this Imagine it like some form of booking system, if a room has been booked between x and y dates, you obviously want that date range to be disabled so no one can double book that room. any ideas on what the best way is to do this Thanks! I'm not sure if it's even worth trying to derive something from the date time picker control. I guess it depends on if it's possible to hook in to how it renders dates ( getting it to respond to selecting a date that's not available would be easy ). However, if that's not possible, then you're looking at basically rewrit ...Show All
Visual Basic Count lines in a textbox
Can someone help me couting lines in a text box In Access i use this code: im strText As String Dim nLines As Long Dim antallinier As Long antallinier = 16 Dim antal As Long Dim tilbage As Long strText = Form_kursus.hovedpunkter.Text & vbNullString ' Trim of trailing CR/LF, if any. If Right(strText, 2) = vbCrLf Then strText = Left(strText, Len(strText) - 2) End If ' Split on the CR/LF combination to see ' how many lines we have. If Len(strText) = 0 Then nLines = 0 Else nLines = 1 + UBound(Split(strText, vbCrLf)) Hope some can help regsrds alvin the "s" is meant to be the string you are using ... such as the textbox text value. However you can also use this to get t ...Show All
Smart Device Development Can't find pinvoke dll PLEASE HELP
I have a compact pc application written in C# running on window mobile 5.0 witch compact framework 2.0. It works ok but sometimes , Depends on the order that i call to the unmanageg function it crashes with the error "Can't find pinvoke dll ..." I found a work arround by changing the order of calls to the functions. But when I try to debug the application it always crash with the error above. Can any one help me with this. This is critically important for me because changing the order of calling to the ubmangaed functiond helped me but when I sent the installation of my software to a customert with newer version of the window mobile 5.0 ( ver 5.1.1 ...Show All
Visual Studio 2008 (Pre-release) Inactivity Default value
I've been testing for few days with the inactivityTimeout and receiveTimeout. In my WCF app, I use WSHttpBinding and WSDualHttpBinding. No matter what I set the values of inactivityTimeout and receiveTimeout to be, I get the CommunicationObjectFaultedException. My application needs to be kept alive for Infinite but that didn't seem to work so I changed to 20 minutes and still the timeout is set to 10min. What else do I need to change Description: Failed to stop service. System.ServiceModel.CommunicationObjectFaultedException: The communication object, System.ServiceModel.Channels.ServiceChannel, cannot be used for communication because it is in the Faulted state. Thanks, Gina. How do I c ...Show All
.NET Development Best tool to build free threaded in-process COM server
Hi, I need to build a free threaded in-process COM server to integrate with a legacy application. What is the best product to use to achieve this Which would be easiest to integrate, a pure C++ application, a C++ .Net hybrid or C# .Net application. Is it even possible to build a com object with C# Thanks, Cheers, Phil You can build this using C++ or .NET/C#. Of course you can build it also as a hybrid if you want to complicate the things or maybe you have reasons to do it as a hybrid (like complex marshaling). Which is easier ! Most of the people will say that the C# is easier :) ...Show All
Windows Live Developer Forums Adding a GeoRSS layer from a local file
Hello All, I would limke to add a GeoRSS layer from a local file as oppsed to a web server. function OnPageLoad() { map = new VEMap( 'myMap' ); map.LoadMap( new VELatLong(43.85828, -79.3821), 10 , 'r' , false ); AddMyLayer(VELayerType.GeoRSS, "file:///C:/geolayer.xml" , "test" ); } function AddMyLayer(type, source, layerid) { var veLayerSpec = new VELayerSpecification(); veLayerSpec.Type = type; veLayerSpec.ID = layerid; veLayerSpec.LayerSource = source; veLayerSpec.Method = 'get' ; map.AddLayer(veLayerSpec); } However, I get an error when I do that. If I specify http://loaclhost/geolayer.xml or something like that for the LayerSource property then i ...Show All
Visual Studio 2008 (Pre-release) Desperate for help with custom token
Hi, I have an extra piece of information (of type Nullable<int> ) that I would like to use to authenticate users in addition to user name / password. Does that mean I have to implement a custom token or is there a simpler way I have been stuffing around with a custom token implementation all day based on the SDK sample and whilst it builds, it certainly doesn't work. At this stage I can't figure out how to get the client to actually pass the token to the server. I believe it has something to do with configuring my SecurityTokenParameters implementation. The SDK sample manually sets this up in code like this: HttpTransportBindingElement httpTransport = new HttpTransportBindingElement (); // the message security bind ...Show All
SQL Server need help in SP
Hello everyone,i need a little bit help, here is my query: SELECT DISTINCT dbo.Buyers.CompanyName, dbo.PinPackages.PackageName, COUNT(dbo.TransactionLineItems.PinID) AS TotalPins, SUM(dbo.Transactions.TotalAmount) AS TotalAmount, dateadd(hh,Datediff(hh,0,TransactionDate),0) as TransactionDate FROM dbo.Buyers INNER JOIN dbo.Transactions ON dbo.Buyers.BuyerID = dbo.Transactions.BuyerID INNER JOIN dbo.TransactionLineItems ON dbo.Transactions.TransactionID = dbo.TransactionLineItems.TransactionID INNER JOIN dbo.Pins ON dbo.TransactionLineItems.PinID = dbo.Pins.PinID INNER JOIN dbo.PinPackages ON dbo.Pins.PinPackageCode = dbo.PinPackages.PinPackageCode GROUP BY dateadd(hh,Datediff(hh,0,TransactionDate),0), dbo.Buyers.CompanyName, dbo. ...Show All
Architecture Architecture question
I have a mobile field service app written to run on WM5 CF2 and would like some advice on architecture. For this type of app, the runtime performance is crucial in relation to startup time. I have a Data Access Layer (DAL) with various classes that provide the abstraction between business objects and the persistence layer e.g. SqlCe. One class per business object. On top of that is the Business Logic Layer (BLL) that uses the DAL layer. This is impemented by normal classes. And on top of that the Presentation layer implemented as a number of Forms that use the BLL layer methods only. I have also created a 'MyApplication' class with the singleton pattern. When the class instantiates, it creates all the BLL classes, the database c ...Show All
.NET Development merging contextmenu strips
Hi, I have a list of context menu strips which I need to merge as one, but the individual menus must remain unch ange d. I try to do that as follows: ContextMenuStrip contextMenuMerged = new ContextMenuStrip (); foreach ( ContextMenuStrip menu in m_contextMenuList) { for ( int i = menu.Items.Count - 1; i >= 0; --i) { contextMenuMerged.Items.Insert(0, menu.Items ); } } But once the item is inserted in the contextMenuMerged menu, that item is removed from the original menu. Is there any way to merge the context menus without modifying the original menus Thanks, Manju That's not cloning, you are just copying the reference. You'll need to use the new o ...Show All
SQL Server SSIS Parallel processing of packages
Hi, I am facing some problem's while using the FOR loop container to execute 7-10 packages in parallel. The main package has 7 FOR loop containers say F1-F7. Each FOR loop container has 2 task's T1==> exec child package C1 T2==> exec delay task Delay1. The idea is to run child packages c1-c7 in parallel ...delay for some time and then run again since there are in the FOR loop container. I am facing someproblems. 1. The execution of tasks T1-T7 is not guranteed. This means SSIS picks up any 6 tasks of T1-T7 randomly to start with. 6 is the max it processes whereas i have more than that. Can i change this setting 2. Its not guranteed that if say Task t1 of FOR loop F1 is executed the subseque ...Show All
Architecture Disable "connect when this network is in range"
I need to be able to disable this when a new network is created. By default this is checked in the wireless network pane. Any ideas Simon i believe u have posted the query to the wrong forum. http://DotNetWithMe.blogspot.com vikas goyal ...Show All
SQL Server Incorporating Data Mining Wizard into a program?
Is there any way to incorporate the SQL 2005 Mining Wizard into my program Sure, I can create my own mining wizard using DMX, but that's quite a bit of work. Has anyone tried this Is it possible Any pointers -Young K ...Show All
Software Development for Windows Vista AudioDG.exe - more info
Hi I've got this annoying problem since the release of Win Vista Ultimate RTM (32bit). When i play audio,games/movies the Audiodg.exe uses 25-30% of the cpu every 30th second or so. This have an BIG effect on the sound, wich crackles every time audiodg uses more than 0% of the cpu. i have noticed that when i play audio in media player 11, the crackling sound is gone, even when audiodg loads the cpu.. This is not heping for games, and movies. These problems did not occour in the beta or rc1-2 releases of Vista Ultimate. Sorry about my bad english Tom-Erik Larsen ------------------------------ HP Pavilion dv-8000 1gb-ram Ati Xpress 200m 128mb (Aero capable) AMD Turion 64 VISTA Capable My v ...Show All
