Hastarin's Q&A profile
Windows Forms Programming DirectShow in Windows Forms
Hey. Does anyone know of a simple example of DirectShow usage with Windows Forms What I want to do is just get a simple example of a file playing in a picture control or something to that effect. Or if not... can anyone ...Show All
Windows Forms TopMost window only to a certain window handle
Setting the TopMost property makes the window top of all window handles. How do I make the window topmost only for a particular window handle not all. Tried the following API BOOL SetWindowPos( HWND hWnd , HWND hWndInsertAfter , int X , int Y , int cx , int cy , UINT uFlags ); Still stays topmost for all windows. Didn't I just answer this on Codeproject :P Given that you're reporti ...Show All
.NET Development Error when compiling a class that uses web services in release mode
Here's the case (simple scenario to make things short): I have a web service that has 2 dataSets defined in it, both of them contains dataTables with the same names (myDataSet contains myDT and myDataSet2 ontains another myDT). when I create a project the references this web service, I have no problem compiling it in debug mode, but when I compile it in release mode I get the following error: Error: The top XML element 'myDTDataTable' from names ...Show All
Visual C# Determine current WinXP user profile by reading the registry with C#
Hi C Sharpers, I'm developing a WinForm app that needs to determine the current user of the system (Win2000, WinXP) and send that profile's information to the server. The best way so far is to read into the system registry and retrieve it. How can I securely do this in C# In my application, there is also supposed to be an added feature that allow users to change their username and password. I understand this has something to do with ...Show All
Software Development for Windows Vista (Statemachine) Determine end state
Hi all, We have build a web application which hosts a statemachine workflow. In our application the host 'asks' the workflow it's current state and which page to show. We ran into a problem when the state machine is in its end state. We can access the instance of the running workflow, is there a way to determine whether the instance is in its endstate Thanks in advance. Ronald When a state ...Show All
Visual Studio VSS 2005 WebService problem
Hi hi. I'm trying to use the new WebServices in VSS2005. After fiddling around, reading through the forums and doing some more fiddling I've just given up. The problem is authentication. I can open the share from my computer, open the project from the share (with the non-internet version of the VSS plugin) and open the webservice url from my computer. I've tried doing SSL, but the result is the same. If I directly open a project under source con ...Show All
Software Development for Windows Vista Cannot add workflow into folder
When I create a folder under a project , and try to add the flow under it, if I click "add-->sequential workflow",VS2005 always add the item under the project root and namespace doesn't contain the folder name. But if I go thru another path "add-->new item-->sequential workflow", then it works fine. I don't see it is a big issue, but it's definitely a bug. Hope some Microsoft developer can see this post and fix it in the final r ...Show All
Visual C++ cannot convert from '_variant_t' to '__int64' Ambiguous user-defined-conversion
anyone know the cause of this error I've looked at the manual _variant_t's extrators have a conversion to __int64 so why is the compiler giving me an error so I looked at the header file and the __int64 conversoin operator is ifdefed to nt 501.. why is that This isn't an os specific code it's just converting. And why isn't this in the documentation ...Show All
Software Development for Windows Vista Custom Composite Activities and Correlation Tokens
Beta 2.2 Perhaps a tricky one for the WF people: I have a custom SequenceActivity that has some logic for generating the properties I need for a CallExternalMethodActivity and HandleExternalMethodActivity. The general idea is that the composite activity encapsulates the supporting logic for a user input custom activity. Now, for each type of typed input from the user, I inherit from this class and put the actual CallExternal and HandleExternal a ...Show All
Visual C++ Platform SDK help files
I downloaded and install the latest Platform SDK, and compiled a sample, it works fine. (under Visual C++ 6) Now I'd like to visit the Help files to get more information about the APIs and other useful information. However I don't know have how to view / open these help files (Help 2). After a desperate huge search over the Internet, I rely on this forum to get some help. Thank you. I had the same problem ...Show All
.NET Development first WebService - HelloWorld - AccessDenied
Hi out there, am cautiously attempting to set up a first WebService completely on my own XP and the basic HelloWorld won't work due to HTTP 403: Access Denied. the consuming application is a visual.net Windows application. Have put all folders on sharing. Have turned off the XP firewall and the 3rd party firewall too. Have gone thru the IIS manager to put 'none' permissions on the Web Service folder. I find that wrestling with the me ...Show All
Visual Basic Unable to create file...
When I make the slighest code change and try to rebuild/run I get the following error: Error 2 Unable to copy file "obj\Release\vwsWSGDA.HelperDP.xml" to "bin\Release\vwsWSGDA.HelperDP.xml". Access to the path 'obj\Release\vwsWSGDA.HelperDP.xml' is denied. vwsWSGDA.HelperDP I then have to exit Visual Studio 2005 and restart/reload the project and then it works fine. Do I have some setting wrong in the options or ... Pleas ...Show All
.NET Development Delayed send with smtpclient in .net 2.0
Is there any way to force the smtpclient to send mail immediately with the .send method in system.net.mail 2.0 Right now it takes anywhere from 90 secods to two minutes before the mail is actually sent once the .send method executes. I've tried setting the object to nothing immediately after the .send method call, but no luck. The real issue for me is the send delay is also causing the smtpclient to hold a lock on attached files that are ...Show All
.NET Development Failed to access IIS metabase, VS2005 RC
I am developing a webservice in Visual Studio RC. I have just got a new pc and my problem is that I am not able to access this webservice. I have created a virtual directory in IIS, but if I try to browse there, I get a "Failed to acces IIS metabase" error message. Does anybody know how I can resolve this problem 1) Is IIS installed on the machine (From a command prompt NET START - Is IIS Admin service present in the list) 2) Is ASP.NET in ...Show All
.NET Development Problem with RijndaelManaged and PaddingMode; PaddingMode seems to be ignored.
In the July 2005 CTP .NET Framework 2.0 bits, I've found that the PaddingMode property seems to be ignored, and PaddingMode.Zeros behavior is always used instead. This is a serious problem--because with PaddingMode.Zeros you don't get guaranteed "reversibility" during decryption--you won't know for sure what's padding and what's the actual decrypted data. I've posted a bug on this on labs.msdn: Padding / PaddingMode Property IGNORED in Rijndael ...Show All
