Raoul_BennetH's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. D3DERR_NOTAVAILABLE while build of first example in help how to do
I used to code in pascal, cobol, assembly, basic, etc, but not C. From: Your First Game: Microsoft XNA Game Studio Express in 2D following along and doing the first build, I get the error above. I did not think I was calling the 3d engine only the 2d. I cannot find any help on the error, where to look, etc, except what is in the error window when you cursor over it. I cannot figure out how to copy the error in that popup window to look at it further. I know some dislike nubies, but please help if you know the answer. Its disheartening to type in only 6 lines of code and not be able to debug it! To say the least. Thanks OH OH OH, I figured out how to copy the error: Error 1 Building content threw InvalidOperationExcept ...Show All
Visual C++ devenv compile unit
Is there any reason why devenv could not accept a single compilation unit compile command (I would like to use a third part tool to issue not only a build command, but also individual file compilation.) Is there any way to compile a single file on the command line using the rules within the SLN So what I have done is to go into project properties and cut and paste the compile command line string into my tool. It just seems like it would have been an equally easy thing for devenv to provide along with the build command. Thank you, Reid ...Show All
Visual Studio Possible Hosting Process problem
I am having a problem that I believe has something to do with the hosting process. I have a Form with a DataGridView and DataGridViewComboBoxColumn. When I click on any of the cells to access a ComboBox I see a System.Threading.ThreadStateException that says: "Current thread must be set to single thread apartement (STA) mode before OLE calls can be made. Ensure that your Main function has STAThreadAttribute marked on it. at System.Windows.Forms.ComboBox.set_AutoCompleteSource(AutoCompleteSource value) ..." I have also just upgraded and converted my large application from VS 03 to 05; this is also done in VB. When I disable the VS hosting process I do not see the exception. My two coworkers who are working on the same files ( ...Show All
Windows Forms ClickOnce file extension registration
In the ClickOnce FAQ at http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=17&CategoryID=24&tabindex=2 it says: "Some low impact tasks such as file type registration can be achieved with first time app-startup logic in your application" How can I register a file name extension which will invoke my ClickOnce deployed application If one can find the .exe on disk and register this one then ApplicationDeployment.IsNetworkDeployed is false. So this seems like a dead end. Any help would be appreciated. /Lars If you decide to use an msi to register the needed file type before installing the ClickOnce application, I would suggest using the Generic Bootstrapper. You can wrap your ...Show All
Visual Studio tutorial
Where can i find DSL Tool tutorial, presentations, lectures and other additional information Best places: Help pages . In the Windows Start Menu / All Programs / Visual Studio SDK 2005 / 200x.xx / xxx Help. In the Help browser, look under Visual Studio SDK/ Domain-Specific Language Tools. These pages will contain even more information with upcoming releases, through to our V1 release in September. Samples . In your VS SDK installation, in a folder like C:\Program Files\Visual Studio 2005 SDK\2006.06\VisualStudioIntegration\Samples\DSLTools. Again, there will be even more here in the V1 release. This Forum . In particular, the Frequently Asked Questions page and the search facility . Forthc ...Show All
.NET Development Target the Framework version and Redirect Assembly Bindings from 2.0 to 1.1
Dear all, I have encountered a problem of "DragDrop registration failed" problem in my .NET 1.1 dll because of the assembly binding is always going to .NET 2.0. (I realized the related attribute [STAThread], however, there's no Main() in my C# libraries) Therefore I tried to specifiy the runtime version and redirect those bindings in MyModule.dll.config. The binded assemblies, however, are still in .NET 2.0, according to both VS.NET 2003's output log and VS.NET 2005's fuslogvw. Meanwhile, they also logged compiling and linking processes. At that stage, linked assemblies are in version 1.1 correctly. My question is, does it means that configurations of runtime version and assembly binding redirection do not work backwa ...Show All
Windows Forms MERGING CELLS IN DATAGRIDVIEW
Hi all, Is it possible to merge cells(rows) in DatagridView And How Thanx Hi thanks for ur reply.. What i want is that i have 2 row headers in my control. say Rowheader0 and rowHeader1. i want to split the Rowheader0 in to two headers like x1 and x2.. Is it possible to do that Please share ur ideas.. Thanks in advance ...Show All
SQL Server Images in Reporting Services from database
I have a data table which contains a bmp image saved as a byte array. I am trying to have this image presented in a report, however, I get a red X after I follow the wizard. I also tried it with the SQL Northwind database and I have the same issue. I am running SQL Reporting services 2005. Any suggestions on what could be going wrong Joe I have tried with both image/bmp and image/png on northwind DB as recommended. I still get red cross. Any ideal what's wrong ...Show All
.NET Development How to find the last occurence of <p> within a textblock tiltled <h2>??
I have html files with the following structure: <h2>article title</h2> <p>paragraph 1 - bladiblah di blahblah</p> <p>paragraph 2 - bladiblah di blahblah</p> <p>paragraph 3 - bladiblah di blahblah</p> <p>paragraph 4 - bladiblah di blahblah</p> <p>paragraph 5 - bladiblah di blahblah</p> <h2>article title</h2> <p>paragraph 1 - bladiblah di blahblah</p> <p>paragraph 2 - bladiblah di blahblah</p> <h2>article title</h2> <p>paragraph 1 - bladiblah di blahblah</p> <p>paragraph 2 - bladiblah di blahblah</p> <p>paragraph 3 - bladiblah di blahblah& ...Show All
.NET Development Dataset records
I am using VisualStudion Visual Basic 2005 how do I or can I assign an individual record or row in a dataset to a variable to be used elsewhere in the program. There doesn't seem to be an index I can use. The below to access a specific DataRow object myDataset.Tables(0).Rows(0 - n) If one needs a specific field's object myDataset.Tables(0).Rows(0 - n) ("TargetField") ...Show All
Smart Device Development 3 Simple Questions about Custom Controls!
Hello, I'm working on Custom Controls so I want to know 2 things which I'm facing as problems right now! How to set Default Size of custom control, Like I make it 20,20 pixels and when I drag it to Form it should be 20,20 not any other value. I done it in Constructor but it doesnot work. Anything else How to draw a sting in the Middle of the Control using Graphics.DrawStringMethod, Make sure to use Font Size, Font Style, Control, Height, Control Width, String Measurement itself. So in the End I see output this is of a normal Windows Control say a Button, You resize it and its text is moved to middle automatically to adjust new size. When I resize my control, Its not automatically redrawn and I see it in a relly Bad form. I ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem With My Tile Engine...Specifically Looped Drawing [LOTS OF CODE!]
OK, I have been having a lot of problems with this, and I have tried every possible solution and it does not seem to want to work. I am programming a Tile Engine that will run my RPG, and so far it has been going great. I have error logging, a TileManager for loading tiles into lists so that they are recallable at any time, and I have various other features that are currently being worked on. What is bothering me the most is that my TileManager class will actually load the content into the content manager (code below) and everything will work fine, the only problem is, when I go to draw the tile (which is withdrawn from the list in a looped format, code below), it for some reason just DOES NOT want to draw the tile, and it gives me n ...Show All
Visual C++ COM/ATL object with implementation in a .cpp, LNK2001 !!
Hello all, I'm writing a COM object using ATL, I have been writing both definition and implementation in a single .h file and everythink went fine, but now i want to place implementation in a .cpp file and the linker complains with a LNK2001. //.h file with class definition template < typename T, typename Itf> class IMBaseImpl : public CMBaseImpl, public Itf { public : IMBaseImpl(); ~IMBaseImpl(); STDMETHOD(Init)(IMApplication** pApp, BSTR strName); STDMETHOD(get_Name)(BSTR* pVal); STDMETHOD(put_Name)(BSTR newVal); IMApplication* getApp(); }; //.cpp file with class implementation #include "stdafx.h" #include "IMBaseImpl.h" templat ...Show All
Architecture unable to connect remote Desktop
Hi all I want to connect a remote desktop outside of our LAN. I am using Remote Desktop Connection tool to connect it .But it is giving the error The remote session was disconnected because there are no Terminal Server client access licenses available for this computer But I am able to connect remote desktop in side our LAN.Please tell me how to solve it Regards Bijaya Try connecting to the console like: Start-Run mstsc /v:YourServerName /console This will connect you to the console session on the remote server. This does not require a term serv license. ...Show All
Smart Device Development secure device
how can i setup my pocket pc to accept only programs with the certificate that i have created I don't have an example for you as it's up to OEM to implement. I've seen one custom CE 4.2 device with such security, but I don't know the details (and it’s out if scope for this forum anyway). Code signing won't work. It won't prevent your application from been installed on to other devices and it won't prevent other applications from been installed on your device because you're not the only one with access to device certificate. You need access to ROM, then you can remove all certificates and put in your own, that would prevent installing other applications on to your device. ...Show All
