AirborneMarik's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. CreateTexture2D from TGA
i've got my tga loaderfrom my old opengl engine, and now i'm stufing around with a dx10 engine and want to get textures loaded. so i've got this: where tga.GetPixels() returns a pointer to the image data. tga.GetBPP() = 4, tga.GetWidth() = 512, tga.GetHeight() = 512 CD3D10_TEXTURE2D_DESC desc(DXGI_FORMAT_R8G8B8A8_UINT, tga.GetWidth(), tga.GetHeight()); desc.MipLevels = 1; D3D10_SUBRESOURCE_DATA data[ 1 ]; memset(&data, 0 , sizeof (D3D10_SUBRESOURCE_DATA)); data[ 0 ].pSysMem = tga.GetPixels(); data[ 0 ].SysMemPitch = tga.GetBPP() * tga.GetWidth(); int bpp = tga.GetBPP(); HRESULT hr; hr = static_cast < const DX ...Show All
SQL Server SQL Express Connection Issues
Hi folks. I'm having some issues getting started using C# and SQL Server Express. I'm trying to create a C# project to just connect to a SQLSE DB just so I can start learning how to use it. I've used the SQLSE Surface Area Config Utility to enable remote and local connections, and it gives me error 26 about the default config not allowing remote connections. I then altered the connection string from .\SQLEXPRESS to .\MSSQLEXPRESS which is the instance of the service running on my PC. When I do this, it throws error 25: invalid connection string. I also have ensured that the 'User Instance' field is set to True (but I have tr ...Show All
Visual FoxPro Help
I have developed a FOX PRO 2.6 Version application which has developed the following error message when updating the cashbook receipting module.The message is " TOO MANY FILES OPEN".The application is on WINDOWS XP PROFESSIONAL it is running well on WIN 98 with the modification of config.sys " FILES = 100".I have done the same to XP but in config.nt and it still gives the error message what could be the problem . The total cashbook module prgs and database files are 69 in total. Which config.nt did you modify You must do it in C:\WINDOWS\system32 folder. ...Show All
Visual Studio Team System Beta3 TFS Fails to create news MSF For Agile projects
Hi. In a single server deployment, I can do projects with MSF for CMMI Process Improvement, but don't do it this for MSF for Agile. If not exists security problems, what happend. Thanks If project creation fails, there should be an entry in the log. What does it say ...Show All
Windows Forms Setting DataGridView.DataSource = null erases the columns I set up in design mode
Based on the user's selection in a combo box, I want to update the contents of a DataGridView from a stored procedure. So I set its DataSource = the DataTable that has the data. The user can also have nothing selected in the combo box (SelectedIndex == -1). In this case the DataGridView should be empty. So here I set the DataSource = null. The problem is that after I set the DataSource = null, I lose the columns that I had set up in design mode and can't get them back. What is the "correct" way to do this so I don't lose the columns Presuming that you are always binding to the same D ...Show All
Visual C# Can I build my project to an unmeneged program
Hi, I wrote a program in VS2005 beta 2 and I was wondering if there is a way to build and compile the program to the native computer and not to .NET. If not, is there a way to take the project from VS2005 and transform it to VS2003 project in some way. The Visual C# compiler only produces .NET assemblies. This is true whether you use Visual C# 2003 or Visual C# 2005. If you wish to create native executable images that do not target the CLR then you need to use Visual C++. You can use Visual C++ 2005 or any earlier version you may have. Cheers, Kenny Kerr Microsoft MVP http://weblogs.asp.net/ken ...Show All
Windows Live Developer Forums Clarification
So if i'm right, Microsoft is releasing MSN Messenger Activity API's for the protocol Good, in a way, but will Microsoft change they're licence to allow us to create applications (such as MSN Messenger Robots and 3rd Party MSN Messenger Clients) that will connect to the .NET Messenger Network , because if not, then this is really just for refrence.... Yes, although the protocol itself you don't have to worry about, which is part of the coolness of this. Yes, the idea is to allow more third-party apps. ...Show All
Visual Studio 2008 (Pre-release) TreeView + HierarchicalDataTemplate
I'd like to bind an Object form the following class to a TreeView class MyObject { private string name; private List<MyObject> childs; public string Name { get { return this.name; } } public List<MyObject> Childs { get { return this.childs; } } } My Treeview looks like: <UserControl> <UserControl.Resources> <HierarchicalDataTemplate DataType="{x:Type local:MyObject} ItemsSource="{Binding Path=Childs}"> <TreeViewItem> <TreeViewItem.Header> <StackPanel Orientation="Horizontal"> ...Show All
SQL Server T-SQL UNION QUESTION
why if I use the alias named "derivedtbl_1" he fields show me Undefined data type else without the extern select the fields are showed exactly in pane grid SELECT IDMessaggio, Descrizione, IDLingua, ID FROM (SELECT IDMessaggio, Descrizione, IDLingua, ID FROM ESMessaggi AS t1 WHERE (IDLingua = 1040) AND (NOT EXISTS (SELECT IDMessaggio, Descrizione AS DE1, IDLingua, ID FROM ESMessaggi AS t2 WHERE (IDLingua = @plingua) AND (IDMessaggio = t1.IDMessaggio))) UNION ALL SELECT IDMessaggio, Descr ...Show All
Visual Studio Express Editions Prefill Columns in DataGridView
Hi I have a brief question about filling in some column inside the DataGridView automatically. Specifically something like ID column should be filled by the computer while other fields are filled by the user. My intent is whenever a user decides to add a row inside the database, he can fill out all the relavent information while the computer should fill in the rest of the information required by the database (Id...). Is there a way to accomplish this using VB Express Thanks. hi, i don't know your database sqlserver or access anyway in sqlserver if you set the id field int and make it unique and pr ...Show All
.NET Development Number of rows to be updated...
Hello, I'm using Visual Studio 2005 (beta 2). I have a DataGridView setup with a DataAdapter. Is there anyway to determine the number of rows about to be updated when the dataadapter's update method is called I am trying to setup a progressbar for when data is committed and I can increment the progressbar with the dataadapter's RowUpdated event, but for the progressbar to be accurate I would need the total number of rows about to be updated. Thank you, -Adam The underlying data object is a DataTable, right You can iterate over the rows and check if the RowState is Unchanged: private ...Show All
Windows Search Technologies IFilter Preview
What interface and registry settings do I use to supply the picture for the Preview box in the Windows Desktop Search window I tried adding an IViewObject2 to my IFilter DLL but it never gets called. We do not have an official way of doing previews at this time...as our preview architecture will be changing in the future. There is an rather in-depth unofficial description of previewers and other things here http://spaces.msn.com/members/WDSTech/ -Tom ...Show All
Windows Forms Forms and Threads - Multiple Access to Controls
Hi, I have a simple form with a richtextbox on it. The code behind this form can fire up to 500 threads (code placed in a different class) in a second, and every thread should access the same Richtextbox on the form and calls its "AppendText()" Method. The Code for the Threads are also in a different Class (I'm working with VB.NET). I& ...Show All
Visual Studio 2008 (Pre-release) Calling base properties from a [Column] property accessor in a derived class in DLinq
Why does the following not work ... public abstract class DomainObject<TId> { TId id; protected TId IdBase { get { return this.id; } set { this.id = value; } } } [Table] public class Topic : DomainObject<int> { [Column(Id = true, AutoGen = true)] public int Id { get { return base.IdBase; } set { base.IdBase = value; } } } ... it fails with a TargetInvokationException: at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType) at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle decl ...Show All
.NET Development Disabling Expect: 100-Continue
How do you disable the HTTP header Expect: 100-Continue from a web reference In App.Config, add <configuration> <system.net> <settings> <servicePointManager expect100Continue="false" /> </settings> </system.net> </configuration> ...Show All
