davco's Q&A profile
Software Development for Windows Vista DVDR-DL fails on write from data, but not from image
Using the imapi2sample, I get an E_FAIL from IDiscFormat2Data::Write() when trying to burn some files to a DVD+R DL (e.g. imapi2sample.exe -write c:\users\raptor2lavbb8\AppData\Roaming\temp\burn ) It works ok with other media types and works ok to DL on other drives. So, how can I further diagnose what the problem is (beyond E_FAIL) Hey foobarX, I'm extremely sorry, I must have misread the details in the post :) So, the first thing I'd say to try is that since all of the IDiscRecorder2 and IDiscFormat2Data functions are public, you could put a breakpoint on the entire list of them and see if any of them are returning a failure, since IDiscFormat2Data::Write uses a lot of it's own public APIs. This ...Show All
SQL Server 64 Bit MSDASQL.DLL
Is microsoft going to provide 64 bit version of MSDASQL ( OLEDB Wraper for ODBC) in future This was working great while accessing Data from IBM AS/400 on Iseries from 32 bit sql 2000. Now, it's all screwed up with rediculously slow OLEDB both from MS and IBM. I wonder if any of these guys really care! Is there any update since April I can not connect 64-bit SQL Server 2005 to SQL Server 6.5. As far as 6.5 is not supported by native SQL client, ODBC is the only way to make a direct connection. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple grid component
After seeing a Color.CornflowerBlue screen far too often, and no source to Mitch's Grid component, I decided to have a go at my own. There's not much to it, and I'm sure you'll all tell me how to do it better (I hope so - only one way to learn!), but I thought it worth posting all the same. If anyone wants to put it (or a modified version) on their site along with the other stuff going up, feel free :) Not sure how it'll come through here, but you can download the file here: http://www.dannytuppeny.plus.com/Grid.cs using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.F ...Show All
Internet Explorer Development IE7 and .net
Just a very basic question regarding IE7 add on development. Can we (i guess we can) create IE addons in .net (C# or VB.net). If yes, can we use .Net Framework 3.0 for this purpose. I hope this should work for client machines having vista them, but not sure whether it will work for client machines having IE7 on Windows XP (or Win XP SP2) I have several BHOs written in C#. I got started by using the example at http://www.codeproject.com/cs/samples/autosig.asp and another good one was http://www.codeproject.com/csharp/BandObjects20.asp df=100&forumid=306921&exp=0&select=1678619 Between these two you will be writing bhos with visible interfaces in no time. Regards, Gary Blakely www.deanblakely.com ...Show All
Visual Studio 2008 (Pre-release) Bug in ItemsControl?
Hi there, The ItemsControl seems to have problems with item selection whenever the items in it override Equals(object) such that the behavior is not reference equality. For example, if you a bunch of Int32s to a ListBox and some of the ints have the same value, selection is broken. Here is some XAML to demonstrate the problem: < Window x:Class = " ItemsControlBugRepro.Window1 " xmlns = http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x = http://schemas.microsoft.com/winfx/2006/xaml xmlns:col = " clr-namespace:System.Collections;assembly=mscorlib " xmlns:sys = " clr-namespace:System;assembly=mscorlib " Title = " ItemsControlBugRepro " > < Windo ...Show All
Software Development for Windows Vista How do you manage unlockable Demo versions?
Hi, I am a software developer. I tested my application under Windows Vista and it resulted in an error message during the launch process. The error message is displayed by a component that I have included in my application, which component is managing everything about the unlockable demo version of my application (it determines how many days remaining to the trial period, and if the unlock code or activation code is valid). I know the error message is probably due to the UAC denying access to registry or files, because if I "Run the program as an administrator", I don't have any errors. My question is, am I supposed to force the elevation to the admin token for each and every single launch of my application Should I design a new ...Show All
Visual C# Thread Safety and Collection Problem
Hello, I'm working on a Network Application which holds all the connected clients in a Dictionary (Collection) and when Clients connect or disconnect this collection needs to be Modified as per requirement. All works fine with small work load e.g if a single client connect or disconnects or may be 2. But when a bunch of Clients say 30 disconnect altogether then I get Excetpion Collection Modified, Enumeration Operation may not execute come thing like this. I know this is all due to Thread Safety where multiple disconnection occurs. I have used lock and thought its enough but I'm getting this error. Here is my Code: public void Disconnected( ClientProxy sender, EventArgs e) { try { lock (clientProxyDictiona ...Show All
Smart Device Development ATL smart device project for mobile 5.0 smartphone
dear all, the developing emviroment vs.net 2005 project type: VC++/smart device /ATL smart device project(supporttng MFC) SDK:windows mobile 5.0 smartphone i add a ATL simple object into project, then compile. compiler show following error.. fatal error C1189: #error : "Windows CE .... then i add a line: #define _CE_ALLOW_SINGLE_THREADED_OBJECTS_IN_MTA and compile.. compiler says: error C2065: 'CComSingleThreadModel' : undeclared identifier error C2955: 'ATL::CComObjectRootEx' : use of class template requires template argument list 1> C:\Program Files\Microsoft Visual Studio 8\VC\ce\atlmfc\include\atlcom.h(2422) : see declaration of 'ATL::CComObjectRootEx'.....etc the project was created ...Show All
Visual Studio Express Editions Slow running project by background image
I made a project and I wanted to look it some better, so I added a backgroundimage.it is 50KB big. My project is a game, and before I played it, it runned fine. But now, when i added this nice looking background image, it runs very slow. Is there any way to load it or something. => - I already made it in jpeg(smallest image extension). - I added it to the resource list. Help would be much appreciated! this is normal behaviour. You would need to hide the form when loading the image, then show it again - it does improve the speed. so in code, on your form_load event: this.Hide(); this.BackgroundImage = Image.FromFile( filename ); this.Show(); would also be nice to post some ...Show All
Architecture Presentation layer depends on ????
Hi, I am trying to understand the layering concept with the ASP.NET 2.0 apps. I have a ASP.NET 2.0 Web app which has 3 layers Presentation layer which contains UI elements and Input validation logic Business layer which contains Business Rules, Business Objects and Business Workflow DataTier which contains database tables and stored procedures I understand that each layer is a independent entity and can be considered a blackbox by all other layers. Thus each layer can be built independently of the other layers. But in the above scenario can somebody tell me does the Presentation layer depend on the Business layer only or does it depend on the DataTier as well since there is Input validation involved in the Presenta ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Applying custom effects to an imported model
Hi everybody! I'm playing around with my shiny new Beta2, and I'm loving it. :) I've hit a bit of a stumbling block, though: I have a .x model that I've imported, which was pretty elementary.... What I've not been able to do is find the proper methodology for associating a custom, imported effect with the meshes in my model. How exactly do I do that And what if I want different material effects applied to different meshes in the model Thanks, and I appreciate the help! There are two options: At runtime, you could loop over all the ModelMeshPart objects (contained inside each ModelMesh inside the Model, so you'll need two nested loops) and assign you new effect to the ModelMeshPart.Effect property. You co ...Show All
Visual Basic storing excel.xls files in db - truncated
My application read/writes binary file data from the filesystem to the data base and sometimes back again This is all in vb.net 2005/sql2005. It works fine except for excel file, .xls. They are the exception. All data is stored in a varBinary(max) column. Images, pdf's, word docs, whatever all work fine, but not excel. Even very small test spreadsheets of 5k fail. "binary data would be truncated" is the exception. Has anyone experienced problems with this type of file A bytes a byte, I thought I call the procs like this: (1) entry.Blob = ReadBinaryFile(tbLookup.Text) (2) If Not EntriesDB.AddEntry(entry) Then MessageBox.Show("The Entry was not added. ", "Data Base Error") 'entries = ...Show All
Visual Studio 2008 (Pre-release) Cannot make WCF service work when accessed from another machine
Hi all. I'm trying to make simple, real simple stuff. I'm using VS2005 with WinFX Beta 2, and I can create a WCF Web Service (File->New Website, choose WinFX Service), got it up and running; run svcutil to get the proxy and client config file, create a simple app to use it and it works. Everything is great. However, then when I just copied and pasted the client project to another machine, it doesn't work. The error that pops out is: ************** Exception Text ************** System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed. I'm pretty sure I'm doing something really stupid here, I didn't change ANYTHING in the web.config nor app.con ...Show All
Visual Studio what is main advantage of using multiple checkout and checkin in VSS?
Currently we are operating in Single checkout checkin mode,what is the advantage of using multiple checkins Regards Hi, I think you mean multiple checkouts ......... this option used to let more than one person checkout the same file in the same time and that can be happen when two persons work as an example in the same class ...... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. GraphicsDevice information.
After reading through the MSDN, I've noticed that the GraphicsComponent. GraphicsDevice Property contains all the capabilities of the GraphicsComponent. Yet when I try a simple: this.graphics = new Microsoft.Xna.Framework.Components.GraphicsComponent(); string s = this.graphics.GraphicsDevice.DepthStencilSurface.ToString(); I get a null reference error on the GraphicsDevice unless i have done: this.GameComponents.Add(this.graphics); As you well know the above line throws exceptions if the graphics card can't handle the automatic set-up done by XNA. I'm wondering how can I access the properties on the GraphicsDevice before I add it to the GameComponents collection so as to create a configuration panel to allow the user to sele ...Show All
