oolon's Q&A profile
.NET Development WM_MOUSEWHEEL
Hi Here is the topic I wish to find an answer too... I have an application running on my lap top which should trap the WM_MOUSEWHEEL message allowing me to scroll backward and forward through my data. However, the high word of wParam is always zero even though the low word reports the shift/alt/cap status correctly. I have confirmed that my window has input focus and that GetSystemMetrics(SM_MOUSEWHEELPRESENT) returns true. Any ideas why this should be My only thought is that I'm using a laptop which has a local mouse pad and I also have a USB mouse. How does windows discriminate between the sources of wheel messages, or does it simply just 'OR' them together Odd problem, never seen or heard of that before. Sou ...Show All
Audio and Video Development Scaling still does not affect the renderer dimensions
Hi I asked about this problem and got an answer that it was fixed here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=718158&SiteID=1&mode=1 But it still seems to do not work as it should. The problem: I built MFT that performs 2x scaling with input type YV12, NV12 or YUY2. To test it I use a player that based on the PlaybackFX SDK sample. When the output type is YV12, everything is OK and I get the scaled dimensions from the renderer using GetNativeVideoSize(). When the output type is NV12 or YUY2 the GetNativeVideoSize() returns the original dimensions of the video and what I see is a quarter of the frame. I also tried to set it manually with the correct size but it only stretched the quarter and did not display the ...Show All
Visual Studio Express Editions Create Text Box Array
Hi there, I'm trying to create an array of text boxes, so that I can easily iterate through them in a for loop, but I'm unable to figure out how to do this, either in the GUI designer or in the code. Any help on how this can be accomplished would be greatly appreciated! Thanks! you can do this programmatically: TextBox[] theTextBoxes = new TextBox[ size ]; of course replace "size" with the number of textboxes you wish to create. This creates an array of textboxes of the size you have specified. Then simply iterate through each one and do whatever you want with them, example: foreach (TextBox curControl in theTextBoxes) { ...Show All
SQL Server Are ODBC apis synchronous by default ?
Repro Steps: My application uses SQL Server 2005 Sp1 as the database. We are having an issue with SQL Server 2005 Sp1 in a replicated scenario. Setup: A· Publisher W2k3 Sp1 - running SQL 2005 SP1 A· Subscriber W2k3 x64 - running SQL 2005 SP1 Transactional Replication with Updateable Subscriptions (Immediate Updating) has been configured using the Wizards provided by SQL 2005 Mgmt Studio between these servers. Our app is installed on W2k3 Sp1 servers. Our app when pointing to the subscriber, creates/updates/delete rows in 3 tables (A,B and C). One specific transaction consists of the following operations in sequence: 1. Update 1 row in table A (using SQLExecute) 2. Delete 1 row in table B and Insert 1 new row in table ...Show All
.NET Development RegAsm error: Failed to load 'XXXXX.dll' because it is not a valid .Net assembly
When I run the command RegAsm.exe XXXXX.dll /tlb:XXXXX.tlb from the command line within the directory that contains a C# dll coded to provide COM interopt I get the following error: RegAsm error: Failed to load 'XXXXX.dll' because it is not a valid .Net assembly Anyone have any idea why this fails and what I need to do to manually register the assemble and export a COM compatible tlb I can register the dll as part of a prebuild step of the project that uses this dll. It does run successfully. ...Show All
Visual Studio 2008 (Pre-release) Is there any type of context available at time of IAuthorizationPolicy evaluation?
I've been doing some work with adding custom context to our WCF web services. I've successfully added context to the operation and instance context, but now I'm doing some work at the IAuthorizationPolicy level and finding out that the contexts that I've hooked so far (i.e. operation context and instance context) are not available yet at this point. First, is there a context that flows all the way through all these layers of a WCF request Second, I cannot find any good documentation on what the life cycle of a request looks. If I could find that I would probably be able to figure the rest out on my own. TIA, Drew Well, we have a custom context of our own in which we cache of data. I never want ...Show All
SQL Server Data Conversion Error on Excel Destination
I am inserting rows using OLEDBDestination and want to redirect all error rows to EXCEL Destination. I have used Data Conversion Transformation to Convert all strings to Unicode string fields before sending it to Excel Destination. But its gives the following error. [Data Conversion [16]] Error: Data conversion failed while converting column 'A' (53) to column "Copy of A" (95). The conversion returned status value 8 and status text "DBSTATUS_UNAVAILABLE". [Data Conversion [16]] Error: The "output column "Copy of A" (95)" failed because error code 0xC020908E occurred, and the error row disposition on "output column "Copy of A" (95)" specifies failure on error. An error ...Show All
Visual Studio 2008 (Pre-release) Querying Dataset, nested query
Hi, I wondering if someone could help me out on the syntax of using a nested query to query datatables. Here is an example provided by LINQ documentation: DataTable orders = ds.Tables[ "SalesOrderHeader" ]; DataTable orderLines = ds.Tables[ "SalesOrderDetail" ]; var query = from o in ordersQuery join ol in orderLinesQuery on o.Field< int >( "SalesOrderID" ) equals ol.Field< int >( "SalesOrderID" ) where o.Field< bool >( "OnlineOrderFlag" ) == true && ...Show All
Smart Device Development HELP: How to PostMessage to managed program from unmanaged program???
Hi, I have two programs, one is managed written by C# and the other one is by c++. I want to PostMessage from the unmanaged to the managed one. I use the method PostMessage(). The question is how I can get the handle of the managed one I tried FindWindow(,), but I cannot find the CLASSNAME and WINDOWNAME. Does "Remote Spy" works The other question is if I can post the message, how can I process the message I cannot find "protected override void WndProc(ref Message m)" in CF 2.0 Form. How to handle this Many thanks. You need to derive a class from MIcrosoft.WindowsCE.MessageWindow. You will be able to override WndProc. Handle access is also provided. If you want to be able to find ...Show All
Software Development for Windows Vista XP DirectShow VMR VMRXcl won't compile
Hiya, I've been working on recompiling all the DirectShow samples for several hours. Only ...\Microsoft Platform SDK\Samples\Multimedia\DirectShow\VMR\VMRXcl won't actually compile. I always get the following error message: 1>AllocPresenter.obj : error LNK2019: unresolved external symbol _D3DXMatrixPerspectiveFov@20 referenced in function "private: void __thiscall CAlphaBlt::Rotate(float,float,struct CAlphaBlt::Vertex *,int,float,float)" ( Rotate@CAlphaBlt@@AAEXMMPAUVertex@1@HMM@Z ) 1>.\Debug_Unicode/VMRXcl.exe : fatal error LNK1120: 1 unresolved externals Can anybody help 1) I downloaded serveral header files to remove some other error messages from http://www.koders.com/cpp/fid1734E51367A0F00A5A3F9F957 ...Show All
Visual Studio Express Editions They've Vanished?
All of my menu items and toolbar items have vanished, all the code is still there, all the references to them are still there in each of the properties windows it's just that the icons are not there. Is there any way to get them back Perhaps that what did it. I do remember deleting on of the icons from my "Resources" folder. If that's the case, it doesn't make me feel all that confident about the IDE. ...Show All
Visual C++ How to detect DRM information, such as the URL of Rights Issuer, from a DRM file
Is there any public tool used for read DRM properties from a DRM file or any API can read such information any suggestion is appreciated Thanks, -Jiadong This forum is for C++ language issues only. This is the right place for this question: http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.windowsmedia.drm&lang=en&cr=US ...Show All
Visual Studio Team System 411 Length Required
Hey Everyone, I am a complete newbie to VSTS and have been playing with the webtest functionality to simulate a user going through a purchase on our system. I recorded the web test using the web recorder fine and then had to modify the coded version but get: HTTP/1.1 411 Length Required error when posting back my last page. Any ideas Here is my code for the specific request, can I specify the length somewhere in code Much appreciated, D. request9.ThinkTime = 2; request9.Method = "POST" ; request9.Headers.Add( new WebTestRequestHeader ( "Content-Length" , "3495" )); FormPostHttpBody request9Body = new FormPostHttpBody (); string [] rav = this .Context[ "$HIDDE ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Blue Screen of Death or System Restart
I have XNA installed on my home computer, and on my laptop, and it happens rather often (a few times a day) that when I try run the project, or click the Save All button, I get a system reboot or a BSOD. It happened once too when I tried to move a file to another folder, in the Solution Explorer. Since it happens on two different computers, I was wondering if someone else has had the same problem. Any known bug/solution Thank you! Unfortunately, installing the Visual C# SP1 did not solve the problem. I've also made sure to update my drivers, to no extent so far. The blue screen itself doesn't present any other information beside the STOP code I mentioned before. It does howe ...Show All
Visual Studio Visual Studio 2003 Prerequisites requires reboot before setup
I'm trying to install Visual Studio .NET 2003 in a machine where is already installed Visual Studio .NET 2005. Every time I get a "another program requires reboot" message when I try to install the VS2003 prerequisites althought I have reboot several times. How can I prevent this Or which are these prerequisites to install them separately Thanks, Jose-san There are workarounds for this issue listed in the knowledge base article at http://support.microsoft.com/kb/891402 . Thanks! Aaron ...Show All
