Answer Questions
vej Unable to call "CoInitializeSecurity"
Hi Everyone. I'm in trouble about DCOM server & client system in Vista. When the Client try to call a procedure in a remote DCOM server, CoInitializeSecurity(client side) is failed by "RPC_E_TOO_LATE". By MSDN document it occurs when CoInitializeSecurity() has been already called. But in this case it had never been called in a same process. I have this problem only in Vista OS. It worked correctly in XP and 2003ServerR2. If anybody have a good suggestion, please tell me. Kohei. Dear Mr.Lundt I really appreciate your quick reply. >CoInitializedSecuirty can be called on the client, the server, >or both and should be OK. Just curious are you callin ...Show All
Kennon2005 Select a remote filter graph to view fail
Hi all, I built a video player graph and used AddtoRot function to register it. The graph can display in GrahpEdit and work normally after enabled "connect to a running application..." function in WinXP. However, I converted platform from WinXP to Vista. The "connect to a running..." function would be fail. Dose anybody help me to clarify it thanks thanks for your kindly reply, i have installed Vista SDK and registered the Proppage.dll via regsvr32. after that, I can see Graph ID appeared in the remote selected list. but the graph can't be shown in Graphedit after i double click it. would you please help me to solve this problem BTW, i have used the two d ...Show All
Kudzu22 Windows SDK January missing Graphedit components?
Previously when in DXSDK the graphedit has used proppage.dll that is used then viewing pin property pages etc for example. The latest Windows SDK does not have this and GraphEdit in it is giving "requested property page could not be displayed" in every turn... So should that proppage.dll still be included in the SDK or is this something that is being changed On vista I use the GraphEdit from the sdk along with the proppage from xp. Will the graph edit for XP work on vista. i found some problem in installing the proppage.dll . The Error code returned :0x80070005.Can any one help me in this January is a little vauge. Are you referring to the Vista P ...Show All
Jonathan Clark Problem with IOCTL_CDROM_EXCLUSIVE_ACCESS
Hi All, I am trying to get an exclusive lock to the optical drive on my system and for that I am trying to use the IOCTL_CDROM_EXCLUSIVE_ACCESS device IO control call. I am having trouble issuing it using Windows Server 2003 SP1 DDK. I tried using it as described in here: http://msdn2.microsoft.com/en-us/library/aa509211.aspx According to the documentation IOCTL_CDROM_EXCLUSIVE_ACCESS, CDROM_EXCLUSIVE_ACCESS and CDROM_EXCLUSIVE_LOCK_STATE are defined in "ntddcdrm.h". I included ntddcdrm.h and tried issuing IOCTL_CDROM_EXCLUSIVE_ACCESS but I couldn't even compile my code as I was getting IOCTL_CDROM_EXCLUSIVE_ACCESS, CDROM_EXCLUSIVE_ACCESS and CDROM_EXCLUSIVE_LOCK_STATE : undeclared identifier error. Here is how I am try ...Show All
RaphaelGray Standard User Analyzer causes COM and ActiveX to fail
We have a legacy application programmed in C++ and MFC that runs on Windows 2000 and XP but has problems with COM and ActiveX when run on VISTA. This app is built with Visual Studio 2003. I remotely debugged this app running on Vista from my development machine and found that the COM and ActiveX problems is the app trying to instantiate the COM components but they return E_ACCESSDENIED. I have checked the following: 1. The COM components on both my development machine (XP) and the test machine (VISTA) have the same ACL’s. 2. The access denied problem occurs if I am logged into the test machine (VISTA) as a local user or an administrator (Admin Approval Mode). 3. I added: HRESULT hr ...Show All
Ramanujam Sampath how to use WorkflowRuntime.CreateWorkflow(XmlReader workflowDefinitionReader)
hi everyone, there is orderWorkflows.dll, which contains 'workflow2.xoml','workflow2.layout' and 'workflow.xoml.cs'. the following code can run. //// Load the OrderWorkflows assembly System.Reflection.Assembly asm = System.Reflection.Assembly.Load("OrderWorkflows"); // Get a reference to the System.Type for the OrderWorkflows.Workflow1 System.Type workflowType = asm.GetType("Microsoft.Samples.Workflow.OrderApplication.Workflow2"); &n ...Show All
RKN_India namespaces and assemblyname
Hello, I'm having a problem when deploying my vb.net v1.1 application to Vista. In my project the rootNamespace and assemblyName property are the same. When I want to start my application on Vista I get the "admin" warning (UAC). When I change my assemblyName property value then I can start the application without the warning. Anyone a idea ...Show All
qzrlsd Windows SDK installer crashes on XP SP2 with Visual Studio 2005
Just trying to install this and all it gets is a Dr. Watson which sends something off to Microsoft :( OK - I installed Windows Power Shell and now get an error message in the installer and can view the log file - this shows that it is failing to download the files (I wonder if it is opening too many file handles) - I have IE7 release installed. PS - you need a dependency on Windows Power Shell! Installed the image and ran from that and it worked fine - I guess the server is a bit stretched and the app doesn't like the network latency XP SP2 with latest fixes Visual Studio 2005 (not running SP1 beta) .Net framework 3.0 ...Show All
Rodrigo Angelo Figueiredo Parallel execution question?
Can anyone let me know if I can develop the following scenario using WF - I have a requirement where a request has to be approved by multiple people at the same time. The catch is the number of people and who they are is determined only at runtime after looking at the request. So, I will not be able to use a fixed number of parallel branches in the designer. Is there a way to solve this problem in WF directly or do we have to do this manually ourselves like setting up one sequential workflow for each approver Thanks for the help Ashok Ashok - you can use the Replicator activity for this. It can be configured to repeat N activities based on runtime code, and can be set to execute t ...Show All
maglup DirectShowNet: how do you set the resolution of a stream?
Hi Recording A/V streams with DirectShowNet works, but I don't know how to change the video resolution. This is part of my code: IMediaControl mediaControl = null; IGraphBuilder graphBuilder = null; IBaseFilter videoDevice = null; IBaseFilter audioDevice = null; IBaseFilter videoCompressor = null; IBaseFilter audioCompressor = null; initGraph() { //Create the Graph graphBuilder = (IGraphBuilder)new FilterGraph(); //Create the Capture Graph Builder ICaptureGraphBuilder2 captureGraphBuilder = null; captureGraphBuilder = (ICaptureGraphBuilder2)new CaptureGraphBuilder2(); //Create the media control for controlling the graph mediaContro ...Show All
Ianmac Need XPS help anyone!
For the last few days I have been reading everything I can about XPS and merging documents and I am stuck. I have seen the Document merger sample but it really doesn't help especially with all the windows stuff wrapped around it I am just seeking a simple straight forward sample on how to do this. I found this and tried to modify it every way I can but the problem is that the original page for example is in Landscape mode but every time I save it as a new page it put it to portrait mode even though the width and height of the fixed page are correct and the new page variables are correct also. But when I open the new document in the viewer it clips the right side. If they are all portrait then I have no problems at all. How on earth do you ...Show All
Adam Stuart how to using different designer for respectivetly purpose?
hi all, can i assign two Designer ,RootActivityDesigner and NodeActivityDesigner,to a Activity. if the activity is root activity ,at design time, a RootActivityDesigner be actived. else if the activity is not root ,at design time ,another NodeActivityDesigner be actived. how can i do anybody can help me . thanks in advance. Create a new Activity Library project and add the following attribute to the top of the default activity class: [ Designer ( typeof ( ActivityDesigner ), typeof ( IDesigner ))] [ Designer ( typeof ( SequenceDesigner ), typeof ( IRootDesigner ))] Now add a new Sequential Workflow Library project to the solution. Build the solution and add the custom activity to the d ...Show All
Kamii47 C# Workflow Rules in March CTP of Visual Studio "Orcas"
Hi, The download page of March CTP of Visual Studio "Orcas" notes the following enhancements in the CTP: C# Workflow Rules Workflow Rules allows users to enter rules (and conditions) in a code-like manner Support the use of the new C# Extension methods features in their rules Enable operator overloading and the new operators in their rules Can someone from the team elaborate on this topic please Guy Burstein http://blogs.microsoft.co.il/blogs/bursteg/ Extension Methods - Extension methods make it possible to extend existing types with additional methods. This is a useful way to define new static methods on preexisting classes. For example, one could extend the string class with a ToInt32() meth ...Show All
liujj_xujj Black Screen / Freeze after first reboot
I have spent many hours the past week trying (unsucessfully) to install Windows Vista. I have downloaded and installed all the most recent drivers and BIOS updates for all of my hardware. I have run the Vista Upgrade Advisor and it says that my system should be good to go and that there are no serious issues. The only item on the "Task List" is to download Vista drivers for a wireless networking adapter I have in the system to be installed after. I have tried to do an upgrade from Windows XP and a Full Install of Vista with the same results. I start the install and everything goes smoothly (installer unpacking files and getting ready for installation) until right after the first reboot. The system restarts and tries to boot in ...Show All
buster2001 Replace text in XPS documents
I'm trying to replace text in XPS documents and I've got nowhere. What we're trying to do is replace our old word templates that have bookmarks as placeholders; we use vb6 to replace the text where the bookmarks are. This is so users can create generic documents and merge them with our data from our database. We want to replace this as honestly the current solution isn't that good, but does work, so it's not all bad. I've created an XPS document with bookmarks, can't seem to figure out what makes a bookmark a bookmark in XPS. But really all we would need would be a placeholder like <Address> or <Name> or something and then replace that text with data. Can anyone help or at least point me in the right directi ...Show All
