AdriM's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Components Advantage
Is there any real advantage to creating a class as a component Say I have a camera class - Is there any reason to base it off of Component To tie some of these responses together, I think that yes, the component model is not a replacement for proper structures such as scene graphs, but they can definitely help bring things together in an additive way. And the way you can accomplish this is by composition. Consider your camera example ... you can have a camera component, which registers an ICameraService, which exposes a Camera property. This Camera property can inherit from whatever class you want ... there you go, best of both worlds :-) The graphics component does this very thing with the way it exposes ...Show All
Visual C# print picturebox image basic question
hello, i am new to desktop app. i am loading tiff images to picturebox one by one.what i want is to print the current picture(image) in picture box when the user clicks on the print button. please help me out... thnx Hi, Private Sub Button1_Click( ByVal sender As System. Object , ByVal e As System.EventArgs) Handles Button1.Click Dim TmpPrntPicDoc As New System.Drawing.Printing.PrintDocument AddHandler TmpPrntPicDoc.PrintPage, AddressOf TmpPrntPicDoc_PrintPage Dim TempPPD As New System.Windows.Forms.PrintPreviewDialog TempPPD.Document = TmpPrntPicDoc TempPPD.ShowDialog() End Sub Private Sub TmpPrntPicDoc_PrintPage( ByVal sender As System. Object , ByVal e As System.Drawing.Pri ...Show All
Visual Studio Express Editions User Guide download
During the download of VB Express I declined the User Guide due to its 290meg size. Now I need to know more I can't locate the download for this. Can anyone give me a URL to locate the download, or do I have to re download the entire program again While trying to uninstall the original I realised that there was an opportunity to add or remove components which gave me the choice to download the library, which I did without having to download all the other components. Thanks for your help ...Show All
Visual C++ Help Me Please
Hi im learnig VC++ 2005 and something wierd is goin on with my compiler.. when ever i build and run my projects an error pops up saying "This Application Has failed to start because MSVCP80D.dll was not found. Re-installing the Application may fix the problem." but here is the wierd part the file MSVCP80D.dll is present in my C:\WINDOWS\WinSxS\x86_Microsoft.VC80.DebugCRT_1fc8b3b9a1e18e3b_8.0.50727.42_x-ww_f75eb16c folder i can see it but how come VS is not detecting it and i even tried re-installing the software but it doesn't seem to work can someone please help me!!! Thanks well the out put box says Debugger:: An unhandled non-continuable STATUS_DLL_NOT_FOUND exception was thrown during proce ...Show All
Software Development for Windows Vista IMediaDet interface - access violations
Hi all, I've written a DirectShow app to sample frames from various video formats and capture the frames as bitmaps. It works but I'm getting access violations when I use the IMediaDet interface. I create it using: CComQIPtr<IMediaDet> pMediaDet; HRESULT hr = ::CoCreateInstance(CLSID_MediaDet, NULL, CLSCTX_INPROC_SERVER, IID_IMediaDet, ( void **)&pMediaDet); When I create my sample grabber I use IID_ISampleGrabber and not IID_BaseFilter (which I know can cause access violations). The IMediaDet functions: put_Filename, get_OutputStreams, put_CurrentStream and get_StreamType are fine. However the functions get_FrameRate and get_StreamLength have access violations. I've searched the forum and found that someone else had ...Show All
Software Development for Windows Vista man-in-the-browser attacks
CardSpace seems secure once the user is in the CardSpace desktop, but I worry about the security of the application (IE, Firefox, etc.) that invokes CardSpace in the first place. How resistant is CardSpace and/or IE7 to man-in-the-browser attacks For example, a trojan browser helper object or extension that invisibly modifies the claims presented to CardSpace. The user is not likely to be checking the claims too carefully (if at all), and the Identifying Party of course has no way even to detect, much less prevent, this attack. Is IE7 hardened against such an attack, and if so, how If the browser is compromised, then the interface between the browser and CardSpace might likewise be compromised -- that is m ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Upcoming Starter Kits
From yesterday's webcast (where was everyone ), it was mentioned that a puzzle starter kit would be included in the RTM version and that the XNA Racer starter kit would come with the Creator's Club membership. I didn't get a chance to confirm this. Is this the case Also, are there any plans for other starter kits down the road Jim Perry wrote: I'll be getting a Creator's Club membership so I'm not concerned. Good point :-P ...Show All
SQL Server Attach error
I plan to move my database file to another folder, I detach it first (successfull), but I can't move (Cut&Paste) my database to another folder (Access is denied), And then I go back object explorer but error when I try to Attach "Failed to retrieve data for this request (Microsoft.SQLServer.SmoEnum)...... CREATE FILE encountered operating system error 5 (Access is denied)" please tell me how to attach my database, I really need the data.. thx.. Hi, you will have to logon with a user who has access to the file first. If you don’t have any, you can logon on SSMS with a SQL Server login (if enabled) and attach the database. The SQL Server Account will be used then for attaching the database whic apparantly had the ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Revision Control included in XNA?
I heard XNA will include some sort of Revision Control, some kind of Perforce or SubVersion directly included in the package. Can someone confirm that Source control is not a part of the Express family of products, including XNA GSE. I use Vault myself (that's not an endorsement, even though I really like the product). You could easily use WinCVS/Subversion/SourceSafe/etc. Personally, and I know this is wierd, I'm not fond of "integrated" version control in my development tool. That's probably a holdover from my old SCCS/RCS days in the early 80s ...Show All
Visual Studio Team System Roll Back Code
HI, My team and I have been discussing the best way to go back to a release and make a code change without having to release new work that has been checked in. We are using a web site project when the application should be using a Web Application Project. We are currently re-working the project in parallel to correct this issue. We are an ISV Certified Partner and have lots of customers using the same Web application in slightly different ways. This therefore means that it is critical that we respond to Quality issues with our product as quick as possible regardless of scheduled release dates. I am sure this is an issue that a lot of people have come across, and there are some great best practice methodologies out there. We have dis ...Show All
Software Development for Windows Vista NetUserEnum call fails on vista when going across domains
I have a parent and a child domain. The vista machine is in the parent domain, when i try to get the user accounts on the child domain rfom the vista machine its gives me a access denied (5) even though i am logged in as a enterprise admin. The same code that i have outlined below works on XP\2000 etc. I use NetWkstaGetInfo to get information of the users workstation. The (WKSTA_INFO_100) structure member (wki100_langroup) has the name of the domain (Parent domain in this case as the vista machine is on the parent domain) then i use the NetGetAnyDCName to get any domain controller on the parent domain. I run the NetGetAnyDCName again with the domain controller from the parent as the first argument to get a domain controller from the chi ...Show All
Visual C# C# Programming->Structure
Hi Ques1 :-> Can be instantiate the object of a strcuture using default constructor after declaring the parameterised constructor in the structure if yes why No. Let's say that you have the following code: public struct MyStruct { private int _x; private int _y; public int X { get { return this._x; } set { this._x = value; } } public int Y { get { return this._y; }   ...Show All
Windows Forms How do I display the column and line number using TextBox?
I want to keep a label below the TextBox. I couldn't find any commands for finding out the columns number and the line number in the TextBox class. Any ideas how I can display the column and line number of the position of the cursor in the TextBox Hi, Furqan As long as I know, there is no such a method or command to directly find out the columns number and the rows number of the textbox. But, you can implement by yourself. Your idea gonna be interesting , so I deal with it for you as an example, and it works well: int start = textBox1.SelectionStart; //record the position of the cursor in textbox &nbs ...Show All
Software Development for Windows Vista display interlaced video
hi, I have a HDTV capture card that always combines two fields into a frame, i.e., it will generate a 30fps video at 1920x1080 for a 1080/60i input. The interlacing effect is very noticeable in the video render. Is there any existing de-interlacing filter for DirectShow The only one I found online (from alparysoft.com) does not work with HD (it seems). Note that I need a real-time solution. Ideally, I would like to display the video at 60Hz (instead of dropping half of the resolution). Given the 30fps input from the capture filter, is there anyway to "double" the frame rate in a filter graph Finally, a simple question about graphedt, is there anyway to show the actual video format being used in a filter graph through the UI I alw ...Show All
Connected Services Framework Move CSF databases to a different SQL Server Instance
Hi, I need to move the databases created by CSF to a different SQL Server Instance. Where and what will be the changes required to be done to get the system running again. Ashish Hi Ashish and VDeevi, Thanks for your notes - all of the CSF databases can be moved using the following process: (a) Stop message flowing to all instances the connector, ideally this will be done be stopping the up-stream service(s). (b) Stop the application pool in IIS, or use iisreset. (c) Use SQL Server tools to attach/detach, or backup/restore, or even log-shipping to move the database to a new SQL Server machine. (d) Verify, using SQL Server tools, that the database is intact and functioning. (e ...Show All
