Software Development Network Logo
  • Game Technologies
  • Visual Studio
  • Visual FoxPro
  • .NET Development
  • Windows Forms
  • Visual C++
  • Microsoft ISV
  • Visual Basic
  • SharePoint Products
  • Visual C#
  • SQL Server
  • VS Team System
  • Audio and Video
  • Windows Vista
  • Smart Devicet

Software Development Network >> Allan-Nielsen's Q&A profile

Allan-Nielsen

Member List

smk_k
pdurbha
Akshay Bhargava
Little Bear
sergiom88
Álvaro Peñarrubia
Ecrofirt
Will Merydith
Photab
NoEgo
zille
Pete A
vitich
kettch
praveench2k
noyesar
yusufaz
Mark The Archer Evans
Babalicious
Leaf.
Only Title

Allan-Nielsen's Q&A profile

  • Software Development for Windows Vista Workflow Foundation and the Hosting Process

    Hello, I have a design question, I am hoping someone will be able to provide input for me on this. We currently have a workflow solution built using BizTalk 2004/Business rules engine, we have a built a generic engine using BizTalk so that different applications in our organization can use the engine with minimum customization. We are evaluating to see if we can use WF for this. One question I have is WF seems to suggest that all applications will host the workflow in their own process space. Is there a way I can build a process and host the workflow in it so that different applications (web and windows apps) can use this generically. We would like to avoid people building their own workflows and hosting it in their own applications and ...Show All

  • Visual Studio Team System ValidateArgumentsOfPublicMethods with FxCop 1.35

    Why does CA1062 not like the following code public static bool NamespaceContainsWord( string namespaceName, string [] words) { if (namespaceName == null || namespaceName.Length == 0) return false ; if (words == null || words.Length == 0) return false ; ... } If I split the if statements up so that the arguments are checked first, then FxCop is happy. However splitting up the if statements is no more or less correct, but is stylistically bad. Thanks for the great tool :) ...Show All

  • Visual Studio Team System Solution Explorer / Schema View / Design Time Database - Where is the 'Truth'?

    We are running into repeated cases where the code contained in the Solution Explorer of DBPro is not the same as that contained in Schema View and not the same as that contained in the Design time database. This makes me wonder, where is the 'Truth' contained Microsoft has boasted that the 'Truth' is in the Project. However, what part of the Project Earlier today I used the Schema Compare feature to compare our project against a development database. About an hour ago I had developers tell me objects were not updated to the development database, they were missed. I then opened the Schema View and saw a warning that a resynch was required. I did so, then did another compare against the development database. A few more objects showed u ...Show All

  • Visual C++ Mixed mode finalizer bug in C++ class destructor with std::vector member

    I have discovered a bug when finalizing a CLR class which deletes a data member which is a pointer to a C++ class, and the C++ class has a std::vector<ANYTYPE> as a data member. When this occurs an exception is thrown, with the message in the debugger being: "An unhandled exception of type 'System.AccessViolationException' occurred in msvcm80d.dll Additional information: Attempted to read or write protected memory. This is often an indication that other memory is corrupt." Breaking in the debugger shows that the exception is occurring in the stack trace from the vector's destructor code, with the last source code trace being line 45 of xmtx.c in an _Mtxlock routine. Tracing the bug shows that the finalizer has executed afte ...Show All

  • Smart Device Development Adding Custom Today Screen Item

    Actually I need to add a "cutom today screen Item" to Pocket PC automatically when message has been reached to my messenger. I am presently working on Visual Studio.Net 2003( Compact Framework1.1). Actually I have tried this link: C:\Documents and Settings\Administrator\Desktop\malleswar\adding image\Creating a Pocket PC Today Screen Plug-in with the _NET Compact Framework.htm but for building Embedded Visual C++ (eVC) has to be used. If u know better way than this plz guide me. You've to use upgrade wizard before you can open eVC project in VS2005. See this http://msdn2.microsoft.com/en-us/library/ms228806(VS.80).aspx I can help you diagnose your problem but won't make i ...Show All

  • Visual Studio Express Editions MDI Closing RCW Error

    This one has got me completely stumped !! I've got a MDI window with mulitple forms inside, as a merged menu item I have Close window (on the Child) that appears in the MDI forms file menu list (this all works 100%). Now, if I click the close menu it fires the event handler in the child forms menu handler and executes a simple Close.Me function (that also works 100%). So what's the problem Okay, I want to spice up the menu a bit so I've put a shortcut key in there too, but if I press the shortcut key I get an RCW error: RaceOnRCWCleanup was detected Message: An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data ...Show All

  • SQL Server Not able to insert record in SQL server 2005 Express Edition

    Hello, In a web application of VS.Net 2005 I am able to insert records in both the database SQL 2000 & 2005 In a windows application of VS.Net 2005 I am able to insert record in SQl 2000 but I am not able to insert record in SQL 2005 Express Edition. Please help Me I tried very Much but not succeded yet. Thanks in Advance My guess is that your application is using some sort of transaction that it automatically starts but that is not getting closed. Or you are working on a disconnected set (couldn't tell that without profiler, and that isn't included in Express. Where these settings are sounds more like a programming issue than a T-SQL problem. I would probably suggest you take this to th ...Show All

  • Visual Studio Express Editions How can I converte a file type into a .swf

    Hey does anyone know how to make a video converter into a .swf. I don't want to make money off of this. I just want to make a simple converter so people can submit it to one of my new programs(witch is a flash program). This may help...it's on Adobe's Website. http://www.adobe.com/products/flashplayer_sdk/ ahmedilyas is correct (of course ;) ).  SDKs from the company that created the technology you wish to use are the only way, unless you can successfully reverse engineer their technology. Which, most of the time,  is illegal. ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. XNA has it's own GamePad DeadZone?

    I've been looking at the output of the thumbsticks, and it appears a value less than 24% (0.24) is ever returned. I know it's very important to implement deadzone in your programs, but why has it been done for us Someone may want to write a game that needs a smaller deadzone, but as far as I can tell it would be impossible given we don't have full access to the output right the way from 0 to 1. Is this behaviour intentional Many thanks, Adam Miles The actual bug lies in the fact that the horizontal deadzone is being reported when the vertical position is outside the vertical deadzone and visa versa. Lateral movement round the edges should not be subject to the deadzones. It sounds for example like the ...Show All

  • SQL Server Newbie MDX Question

    Let's say I'm doing a fairly standard MDX query: SELECT {[Measures].[Revenue], [Measures].[Expenses], [Measures].[Profit]} ON COLUMNS, [Products].[Name].Members ON ROWS FROM [My Cube] This will show the product name on the row axis, and several measures along the column axis. What if I also want to get the product ID (numeric key) in addition to the product name in my query. How would I do that I suspect that a cross join would work, but there is probably a much better way. I'm using ADOMD.NET to process the results. Might this product ID already be embedded in the returned CellSet object Assuming that you have attribute ProductName with numeric key and text name column, you can do this: SELECT ...Show All

  • Visual Studio Team System ASP Unit Test with Forms Authentication

    I have a page that I'm trying to run unit tests on, this page is on a web site that is protected by Forms Authentication. When I run the test the TestContext.RequestPage property is the Login page for the site. Is there any way to get past this either by calling FormsAuthentication.Authenticate somewhere, or by supplying the username and password to the test before it calls into the web app The same manipulation should work against IIS -- it will cause the App Domain hosting the ASPNet app to re-loaded with the new web.config settings. It may not be pleasant, but it may work as an unpleasent workaround. The reason the Ordered test fails is because the cookies/creds/session used in the web test are not passed through to the unit te ...Show All

  • SQL Server Aggregation Problem with Hours and Minutes in Time Dimension

    For the first time, I have created a time dimension that includes hours and minutes, in addition to the Year, Quarter, Month, and Date that I am familiar with. I want to display the average of my measures at whatever level of Time the user chooses. I thus chose "AverageOfChildren" as the aggregation method for these measures. Unfortunately, SSAS aggregates these measures by Sum over Hours and Minutes, and then by AverageOfChildren over Date, Month, Quarter, and Year. I am confused. How can I force it to perform an "AverageOfChildren" at all levels First, have a look at this document( http://www.microsoft.com/technet/prodtechnol/sql/2005/realastd.mspx ) and think about you ...Show All

  • .NET Development Connection Speed in Kbps or Mbps?

    Is there a way I could show the speed of the connection in Mbps or Kbps Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Label1.Text = ( Connection Speed ) End Sub Maybe this will help but you will have to download the project from codeproject ( link 2 above) to get the network library... MP Private adapters As NetworkAdapter() Private monitor As NetworkMonitor Sub GetNetworkMonitor() monitor = New NetworkMonitor Me.adapters = monitor.Adapters If adapters.Length = 0 Then Me.ListAdapters.Enabled = False MessageBox.Show("No network adapters found on this computer.") Return End If Me.ListAdapters.Items.AddRange(Me.adapters) End Sub ...Show All

  • Smart Device Development How to map Action key of WM 5.0 Smartphone

    i have tried to MAP action key in my application onkeyup and on keydown but some time it does not send wm_keyup i am unable to find the solution of it. ...Show All

  • Visual Basic How to UNLOAD an assembly that was loaded by using System.Reflection.Assemblie.Load method???

    Hi, Our company has an app that load their components by System.Reflection.Load (By the way, an awesome technique ) But, we start to monitorate the application and detect a extrange grow up of memory... (actually when our application still all day on air, their allocate memory on task manager is 200 MB plus memory ) And all of our components (60 plus DLLs) is load by this technique. My doubt is how to deallocate this assemblies or how the best way to deallocate any assemblies loaded by the System.Reflection.Assemblie.Load method Anyone knows how i can do this ps.: We use the .Net Framework 1.1. The System.Reflection.Assemblie doesn’t have any "unload" method At., Fabio Pirani de Padua. ...Show All

©2008 Software Development Network