Answer Questions
Avi120 Can you instantiate a different Workflow by using a Custom WorkflowLoaderService?
I'd like to get the Workflow from an assembly file and dynamcially instantiate it by creating a custom WorkflowLoader Service. I've tried this: WorkflowInstance instance = workflowRuntime.CreateWorkflow(typeof(ProxyWorkflow)); -- where ProxyWorkflow is nothing more than a blank activity (I've also tried making it a blank SequentialWorkflow) and in my custom WorkflowLoaderService, I try this: Activity workflow = (Activity)Activator.CreateInstance(_workflowType); return workflow; --where _workflowType is a SequentialWorkflow loaded from an Assembly file However I get this error: System.InvalidOperationException: Can not create workflow definition. WorkflowL oaderService has returned an object whose type does not match 'WorkflowClasses.P rox ...Show All
Tovdb DWM Live Thumbnail Capturing?
Hello all! Is there a way to capture the live window content we can get from a DWM Thumbnail As I understand it, the live thumbnail is slapped on the window area during the composition process, so any capture methods would require DWM APIs exposing said functions. Perhaps it would be a good idea to have a function that returns a HBITMAP for saving to disk, or saves the file directly given the path and file type. It would be useful to have such an API for screenshot programs: select a window and have a screenshot taken, including the transparent frame regions that DWM gives to thumbnails. Thanks, Karl These are both good requests, but unfortunately we won't be able to accomodate them on ...Show All
Batikit Persistence and Serialization Error
I have recently upgrade to the June CTP. I am experiencing an odd error when using the delay activity. Using SQL Profiler I can see that the call to "InsertInstanceState" passes a "status" paramter value of 3. What exactly is 3, is there a reference doc somewhere I can download to see all statuses In addition, the info parameter has the text, 'System.Net.Mail.Attachment'' in Assembly ''System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'' is not marked as serializable. I am using the EmailActivities provided on the WF site. I compiled them in VS2005 and added the activity to my IDE. Once my workflow completes the delay is supposed to email me. This never happens. Rather my workflow hits the d ...Show All
Mosesm fatal error LNK1104: cannot open file when building a .dll file on Window Vista
Hi all, i'm a newbie and i have small trouble with Window Vista. I have a small program which will create a .dll file in C:\windows when i build it.Everything is ok with Window XP or Win 2000 but when i rebuild my program on Window Vista, i got an error: "LINK : fatal error LNK1104: cannot open file "c:/windows/myfile.dll"" I used Visualstudio 6.0 to build my program. Have anyone please help me best regards, khuong.ngo I suggest you change the destination folder to something else (e.g. your project folder). Windows, Windows\System32, and other folders, such as \Program Files, are protected in Vista. That means, if UAC is enabled (it is by default in Vista) ...Show All
SimonS_ unit test problem
Hey! I'm about to start a new software project and are thinking of using unit testing. I have read some atricles about this and it simes like TransactionScope it the way The ide is to run a unit test in a searten transaction context, this means that all database(sql2000) operations that executes with in the transaction context will enable rollback. This will also make it possible to run tests at the same time on diffrent computers but with only one database. I have created a test project that works against another MS SQL 2000 server in the network as follows: This class is located in a special test project. userTest.cs [TestMethod()] public void createUser() { string firstName = "Olle" ; string lastName = "Sve ...Show All
Kanchan Have to use CorrelationAlias attribut for all methods within the ExternalDataExchange interface?
I'm currently use CorrelationAlias for some of methods of ExternalDataExchange interface, but once I got compiling error for all methods that did not specify CorrelationAlias. Is that true as long as I specify CorrelationParameter on an ExternalDataExchange interface, then I have to specify CorrelationAlias for all methods Is there any way I can do it partially I have so many methods that don't need correlation at all. What's the performance/memory cost extra CorrelationAlias Thanks. Yes - if you use it on one method or event - you must use it on all of them. There isn't much perf overhead really - in fact probably none at all since even when you don't use those attributes - the communication infr ...Show All
Mike Brown Using smartcards in a service - SCardAccessStartedEvent
Dear all, Migrating our core development platform to Windows Vista, one of our Windows services using smartcards is failing. We have debugged the problem and found that the event provided by the function ScardAccessStartedEvent does not receive notification. This event is supposed to signal when the SmartCard Resource Manager starts. As we have a WaitForSingleObject(event,INFINITE), the service hungs. Testing the same service as an ordinary executable ( registering with -regserver ) I can see it works properly. In XP it works properly both as an executable and service. I have read something about Service Hardening in Vista and I guess it may be caused by privilege reduction. So, I've created some code to enumerate the existing ...Show All
simmons Help me set up .NET 3.0 development on virgin PC
Oh, the combinations I've tried...! I've got a new PC, fresh install of XP Pro SP2. I ran through the recommended steps with the goal of running the WCF Getting Started sample project, but have failed to get it to run without error. I suspect an IIS configuration problem, but will start all over again from the beginning. Here's the steps I'm going to take (using the June CTP) in yet another attempt. Can anyone make corrections 1. Install IIS 5.1 (from Control Panel | Add or Remove Programs | Add/Remove Windows Components) 2. Install .NET Framework 2.0 from http://www.microsoft.com/downloads/details.aspx FamilyID=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en 3. Install Visual Studio 2005 (120 day trial version) from the CD I sent ...Show All
CFIG PC games + 8800GTX + Vista compatibility? (need help ASAP actually)
I need to get a new computer within the next few months, and I am rather concerned that I will not be able to play certain games decently (if at all!) with the nVidia 8800GTX and Vista that I plan on getting with it (Alienware). As a result I've been looking on the net for places where I can get a sense at how well the two of these work together after the first official drivers have been released for the 8800GTX for Vista. In particular, I am hoping to hear from you guys that you all have experience playing games such as (ones I play) Dawn of War, Civilization 4, City of Heroes/City of Villains, World of Warcraft, Battlefield 2, and Unreal 2: XMP (that one's a bit obscure though). At least as far as Dawn of War is concerned, I heard ...Show All
kimhoskin wmv codec supported in current CTP ?
What wmv codecs does the CTP support now I' making screencasts with Media Encoder 9 but WPF/E (mediaelement) doesn't show them altough they run perfect in Media Player 9. What's a good profile to produce screencasts in wmv for WPF/E Thanks ... Is the wmv screencast codec supported in the WPF/E feb CTP We are not planning on supporting this decoder through the first half of 2007. Based on customer feedback, we may add support for the screen decoder at some point in the future. Joe Tanks Joe, I already figured this out. Will WMV 9 Screen decoder be supported in the final release of WPF/E W ...Show All
manuel0081 CBaseFilter::Notify
How can I use Notify member from Filter I've implemented IMediaEventSink interface on my filter class (I dont forget changed my NondelegatingQueryInterface method). I may think wrong about this interface. I'll talk about what have I done. My purpose is send and custom notify from my input pin to my filter. I suppose my notify passing Graph after my filter. I don't think I shouldn't use as: HRESULT CMyIn::CompleteConnect(IPin* pPin) { .... m_pFiltX->Notify(MY_CRE_TASK_NOTIFY, 0, 0); //My purpose is send notify to my filter through graph. :) It might be wrong. } How should I use CBaseFilter::Notify(long EventCode , LONG_PTR EventParam1, LONG_PTR EventParam2 ) funtion When will call this member Should I call it O ...Show All
Herru Perdana ASUS M6A x SpeedStep
I have nb ASUS M6A ( i915, P M 730, GMA900 1,5GB RAM), but Speedstep doesn’t work me. Frequency is automatic changed by the latest BIOS 200, but it doesn’t work with new version. Changing of PowerPlan doesn’t help me. Any idea thx Vista build 5536 oki, thanks I believe your question is not related to software development therefore I must ask you to redirect your question to the appropriate communities: www.microsoft.com/communities I would also suggest to contact ASUS, your hardware vendor, for this but also keep in mind Vista is still under development and will have some issues. ...Show All
omrivm Temporarily Registering ActiveX Control
We have an application that runs off a CD and uses an ActiveX control stored in a DLL (or .ocx, does not really matter). The CD is to be run on the client's computer, and the client may not necessarily have administrator privileges. Is there a way to temporarily register the ActiveX control for the duration of the application Basically do something like "regsvr32" on the DLL while the app is running, and "regsvr32 /u" on exit. Basically we would like to force the ActiveX Control (identified by a CLASSID) to load from a particular DLL, and that DLL is on the CD. In case you are still interested: We actually took a different route. I simply loaded the needed ActiveX DLL using Load ...Show All
HonDOn7 Which SDK do I need to develop Tablet PC applications?
Hello, this is my first post to a developer forum, so go easy on me. :) I'm a little confused about all the SDK's available and hope someone can makes sense of it all to me. I am new to developing software, but am very interested in developing Tablet PC applications. I would like to develop Tablet PC Apps that are compatible with the Tablet PC 2005 platform and Windows Vista. My test/development PC has both Windows XP Pro and Vista Beta 2 dual boot setup. I also have a Tablet PC 2005 by Averatec. I have downloaded (but not installed) the MicrosoftR WindowsR Software Development Kit (SDK) for Beta 2 of Windows Vista and WinFX Runtime Components, and the Update for Microsoft Windows XP Tablet PC Edition Development Kit 1.7 - English. Do I n ...Show All
Abhishek_SE StateMachine invoke SequentialWorkflow
Hi together, I am using a state machine workflow which invokes another sequential workflow. The sequential workflow gets called but after the sequential workflow has finished, the parent workflow (which is a state machine) switches to the completion state. Example: Sequential Workflow ^ | State A ---> State B ----> State C ----> Completion State As you can see in the sample "State B" invokes "Sequential Workflow". And now when the sequential workflow gets finished, the parent state machine switches to the completion state instead of "State C". Any ideas what's wrong here Cheers, Franz Great ! In the meantime, I was writing a "e ...Show All
