AnaC's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Some Questions About Making a DX10 App with a DX9 Fallback
I'm working on a DX10 app with a DX9 fallback, and I have some questions. Right now, I simply have it setup so if DX10 initialization fails, it will use DX9 instead. Of course, this causes problems. While it may work in Vista, all other versions of Windows don't even have the DX10 DLLs, so the app simply doesn't even run long enough to know if DX10 failed. How can I have the app load the DX10 DLLs if it can, but if it can't, load the DX9 ones instead. Also, many functions in D3DX9 and D3DX10 go by the same name. Right now, whichever library I link first, it will call that version of it. For example, if I link d3dx9.lib and d3dx10.lib in that order, and call D3DXMatrixPerspectiveFovLH, it will be called using d3dx9_32.d ...Show All
Software Development for Windows Vista listening to internal events
Hi! I have a little problem handlig some events raised by activities within a workflow. This s the code: public partial class Activity1 : RaiseExternalEventActivity, IEvents { public Activity1() { InitializeComponent(); evento += this.eventoRaised; } protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext) { OnEvento(this, new ExternalDataEventArgs(this.WorkflowInstanceId)); return ActivityExecutionStatus.Closed; } #region IEvents Members public event EventHandler<ExternalDataEventArgs> evento; private void OnEvento(object sender, ExternalDataEventArgs ea) { if (evento.GetInvocationList() != null) evento(sender, ea) ...Show All
Software Development for Windows Vista Verifying user's password
During my install I prompt the user for their username and password. I then try to verify this, but it requires elevated priviledges. The documentation says to add the msidbCustomActionTypeNoImpersonate flag to custom actions, but this flag only works on deferred actions. Does anyone know of another way that I can verify the users password Thanks, Anthony The could potentially work, but I will have to do some testing with the QA group. Thanks, Anthony ...Show All
.NET Development Using .NET Remoting within a CLR Trigger?
Ok, forgive me if this is ridiculous question but is it possible to call a .NET Remoting method from inside a CLR Trigger My gut feeling is yes it's possible but there could potentially be a performance hit. Questions, comments...anyone....Ferris I don't think you can. And even if you can, it doesn't mean you should :). I believe that your problem is related to the ASP.NET cache invalidation when a table changes. So it might be helpful to investigate the techniques they used. Their purpose is the same, to call some .NET code from another process when something happens in the database. See http://msdn2.microsoft.com/en-us/library/ms178604.aspx ...Show All
Visual Basic about VB application setup
hi.... i have created installation package using P&D wizard. My problem is that when i am inserting new records in DB, its effect doesnt reflect in the crystal report.. when i print it ... crystal report is called using VB code... even if i refresh the report...it does not show the new records added....plz.. can u tel the solution.... When you say it doesnt reflect it are you adding records to a dataset or actually using the update method to commit them to a database. If so what database are you using and have you verified that the you are not overwriting these change because the file properties is set to always copy for the database file ( there is a well asked question which keeps reappeari ...Show All
Architecture Windows Service OR Win App
I have been told to write a windows service which 'periodically' checking for messages and application updates from the web service. The user has the choice to download updates and messages automatically or to be prompted to download them when they are available. Note: A Message may contain documents. Now my question is is it the right approach to do this using a windows service or windows app/form. Please help me out on this. Thanks kash hi, u can read about the new enhancements done to Service infrastructure at following link : http://dotnetwithme.blogspot.com/2007/01/microsoft-vista-services-enhancements.html http://DotNetWithMe.blogspot.com vikas goyal ...Show All
SQL Server Accessing the Log File Physical File Name and Path
I am new to SMO and VB.NET and I need to access the transaction log's physical file name and path so that I can correctly relocate it when it is restored on a different. What I would like to do is display the database and log's physical file and path names in some type of data control for selection by a user during a restore operation. I have been able to do this for the database but can't seem to get it to work for the log file. How do I find the log file's physical file name and path using SMO I can't seem to be able to relate the logfile collection and class to specific databases. Thanks for your help! Database.LogFiles property gives you a collection of LogFile object, each of which represent ...Show All
Visual Basic Launching a .exe prgram from within a VB program
Howdy, I am wanting to write a simple program to launch my application from a button, basically like the old Office launch bar. what i would like is that i press button X, and it loads microsoft word, I press button Y and it loads Half Life. I have been playing with system.io but i dont seem to get it...lol Thanks in advance. Dwayne Schaffarz Imports System.Diagnostics; ... in button_Click event add something like this: Dim HalfLife as New Process HalfLife.StartInfo.Filename = "Filename to Halflife" HalfLife.Start() This lines have to run HalfLife. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tile Engine Tutorial - New Resource Site
We have just lauched a new website that contains a bunch of resources relating to XNA / GSE development... http://www.xnaresources.com Our first tutorial is also up... It covers creating a basic tile engine using GSE/XNA! This is the first tutorial in a series on creating a full fledged tile engine! We also have several links in our link database and a main blog on our home page... if anyone has any resources they would like added to the site drop us a line and we will get them posted right away! I just fixed that! For some reason FireFox is not recognizing the color atribute of the <pre>... I just changed the background to a neutral gray so that white or black text looks fine on it... Stay tuned!! Part 2 of the Tile ...Show All
Visual C# Passing an inherited class as 'T' to a generic container.
I'm having trouble finding out how to use a general purpose generic container I wrote as a member of another class which wants to hold any class type based on a common base class. The first set of code below shows 4 seperate classes, RNode is a generic class, TreeControl has an RNode<TreeItemBase> member, and a "Root" property to access it, TreeItemBase is a control (not really important to this), and TreeItemHeader is derived from TreeIItemBase... Public class RNode<T> {} public partial class TreeControl : ScrollableControl { private RNode<TreeItemBase> root = null; public RNode<TreeItemBase> Root { get { return root; } set { root = value; } } } publ ...Show All
SQL Server Full text search multiple tables
Hi all, I want to full text search on multiple tables. Example my strSearch = example full text search engine. "SELECT TOP (100) PERCENT FT_TBL.Description AS mota, FT_TBL.test1_ID, KEY_TBL.RANK FROM dbo.test1 AS FT_TBL INNER JOIN CONTAINSTABLE(test1, *, '"+strSearch+"') AS KEY_TBL ON FT_TBL.test1_ID = KEY_TBL.[KEY] UNION ALL SELECT TOP (100) PERCENT FT_TBL1.Description1 AS mota, FT_TBL1.test2_ID, KEY_TBL1.RANK FROM dbo.test2 AS FT_TBL1 INNER JOIN CONTAINSTABLE(test2, *, '"+strSearch+"') AS KEY_TBL1 ON FT_TBL1.test2_ID = KEY_TBL1.[KEY]" I want to show results order such as GOOGLE: show top records full keyword "example full text search engine", then continune left ph ...Show All
Windows Forms Appearance
How would I change the appearance of some controls in the windows form, such as turning the tabs color from the normal color to say a gradient green to white or change the buttons shape and color from a rectangle to a circle and the color from a solid to a gradient. That kind of thing. HI sniper, Sorry for being late is helping you out.I was out of station for a couple of days. By the example what I meant was just to give an illustration of using garphics path.You have to modify it according as per your need .The sample code posted is for carving the top corners of a big GUI for example a form .The diamter of the arc which is given is in conjuction with that form.So if you application's client rect is very small,that value has t ...Show All
Visual C++ [C++] Implicit linking...
Is there any way in C++ to specify a custom path to implicitly link a dll I don't want to stay under the Windows Os dll path search. I would like to specify a path in my source or through the linker/compiler. That option is useful just for .lib files... I would like a similar option for .dll files. When i use my dlls i'm forced to put them together in the same direcoty or, while implicit link occurs, they won't find each other. I would like to put them in different directories. Thank you. ...Show All
Visual Studio Tools for Office VS2005 Standard: What version of MS Office is compatible
I skimmed a few of the forums and it looks like several people were having problems with VSTO 2005 because they did not have Office 2003 professional I was wondering if those problems are being seen with people using the vs 2005 standard edition.... I am going to purchase the VS 2005 STANDARD, what versions of MS office will I be able to work with I think my dad's computer has the 2003 business edition, and I am not sure about what my workplace is using (some version of 2003 for sure) I want to make sure I have the right version of MS office installed. There's VSTO, which is a special tool, then there's "plain old" automating Office. As long as you're only interested in automation, then you ...Show All
Internet Explorer Development menu on website does not load at all in ie7
The menu in the following website will not load in IE7. It worked fine in IE6 and continues to work in Netscape, Firefox and Opera. The URL: http://www.torresengineering.net/ Thank you. suemm Thank you. I got suspcious this afternoon that it was not the browser's fault when I typed the url for the other pages and when they came up they were fine. So I printed out code to compare and I saw the missing <div> tag. I did catch a couple of other things that will need to be adjusted though. Again thank you for your time and response. ...Show All
