Answer Questions
Markus Fritz WINSOCK DGRAM socket bind() BUG
Hi, I think that I found a bug in Vista winsock implementation, I'm not sure where to report, so I'll post it here. Description: If bind() call on datagram socket returns that scocket is in use WSAEADDRINUSE (10048), then next call of bind() on the same socket on a free port returns WSAEINVAL (10022) i.e socket is bound already. How to reproduce: Write a simple program that opens 2 datagram sockets, bind one of them on a free port, then bind the second socket on the same port, so you'll get WSAEADDRINUSE, then try to bind the second socket on a free port and you'll get WSAEINVAL. Test case: WSADATA wsaData; int iResult = WSAStartup(MAKEWORD(2,2), &wsaData); SOCKET Socket1 = socket(PF_INET, SOCK_DGRAM ...Show All
Areej Automation ID
Hi guys, I was wondering, how is the automation ID retrieved Is this done via a certain Windows API call I was wondering because functions that I have used in an application doesn't return any id, just numbers... I use Getwindowlong with GWL_ID. Thanks, Nick For doing this with managed code, please see http://msdn2.microsoft.com/en-US/library/system.windows.automation.automationelement.automationidproperty.aspx . Support for unmanaged code is limited at present because the UI Automation proxies for standard controls are all managed. ...Show All
Tommi Pitkälä Register dlls in Vista
I am using a much modified version of the VB6 P&D wizard, calling DLLSelfRegister in VB6stkit.dll. Under Vista this fails to register the dlls unless the user turns off UAC before running the installer. How can I code it to get the OS to prompt for a temporary lifting of UAC or elevation of status Thanks, I'll do the searches you suggested. An easier way is to get the word "setup" into the file or description area of your resources - Vista asks for elevation because it assumes you're a setup/installation program. The installation program is called setup.exe. Should that be sufficient to prompt Vista to ask for elevation, because it doesn't seem to in my case My program is in VB6. ...Show All
Jonathan Brown Wait until time/Persistence & Tracking
Hello, I have to questions based on waiting/persistence/tracking scenarios: 1. Suposse that I want to wait until a specific day. If I use a delay or something like that I understand that at this point the wf becomes idle and the persistence service writes it down. What happens later if I turn off the runtime engine and I want to start it later. How do I continue with the saved instance without explicit set this Is there any standard solution to this 2. Suppose that I want to track the wf states and I implement a tracking service that also persist data. How do I solve the scenario where the wf has changed but the tracking updates are interrupted Does anyone know a solution or better approach to them Regards, M ...Show All
Jeff-B Security with workflows exposed as web services
Often times web service developers require web methods to use the SoapHeader attribute so that the soap header can be inspected prior to executing the method. If we cannot control web methods that are workflow endpoints how do we control access to the endpoint How do we write custom code to interpret the header Thye web method is autogenerated and developers do not have any way to apply the SoapHeaderAttribute to the web method representing the workflow endpoint. Obviously we cannot do it in the workflow because by the time the workflow code is executing, the soap document has already been deserialize and passed to the workflow code. Anyone have any thoughts Some would say that we could secure the service us ...Show All
rternier MIDL2025 error when converting vs2003 project to vs2005 project. Please Help!
Hi, I have a project that using attributed ATL to create a COM component. This project compiles and runs well. It was originally developed using vs2003. When I'm trying to convert the project to vs2005, it give me a midl2025 error. It complains the interface forward declaration. How to solve this Here is the code. Thanks in advance. [ export] __interface IController; //forward declare the interface [ uuid(36AB2BBB-E97D-4066-A531-835CE0723A41), pointer_default(unique), helpstring("Calibration Manager Interface"), dual, oleautomation ] __interface IDeviceCalibrator : IDispatch { HRESULT Initialize( IController* microscope ); HRESULT Deinitialize(); } .... // definition of the interf ...Show All
ocelot663 an error about "aspnetwfpageflowexample"
when i run aspnetwfpageflowexample,input some data,then click the button "page one",then raise an error . Exception Details: System.Workflow.ComponentModel.Compiler.WorkflowValidationFailedException: The workflow failed validation. Source Error: Line 114: wfprms.Add("InitialCommand", oe); Line 115: wfprms.Add("InitialParams", prms); Line 116: WorkflowInstance wi = wr.CreateWorkflow(Type.GetType(_config.Type),wfprms); Line 117: wi.Start(); Line 118: ManualWorkflowSchedulerService ss = wr.GetService<ManualWorkflowSchedulerService>(); It would be helpful if you could tell us the exact validation errors are. beta 2.2 Hello, did you recom ...Show All
Joshizzle How can I start instalation a Windows Vista os
How can i start instalation of Windows Vista OS. I burn a DVD image, but i can not open it. I can read only a README file. What shall I do How did you burn Vista on to a dvd I have nero but it doesn't recoginize Vistas ISO. I am also seeing the same issue's. I burned the ISO file with Nero and also tried to mount the file to a Virtual drive and still am only seeing the Readme file. I figured I'd burn the ISO file to a DVD and do some reasearch at work but was prompted by nero that the disc must be setup with the UDF file system when burning a file over 2GB on a DVD. Still haven't found a way to change that, all i get is 3 different options for variations of the ISO ...Show All
ramsarvan File share problem
Hi Everyone, Got 2 questions need some advice, First, I opened a file in generic read & write mode plus the share for read. According to my own view of the share logic, the 2nd open to the same file should be generic_read + share_read, however this is incorrect. My sample code is attached for review, LRESULT CMainDlg::OnClickBtnTest(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/) { TCHAR buf[512]; HANDLE h1, h2; DWORD dwErr; if (INVALID_HANDLE_VALUE == (h1 = CreateFile(_T("abc.abc"), GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, NULL))) { dwErr = GetLastError(); _stprintf(buf, _T("1st open: dwErr = %u. "), dwErr); MessageBox(buf, _T("Msg") ...Show All
invantix Design: Loops and Workflow
The performance hits for while and other canned loop activities are a concern. This brings up a general design question: is WF suitable for enterprise level processing of thousands (possibly millions) of items in loops The performance guidance says to write custom activities for this sort of thing, but that kind of takes away a lot of the benefit of using WF vs. "just code" in the first place. Any thoughts Anyone processing a 2 million line flat file using WF What is a good approach for this using WF or is it not a suitable technology to drive the looping sequence Thanks! The new child that is created with each iteration is destroyed at the end of the iteration. The runtime will c ...Show All
NextCodec Why have nested transaction rules changed?
I'm very annoyed by the change in nested transactions. Previously it was perfectly ok to nest a transaction with a different isolation level to the current Tx providing it didn't ask for a stronger isolation level. Now it seems it has to be exactly the same. This has made porting from Enterprise Services to System.Transaction a complete nightmare! Why the change, it makes a mockery of ambient transactions since now every component has to understand what Tx they're in...surely this is a mistake or I've missed something AT LEAST, there should be a "SuggestedIsolationLevel" on TransactionOptions. With this, the transaction scope would be able to use a less expensive isolation level when it is possible. Or as pkr2000 ...Show All
S_Parikh Test Case 32: Is WER necessary for this test case
I am not clear about ThreadHijacker tool to test my application.It inserts /AV in to the app. I think that there must be the code to handle the structerd exception in my app. so i am trying to use following code : #include "stdafx.h" #include <windows.h> #include "errorrep.h" static LONG WINAPI ExceptionFilter( struct _EXCEPTION_POINTERS * pExceptionPointers ); int _tmain( int argc, _TCHAR* argv[]) { DWORD *pdw = NULL; BOOL fUseGlobalExceptionFilter = FALSE; if (argc > 1 && _stricmp(argv[1], "UseGlobalFilter") == 0) { LPTOP_LEVEL_EXCEPTION_FILTER myfunc = SetUnhandledExceptionFilter(ExceptionFilter); if (myfunc == NULL){ exit(0); } // caus ...Show All
Ed Hintz regarding invokeworkflowactivity based on xaml
Hi, How can I make the InvokeWorkflowActivity call a child workflow that is XAML only state workflow I used the following code snippet instead of invokeworkflowactivity IStartWorkflow aWorkflow = executionContext.GetService( typeof ( IStartWorkflow )) as IStartWorkflow ; Guid guid = aWorkflow.StartWorkflow( typeof ( SampleWorkflow1 ), parameters); Here StartWorkflow takes workflow type as argument. How can I use the XAML only file Hi, As far as I can tell there is no standard way supplied to do this. To do this you will need to create your own IStartXomlWorkflow service with a reference to the runtime so you can start them. Maurice Take a look at t ...Show All
tokie Message "Value cannot be NULL. Parameter name: component"
I receive the message "Value cannot be NULL. Parameter name: component" when I try to open a Windows.Forms.Form in the VS2005 designer . The form contains a user control that instantiates a rehosted workflow designer. The error occurrs on the line IRootDesigner rootDesigner = designerHost.GetDesigner(designerHost.RootComponent as ActivityLibrary. WorkflowActivity ) as IRootDesigner ; within the user control. The error does not appear at runtime. Only in the VS2005 designer. Can someone please give me a hint, what I could check in my code or respectively what the error message means (which "component" is meant) Is RootComponent null If it is - likely your WorkflowDesignerLoader isn't l ...Show All
black2night Writing only selected frames in AVI?
Greetings, I'm trying to pass to file writer filter only selected frames from a stream. I have written a transform-in-place filter that passes through only those frames that I need, but file writer writes the same frame several times (instead of writing it only once and waiting for the new frame to arrive). How can I invalidate frame once it has been written so that it won't be written again Thank you in advance, Murom This project seems to be VFW-based. Besides it doesn't do what I need: to set file writer (last filter in the filtergraph) such that it will write to AVI only frames with the specified DV timecodes. Note that IMediaSample's delivered to file writer do not have timestamps they are marked with on a DV d ...Show All
