Dunce Hat's Q&A profile
Software Development for Windows Vista What is the rationale behind not having a static method to retrieve the current workflowruntime instance?
After doing quite some work with windows workflow I am starting to feel that there is one thing that is coming back every time you work with the WF runtime and that is getting the current running instance of the WFruntime. What I just can’t grasp is why there is no static method on the workflowruntime class to retrieve the running instance. (or by name if you have multiple instances running) In every sample you look you see that not having this method makes the developers suffer and you need to make assumptions that are not always true. e.g. take a look, at the WebServiceInput activity and try to use it without the generated configuration when you publish the service. (name the configuration something else then “workflowRuntime”!) ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectShow in VC++Express
I downloaded PlatformSDK and DirectXSDK. I followed the instructions for using PlatformSDK: http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ I did that: "From the File menu, click New Project. In the New Project dialog box, expand the Visual C++ node in the Product Types tree and then click Win32. Click on the Win32 Console Application template and then give your project a name and click OK. In the Win32 Application Wizard dialog box, make sure that Windows application is selected as the Application type and the ATL is not selected. Click the Finish button to generate the project." I put the sample from DirectShow (http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/gettingstarted.asp) into the ...Show All
SQL Server report server in the network
I have a computers network with server. in the server the report services work good. the problem is with the other computers in the other computers I got an error http://img2.tapuz.co.il/forums/1_91462227.jpg just one computer show the report, but this computer have SQL SERVER. the url to the report is: http://myServerName/reportServer.... what I need to do for work with the report services in a local network. thanks, (and sorry on my english ) I will try again. for example I have 7 computers. one from them is server. in the server I can open the report by 2 ways. 1) http://localhost/ReportServer/.... 2)http://myServerName/ReportServer. in another computer (that has SQL server installed) I wrote: http:/ ...Show All
.NET Development Why does the designer omit certain events for some controls?
I am using C# in VS2005 .NET2.0. I notice that in the form designer view certain controls, eg. numericUpDown and groupBox do not show certain events, eg. mouseMove, although the control class supports the events, and they can be set in code. Is there some reason for this, or have they just been missed out by mistake Most of these omissions are intentional. Controls inherit these events from the Control base class but they may not necessarily be functional. NumericUpDown.MouseMove for example is documented as "This event supports the .NET framework infrastructure and is not intended to be used directly from your code". The NumericUpDown control is really a container for a UpDownEdit and UpDownBut ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
.NET Development Possible to register a C# program to the R.O.T. for OLE automation?
Hi all, I was wondering if it was possible to "register" your own created c# program for OLE automation This would be the equivalent of accessing something in Excel via OLE. Like: Dim ExcelApp As Object ExcelApp = System.Runtime.InteropServices.Marshal.GetActiveObject("Excel.Application") Edit: and just to clarify, I understand how the GetActiveObject works (by looking up the object in the Running Object Table). I guess I need to know if it is possible to register a program with the Running Object Table. This article will give you the definitive answers about COM Interop: http://www.codeproject.com/dotnet/cominterop.asp Yours, Alois Kraus ...Show All
Visual C++ Question about const_cast
Here's round two of my silly questions. How come this compiles: ---------------------------------- int main (int argc, char * argv[]) { const int test1 = 5; const int test2 = const_cast<const int &> (test1); return 0; } ---------------------------------- But this does not. ---------------------------------- int main (int argc, char * argv[]) { const int test1 = 5; const int test2 = const_cast<const int> (test1); return 0; } ---------------------------------- Error 1 error C2440: 'const_cast' : cannot convert from 'const int' to 'int' j:\test\main.cpp 4 ---------------------------------- I definitely have the latest version of VC++ Express Edition this time. Oh. In the dr ...Show All
Commerce Server Exception when attempting to check out with items that no longer exist
If at some point an item is removed from the system because it is no longer available...or no longer exists in the system, then any cart with the item still in it will cause an exception when they go to checkout. Is this a problem with the item deletion in MSCS internals What would be the recommended course of action Colin, thanks for the quick response :) This is actually breaking in the running of the total pipeline, which gets called directly after having run the basket pipeline, which calls those two components you recommended. Thoughts ...Show All
Visual Basic How to raise event of parent class?
If have a base class called 'eatSchedule' that declares an event, 'friend shared event TimeToEat(byval whatsToEat as String)' , and have a derived class 'lunchSchedule' that inherits the from 'eatSchedule', how do I raise the base class event If, in 'luchSchedule' I try type raiseevent, the 'TimeToEat' event isn't presented as an option. if I instantiate 'lunchSchedule' in another class, 'HelpMeDiet', I have the option of handling the event for 'lunchSchedule', I just can't seem to find a way to raise it. Thanks; Events are only raised by the class that implements them. The pattern to use here is to create a protected method in the base class: Protected Sub OnTimeToEat(ByVal whatsToEat As String) ' Raise event in here End ...Show All
.NET Development 64-Bit OS Error: VFPOLEDB.1 Is Not Installed on Local Machine
I need some help folks... I am getting the Infamous " provider not instaled on local machine" message for the VFPOLEDB Driver. 1.) It has NOTHING to do with what user I register it with (I've used them all, local and domain) 2.) The driver is most certainly there, and so are the registry entries. This error only occurs on 64-bit Operating Systems. Is there something different out there I have to do on a 64-bit OS. It says it registers correctly, the registry entries are there, and yet, I still get the error. I can install my VB.NET app on 32-Bit OS's all day long without error. I've tried setting a deployment project specifically for an "x64" CPU, and still no luck. I can find anything on the internet ...Show All
Game Technologies: DirectX, XNA, XACT, etc. InvalidCallException on my work computer with DrawUserPrimitives
When calling this code at home: Device.DrawUserPrimitives<VertexPositionTexture> (PrimitiveType.TriangleList, 2, vertices); It works perfectly, but when running it at my work computer I get a InvalidCallException (External component has thrown an exception). It's the same exact code. Before this I used the SpriteBatch class and it worked with both machines, now I have written my own Sprite class and I get this exception. Anyone of you know why Thanks in advance! The dbmon utility (you can find many variants of this through a websearch) is useful for capturing debug Direct3D output while developing a game in C# Express. I have it running pretty much permenantly in a background window... ...Show All
.NET Development Removing xmlns attributes
I have an XML document. For example < xml version="1.0" encoding="utf-8" > <hello xmlns="duracellko:hello" xmlns:xs=" http://www.w3.org/2001/XMLSchema"></hello > I would like to remove xmlns and xmlns:xs attributes. I loaded this xml into XmlDocument object and then removes all attributes from DocumentElement. But when I save the XmlDocument, then there is still xmlns attribute in hello element. Can you help me how to remove namespace declarations from XML document. Thank you Rasto Namespace is part element name. You have to copy elements to remove them. You can use XSLT (see http://wiki.apache.org/cocoon/RemoveNamespaces ) or tweak XmlTextWriter's WriteStartElement and WirteStartAttribute. ...Show All
Software Development for Windows Vista Show of Hands! Is WF by itself a viable approach to addressing a customer's workflow needs?
Like many of us in the forum I am in the all too often unenviable position to influence my client's decisions. I currently have a lot of customers evaluating workflow, many for the 1st time. I personally have avoided building "custom" workflow solutions whenever possible as I have had success in the past implementing packaged workflow or BPM offerings, both Microsoft-based and less recently non-Microsoft-based. It's allowed me to focus my energies on building solutions and solving real business problems, not building infrastructure. Granted, there are customer situations that don't require or afford you the opportunity to buy a packaged solution to address a workflow/BPM need, but I would argue those are/should be the exception n ...Show All
Visual Studio VSTA SDK
Hi, I've downloaded and installed the Visual Studio 2005 SDK v3 August CTP which is supposed to contain the latest version of the Visual Studio Tools for Applications toolkit (according to this page http://msdn2.microsoft.com/en-us/vstudio/aa700828.aspx ). In the SDK directory I can find the samples (ShapeApp) however it appears that no documentation has been installed. Is the documentation in the August CTP or do I have to download an additional or alternative version of the SDK Regards, Anthony Williams Hi Bill Here is the link that comes up when I choose Start > All Programs > Visual Studio 2005 SDK > 2006.08 > August 2006 Help: ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.VSSDK ...Show All
SQL Server Multiple records returned.
The following statement gives the error that multiple records are returned. I am attempting to pick one weight out of a group of three, the three have the same ResidentID and different dates in the table variable @WeightReportRaw. If I hard code the ResidentID, ResidentID = 6, it works fine. The variable @intMonth3 passes in a month number ans dosen't seem to be a problem. What am I missing, Thanks in advance for any help. update tblResidentWeightsTemp set FirstWeight = ( select RWeight from @WeightReportRaw as W where ResidentID = W.ResidentID and month (W.RWeightDate) = @intMonth3) It means that ( select RWeight from @WeightReportRaw as W where ResidentID = W.ResidentID and month (W.RWeightDate) = @ ...Show All
