J. Bennett's Q&A profile
Visual C# Playing cd's with mci question
I am trying to write some code to play a CD from a drive and the user can indicate what track to play. I should be using this format, as far as I know: mciSendString("open cdaudio", null, 0, IntPtr.Zero); mciSendString("play cdaudio from 3:00:00:00 to 4:00:00:00", null, 0, IntPtr.Zero); So this would play from the 3rd track to the 4th. This does not work, it seems to start in the middle of the first track or the track that I want to paly (3). Any advice Thanks :-) see if the documentation helps... http://msdn2.microsoft.com/en-us/library/ms709492.aspx http://msdn2.microsoft.com/en-us/library/ms707322.aspx http://msdn2.microsoft.com/en-us/lib ...Show All
.NET Development IIS Worker Process message box
Application Error Event 1004 appeared with this in the event log: Reporting queued error: faulting application w3wp.exe, version 6.0.3790.1830, faulting module unknown, version 0.0.0.0, fault address 0x00730061. Not sure why this is occurring, but have been unable to find any solutions about this on the newsgroups. I have seen other posts, but no answers. Hey, I also just started having this problem this morning. Reporting queued error: faulting application w3wp.exe, version 6.0.3790.1830, faulting module davex.dll, version 6.5.7651.60, fault address 0x00067922. Has anyone came up with a solution to this Thank You ...Show All
Visual Basic Redistribution
How does one redistribute PrintForm Are we limited to the provided installers Regards, - Mike Hi - Sorry I didn't realize this thread took a new direction on the EULA for print form. You can find the EULA in the install directory for the component, e.g. C:\Program Files\Microsoft Visual Basic 2005 Power Packs\PrintForm 1.0\Setup\EULA.rtf The other EULA you are pointing to above is for something else. We're still talking about license for PrintForm, right If yes, I think this is well written enough to understand the bottom line. Here is the first paragraph (I encourage you to still read it all): " Microsoft license to User for Use of the Toolkit This license governs ...Show All
.NET Development Authenticating client using SSLStream
I have seen the MSDN sample code for implementing SSL in a TCP client/server application (http://msdn2.microsoft.com/en-us/library/system.net.security.sslstream.aspx) I then wanted to add the 'optional' client authentication piece to this sample by changing the client to use: I Added: X509CertificateCollection X509Coll = new X509CertificateCollection(); I Added: X509Coll.Add(new X509Certificate(@"c:\Projects\SSLStreamClient.cer")); I Changed: sslStream.AuthenticateAsClient(serverName, X509Coll, SslProtocols.Tls, false); it originally was: s slStream.AuthenticateAsClient(serverName); I created SSLStreamClient.cer using makecert.exe and placed it in CurrentUser.Personal and in CurrentUser.Trusted Root Certi ...Show All
SQL Server The product level is insufficient for component
hi, I am very new to SSIS. I have created a small application in which the data flow task contains OLEDB source, derived column and datareaderdest.When i run dtexecui.exe and execute the package i am getting these errors The product level is insufficient for component "Derived Column" The product level is insufficient for component "DataReaderDest" But i am not geeting any warning or error when i debug the solution. Please help me on this. Thanks in advance help. I dont know what is wrong but I have ISS enabled on my PC and I installed SSIS when I installed the Enterprise Edition, but it keeps giving me the same error. What else can I do The product le ...Show All
Software Development for Windows Vista Anyone else Agree - Missing Event?
I was just wondering or agrees or... even... disagrees. Why is there no 'StateChanged' event There is event for Started, Completed, Terminated, but not the main event I , personally, would think would make the most sense: StateChanged Anyone else think this would very much be a benefit to workflows in general Especially, if the event included the option for a generic<T> object to be passed in the event. Again... a newbie just sharing his "two-cents". Trevor We do report all state changed in the workflow instance via explicit events in the runtime events and the tracking events. Can you elaborate more on what do you mean by "StateChanged" event And what value added ...Show All
Internet Explorer Development XML on the fly?
Is there a way of generating and reading an XML page on the fly e.g If I want to run the query 'Select * From Table1 for XML AUTO' when a page is opened and then use the info on the generated page to populate lists on the initially opened/source page, how is it/can it be achieved . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Blank screen and render targets
Hello! Have some problem with multiple render targets: RenderTarget2D bb = this ._graphics.GraphicsDevice.GetRenderTarget(0) as RenderTarget2D ; this ._graphics.GraphicsDevice.SetRenderTarget(0, this ._testQuad); this ._graphics.GraphicsDevice.SetRenderTarget(1, this ._testQuad2); this ._graphics.GraphicsDevice.Clear( ClearOptions .Target, Color .Black, 1.0f, 0); //DRAW STUFF this ._graphics.GraphicsDevice.ResolveRenderTarget(0); this ._graphics.GraphicsDevice.ResolveRenderTarget(1); this ._graphics.GraphicsDevice.SetRenderTarget(0,bb); this ._graphics.GraphicsDevice.SetRenderTarget(1, null ); At the end i got the problem that the second render target is simply a black screen... Wha ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with FX Composer generated .fx files and model position
Ok, so I have model rendering working with custom effects thanks to the help of members here. The problem I have now is that if I use the effects generated by the FX Composer (Nvidia product,) my models always render at 0,0,0. Here is the code I'm using to render models with a custom effect called "SimpleEffect": public void DrawModel( int index, Vector3 trans, Vector3 rot, Vector3 scale, float aspectRatio, Camera camera, GraphicsDeviceManager graphics ) { int iMeshCount = 0; int iEffectCount = 0; Matrix world; // Sanity check if (myModel[index] == null) { return; } //Copy any parent transforms Matrix[] transforms = new Matrix[myModel[index].Bones.Count]; myModel[index].CopyAbsoluteBoneTransformsTo(tran ...Show All
SQL Server SQL 2005 database will not attach in XP
We are testing our product installation and run into the following problem on Windows XP and Server 2003, but not 2000: I am trying to attach a database using a command line program that we made, but get the following error: Could not open new database 'Launcher5'. CREATE DATABASE is aborted. File activation failure. The physical file name "C:\MARC\MARC5\Data\Launcher5_log.LDF" may be incorrect. The log cannot be rebuilt when the primary file is read-only. If using the Data directory is acceptable, go ahead choose Curtain A, then mark my previous post as the Answer. If you really want to dig into using a custom directory, let me know and we can explore the permissions issue. The dire ...Show All
Visual C# Convert type 'string' to 'System.Web.UI.WebControls.TextBox'
Hello, I have a control protected System.Web.UI.WebControls.TextBox TransferDate; If I do this TransferDate = System.DateTime.Now.ToShortDateString(); I get an Error Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.TextBox' How to fix this Error Thanks, Harsimrat ...Show All
Software Development for Windows Vista [RTM Vista] - Problem binding an ssl certificate to an ip:port, nothing works :-(
Look this link. I'm running on Windows Vista RTM as an administrator. The certificate has been crafted with makecert for developing purposes. I'm getting error 1312 while registering it to whatever ip/port. I need this certificate to authenticate a WCF metadata exchange through https. I tried to logon myself using "net use" but nothing seem to happen even when "net session" command states a session actually exists. I'm getting confused since i should be already logged -_- as an administrator. I'm googling around, i've found other ppl posting on forums they're experiencing the same problem without solutions. I tried to set an ssl cert on windows XP i've on ...Show All
SQL Server i really need some help!!!!!!!
well......im from peru....i dont speak english too well.......but...i have the SQL express edition....but when i open it....i gotta to connect to a server.....but i dont have any server.....what do i should put to in "server name" and "authentication"...to star to use the SQL express edition.... well..if there are some grammathical mistakes....sorry...im learnin` english please answer me is an emergency!!!! Jaime well generally you connect to the local computer\SQLExpress: (local)\SQLExpress in regards to authentication, again it depends what type of authentication you set up. Was it Windows/trusted authentication or SQL authentication if its Windows then you just type in your Windows username followed by th ...Show All
Visual Studio Team System Version numbers of CTPs and RTM
Hi, It would be really useful to have a list of all the build numbers for all the CTPs and RTM published somewhere. Trust me, its sometimes difficult to remember what you've installed or know exactly which version each of the various VSTS installers puts on there. Any chance Thanks Jamie Microsoft Visual Studio Team Edition for Database Professionals version 2.0.50727.251 is RTM version 2.0.50727.222 is CTP7 version 2.0.50727.205 is CTP6 version 2.0.50727.145 is CTP5 -GertD ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Compiling DX10 example with C99 compatible compiler (Pelles C)
Hi, I am trying to compile a DX10 program with a LCC based C99 compatible compiler. It works fine with DirectX 9, but with DirectX 10 I get an error message in the dxgi.h header in line 287 that says: "Missing Parameter type '__RPC__deref_out'" This error repeats then a couple of times, because it is quite often in the file. In d3d10.h I get an error message in line 865 saying: Syntax error: found 'ID3D10Device' - expecting ')' and missing parameter type __in later in line 879 I get a "Duplicate field name 'guid' in [incomplete] struct ID3D10DeviceChildVtbl' ... and there are others as well. If there is a way to fix this easily in my headers, I would appreciate your advice, - Wolfgang ...Show All
