Answer Questions
P Colmer replacing standard activity's validation error message
Dear All, I'm looking for a way to replace a standard activity's error message. If i drop a FaultHandlerActivity on workflow, it says "Property FaultType is not set ....." What if i want in a different language Or want something else to display to end users in a re-hosted designer like "Please select a fault type" Thanks Xeon Thanks for your reply. Actually i need exactly the FaultHandlerActivity, but it's sealed so i can't inherit from. I've created custom activities but that ones inherited from Activity class. Is there a way to "wrap" FaultHandlerActivity All i need is the FaultHandlerActivity , but i should replace it's default error message when the faulttype is not set to some ...Show All
Colin Macguire Video playback with brightness/contrast ?
Hi guys. I am writing a C# app ( but C++ answers are fine, I have a C# DShow wrapper, and I can code C++ fine ), and the client has sprung an extra requirement on me, namely video playback ( which is trivial ) on what was before a still image viewer. They want the same controls on video, however, which means they want to rotate the video, and they want to set brightness and contrast on the video during playback. I've googled, and the WMP seems to have an interface, but it doesn't work ( just exposed for skinning ) and I can't see how to do this with DX either. Any help appreciated. That's for the reply. No, I don't want to grab stills, I want the stream itself to reflect the changes. I'm doing brightness/contrast via mat ...Show All
winstonSmith Recorded Video File Has no Length
Working on Windows Mobile 5.0 Using as a base the sample "CameraCapture " from the PocketPC SDK. My code below. I call the function to start recording video. It creates the asf file specified but that file is unplayable on the phone. Windows Media Player (latest version and a few older versions I tried) cannot play it. Nor can VLC. When I look at the file in AVICodec (multimedia file analyzer) it says: C:\camcap.asf File : 140 KB (0.00 B), duration: 0:00:00, type: ASF, 0 audio stream(s), quality: 26 % Video : 140 KB, 0 Kbps, 0.0 fps, 176*144 (4:3), WMV3 = Windows Media Video 9, Supported I haven't specified any audiostreams so there shouldn't be any. 176x144 is proper resolution (as I haven't changed it, and from IAMStreamCo ...Show All
Duckboy Vista DHCP Client
Maybe there is a better place to ask this, but didn't see a forum on Vista Networking. I see the Vista DHCP client no longer uses gratuitous ARPs to detect duplicate addresses on the network. Are there any articles that explain how this is now being performed jdoug Never mind. Still does use gratuitous ARP, but sender IP address is now 0. ...Show All
tommy_just_learn_it Is there a managed equivalent of CoCreateInstanceAsAdmin()?
Better yet, can I build a completely managed component that behaves the same way Yeah I could build a COM component in .NET but something is wrong here if .NET is getting left out in the cold WRT UAC security. Before I get a bloody nose trying: does the system default DllSurrogate support activating .NET COM components http://weblogs.asp.net/kennykerr/archive/2006/09/29/Windows-Vista-for-Developers-_1320_-Part-4-_1320_-User-Account-Control.aspx (the link has details on the necessary registry settings) Chris Christoph, Based on yours I created a project that successfully asks for user permission under Vista, but once granted I get the 0x80070002 error co ...Show All
pritha Windows CardSpace and MOSS 2007
Can you use Windows CardSpace together with Microsoft Office SharePoint Server (MOSS) 2007 Is it supported Hello Anna, MOSS 2007 supports pluggable authentication. You can create your own "form" authentication based on CardSpace and use it with MOSS. HTH, Vittorio Thanks. Would you do that by writing your own membership provider Will there be examples of such providers (like the AD and SQL Server ones) ...Show All
VenkatRaghavan Web Application templates for VS Express?
Hi, just wondering if there are any templates available for VS Express On the homepage of one of the downloads specified in the Release Notes it is stated that "To fully enable Web Application Projects in Visual Studio 2005, you will need to first install Microsoft Visual Studio 2005 – Update to Support Web Application Projects , then this add-in. Visual Studio 2005 Web Application Projects are not supported in Visual Web Developer Express Edition." Is there perhaps a way to register the template by hand The installer for the VS template states that it "ended prematurely because of an error", probably because of the the missing "Web Application Project" add-in. Suggestions anyone /Simon ...Show All
AndyL WPF/E (TextBlock) is not rendering Unicode correctly
I have downloaded the WPF/E CTP & SDK, I played with them and have noticed that WPF/E does not fully support Unicode, as I use a TextBlock to test the display of Arabic text, WPF/E was rendering the text incorrectly as if it is rendering the text from left to right while it should render the text from right to left. This same behavior is true for Hebrew too which is also a right-to-left language. am I missing somthing Until FlowDirection is implemented, Can you mirror your text <TextBlock > <TextBlock.RenderTransform> <TransformGroup> <ScaleTransform ScaleX="-1" ScaleY="1"/> <TranslateTransform X="100" Y=" ...Show All
Michael Weed Installing a SCR file
I have questions about proper installation of a screen saver (SCR) file under Windows Vista. 1. When using an installer, is the proper method to copy the SCR file to the C:\Windows folder and set the registry key Or is better to do something like in #2 below... 2. If you right-click a SCR file, Vista has a popup menu which offers to "Install" the screensaver for you. 2a. Technically, how does this work exactly 2b. Is there a way to get this function to work via the API In other words, can one create a SCR file which when activated on the desktop, calls the self-install methods 1. The recommendation is to use an MSI to install it. 2. The "Install" menu optio ...Show All
Prasant Swain Named memory object(Memory Mapped file))
I want to share a region of memory between process belong to different users session. Is it possible in vista to share memory between processes of different sessons. Regards Rohit You can share any named object (including mapped memory) between multiple sessions; you just need to create the object in the "Global" namespace. Please note that you will need the SeCreateGlobalPrivilege privilege to create the object, but any process will be able to open the object. Yes. The same rules will apply, the named object must be created in the Global namespace and the process creating the object must have the SeCreateGlobalPrivilege privilege. Suppose there is a dll creating some shared memory ...Show All
JulianRidley Setting volume levels with IAudioVolumeLevel
Hello, I've been trying to set the level of a particular part by using the IAudioVolumeLevel interface of the API. I can Activate a valid instance of the interface, and when I call GetLevelRange on it, I get a min value of -34.5, a max value of 12, and a step value of 1.5. However if I loop through the valid step values and set them with SetLevelUniform, while comparing the value of the volume level slider in the Control Panel (which goes from 1-100), I get unexpected results. The number on the slider (and volume from the speaker) remains at 0 for the first 8 iterations of the loop until I get to a level of -24 for the SetLevelUniform call, at which point the slider value moves to 1, where it remains until the 8th iteration in the loop ...Show All
ShadowRayz Dependency Property
I have a custom activity derived from HandleExternalEventActivity that I have generated from a interface using the wca.exe tool. On this activity there is a dependencyproperty Approved (type bool) generated. The value of the property is set in the eventhandler for the activity. I have placed my activity inside a while activity that I have set up to have a Declarative Rule Condition that is set up like !this.pageApproved.Approved When I debug my custom activity and more precisely the get/set of the dependencyproperty. I see that when I send an event to the workflow that sets the property to true everything seems nice [ ValidationOptionAttribute ( ValidationOption .Required)] public bool Approved { get { retur ...Show All
Jonas.S LockProfile of IStreamBufferSink
I am working timeshift function in Windows vista. I have to use IStreamBufferSink::LockProfile function. But it is failed in Windows Vista. In DirectX C++ MSDN, it is written that This topic applies to Windows XP Service Pack 1 only. How can I do for use LockProfile in Windows Vista Pls, help me. try SetNamespace(NULL); of IStreamBufferConfigure3 (new in vista) worked for me... I still say you should file a vista bug. Requiring people to be an admin to use SBE doesn't seem like a good plan. Especially given that vista doesn't want people running as admin in the first place. Yeah, it looks like SetNamespace(NULL) is what you wa ...Show All
cuetumayu CardSpace Hack
I have noticed an interesting behavior of Open File Dialogs in CardSpace allowing a user to interact with his own desktop in parallel with running CardSpace. More information in my blog: http://staff.newtelligence.com/sergeys/HackingCardSpace.aspx So, the CardSpace's private desktop is not so private anymore. Can anyone check if the same trick is possible on the latest builds (I use RC1) I'm sorry for the late reply. As Richard hard pointed out: Hey Sergey. What you've "found" is not, in fact, a penetration at all! When you open the "File Open" dialogs from within CardSpace, you're actually dropped back to your desktop where the "File Open" dialog is displ ...Show All
jss3426 Why Bitblt cannot capture sidebar gadget ?
Hi everyone, I'm developing some kind of screen capture application. I use API like CreateDC("DISPLAY",NULL,NULL,NULL) and BitBlt to capture desktop screen. All windows on desktop can capture normally. But sidebar and gadget not capture by this method. Does it require special API to do this Thank you Thank you very much Davis, you're right. With CAPTUREBLT flag, I can capture sidebar now. Did you try using the CAPTUREBLT flag (includes layered windows) with your BitBlt call ...Show All
