Keith Henkel's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How to use this code into my another code?
How to put this code using System ; using System . Diagnostics ; using System . Runtime . InteropServices ; namespace DirectShowLib . Test { public class IBasicAudioTest { IFilterGraph2 graphBuilder = null ; IBaseFilter filter = null ; IBasicAudio audio = null ; public IBasicAudioTest () { } public void DoTests () { try { // We need a stereo sound renderer... BuildGraph ( "foo.avi" , out this . graphBuilder , out this . filter ); this . audio = ( IBasicAudio ) this . filter ; TestBalance (); TestVolume (); } finally { Marshal . ReleaseComObject ( this . filter ); Marshal . ReleaseComObject ( this . graphBuild ...Show All
Visual Studio Tools for Office I need help!
I would really appreciate it if someone could help me out on this I'm having problems with the security permissions of the word document customization assemblies. Even after giving permissions to the assembly from the .Net framework configuration, it's still telling me that the customization assembly does not have the required permissions to execute. I've been facing this issue for a long time.. plz if anyone has the solution to my problem, i'd really appreciate your feedback thanks Maha You have to remember that both the document as well as the assembly location has to be in a trusted location. Please be more specific on your situation. Word document, local - Assembly, local Word docum ...Show All
SQL Server Debugging SQL Server 2005 Stored Proc with Visual Studio 2005
Hello, we have a SQL server 2005 with Visual studio Prof. 2005 in the employment. The debuggers function only in Visual studio correctly, as long as no code on the SQL server must be implemented. If a BREAK POINT in a Stored Procedure is set, this is not activated, since this cannot be bound. Does someone know, what it lies and can like one it eliminate Thank you for your assistance in advance. Yours sincerely Big_Ben_31 I will have to ask the obvious question about your setup. Have you ensured that it is complete The new topics in BOL and MSDN describe the steps in details including troubleshooting ones. Please start with the links below: http://msdn2.microsoft.com/en-us/library/kkyhd4yb.as ...Show All
Software Development for Windows Vista How to record from 'Wave' or 'Stereo Mix' in Vista?
Hi all, I wrote the following question in other forum space but some MSFT guy told me to try this forum for my question. I hope I could get right answer as soon as possible here. On Windows XP or earlier, I could capture the audio stream to the speacker not from the external device (maybe endpoint device in Vista) like the microphone. In other words, D irectSoundCapture was able to capture from the selected recording device/source line in the Windows record control utility or mixerXXX APIs. And if "Wave Out Mix" or "Stereo Mix" or something similar was selected as recording source line, D irectSoundCapture was able to record the audio stream to the speacker. However, I could not find the way to do tha ...Show All
Visual Studio 2008 (Pre-release) Force Button Inside ContextMenu To Close ContextMenu
Hello, I have a ContextMenu that contains a Button. When I click on the Button, the ContextMenu does not close. Is there a way to force this <Rectangle Fill="Blue" Height="50" Width="50"> <Rectangle.ContextMenu> <ContextMenu StaysOpen="False"> <ContextMenu.Items> <Button Content="Hi" /> </ContextMenu.Items> </ContextMenu> </Rectangle.ContextMenu> </Rectangle> Thanks, David You can subclass your button and override OnMouseLeftButtonUp class MyButton : Button { protected override void OnMouseLeftButtonUp( MouseButtonEventArgs e) { e.Handled = false ; } ...Show All
SQL Server Question regarding configuration of an Active/Active cluster
Hey. I've a Active\Active with SQL 2000 on the nodes right now. I've to migrate to SQL 2005 and needed some help regarding using accounts. Should I use the same account for the cluster service and the SQL Server/Agent service If not what are the permissions I've to give to the cluster service account in SQL I've a cluster with 2 nodes. What permissions should the SQL account be given on the box Should it be a local admin or when installing, I give it the account and let SQL worry about giving permissions to the box Thank you. Tej, According to MS: - You should have different accounts for the cluster and SQl. Reason for this is that if the cluster account password changes, it does not affect S ...Show All
.NET Development item_inserting
is there a way to check if the record i want to insert is a dupplicate record or not; i tried the iteminserting events of the detailsview, formview and the datasource inserting events but nothing works the way i wanted; instead there was a transfer to a page where it says that a primary key violation occured with a stack dump; i know there is a way to execute a select query to see if the primary key is already there in the table but it is not what i want here; i need to handle it at the ITENINSERTING event; please help!! Please restate your question at http://forums.asp.net . This is the ASP.NET Web Services forum. Thank you ...Show All
Visual Basic Problems with binding a combobox
I got a form where you can enter information in textboxes and i got comboboxes where i want to choose some predefined options. I binded the textboxes with the information in the database, and i am trying to bind the combobox with the database. the problem is the combobox is showing information, but not all the options that it should be. It only shows the options that have been used in the call table. Also if you change the combobox to a value that is used in the second row of the table "calls", all the comboboxes changes to a value that is used in the second row, the same happens if you change 1 combobox back. I think my problem is in the sql query here is my connection string Dim objConnection As New SqlConn ...Show All
Game Technologies: DirectX, XNA, XACT, etc. error loading model in xna framework
hello i have a problem loading a model that i have made it in 3d studio max 9, the model is a human all with texture, but when i put it in the content pipeline and try to run or compile the program the compiler send me this error Error 2 BasicMaterial has a texture, but geometry does not contain texture coordinates. E:\my games\prueba01\prueba01\enzo.X prueba01 What i need to do to correct this how do i put texture to a geometry what does it mean You need to assign a set of UVs to your mesh so the texture can be applied. If you have assigned UVs in Max, you need to see whay your exporter is not including them in the X file. ...Show All
Visual Studio Express Editions Alternative to Timers
Yeah, are there some other things I can use that replaces timers Like a loop or something You could do this, however it would chew up your compute resources for the whole operating system for the duration of the loop. What are you attempting to accomplish ...Show All
.NET Development Synchronizing contents of datatable with the database
I have 2 forms that modify the data of a table; Form1 opens Form2 Form2 modifies the table "Sample" and closes Form1 should refresh its datatable to reflect changes made by Form2 Any suggestions Is there a refresh function for ado.net2 *BTW, im not using strongly-typed datasets so everything is done manually.. thanks, paolo Paolo, If the contents of both forms are drawn from the same datatable , then you would need to refresh the controls that display the data , This also depends on what databinding you have in place , If the contents of the forms draw from different datatables and you do not have local copies of these datatables in place you going to have to hit th ...Show All
Visual C++ Decorations on C++ DLL function declarations really needed?
I used the _stdcall decorators on the Visual C++ function definitions and declarations, but I couldn't get communication between the DLL and the Visual Basic application that was trying to call the functions of the DLL.. When I removed the declarations from the VC code almost completely (all but for the DLL_Main function definition), it worked fine. Is there any disadvantage to using this approach Everyone I communicated with about it , including my boss and people that answered the MIcrosoft help posting that I put up, stated that you have to use those decorations. Why is that It works fine without it so far. My boss will be back from travel tommorrow. I was hoping to find out today so I can make ...Show All
Commerce Server Biztalk Catalog Integration
Is it possible to setup the Biztalk integration with the Catalog Manager to delete variants when importing with Incremental changes. I have tried creating the XML file with the variant I no longer want not present in the file but if I go into catalog manager I can still the variant after import. Please Advise. Hi, I have tried this on over different box as well and it doesn't work. First i loaded service catalog with schema changes then i loaded base catalog with schema changes. Still i got same results. Can you please send me the port settings for this I believe something is correct on send port settings. Thanks, CSQ ...Show All
SQL Server How should I name my history tables ?
Hi, I want to backup an important table every week in creating some history tables. I would like to create a Dts job or script to create every week a table with the day and month in its name. ( like : [important_table_09-07] , [important_table_09-14],... ) Any idea Thanks. Hi, you will have to use dynamic SQL for that: SET @Command = 'CREATE TABLE ' + @Tablename + '_' + CONVERT(VARCHAR(8),GETDATE(),112) + (...Columnshere) HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development XML Notepad 2007
Hi all, I just noticed that XML Notepad 2007 has been published. See XML Notepad 2007 on Microsoft Downloads. I listed a summary of the new features taken from the documentation on my blog . Cheers, Simon. ...Show All
