cssjm's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Where in content pipeline does volume textures fail?
Currently volume textures aren't supported in the Content Pipeline. So if I have a mesh that references a volume texture it will fail compiling. So, is it just a matter of writing a custom importer for volume dds files or is it all the way through the pipeline Will ContentManager.Load<Texture3d>(...) work if I just write the importer Say it is so...it is Christmas after all :-) BlueG wrote: However, you could always pull a fast one on it and derive from Texture2DContent instead of TextureContent. The Texture2DContent class has a parameterless constructor. Then you would still be able to add new elements to the MipChainCollection created. That would be a nice work around but un ...Show All
SQL Server @@IDENTITY in code
Hi all, I encountered a problem with SQL server mobile. I am inserting a row inside a database table through C# code and need to obtain the ID of the last inserted row if successful. I have the following in my code: SqlCeHelper.ExecuteNonQuery(connectionString, "*INSERT STATEMENT*"); Int64 id = (Int64)SqlCeHelper.ExecuteScalar(connectionString, "SELECT @@IDENTITY"); The variable id always ends up NULL. Is this the correct approach to this Is there anything else I can use to obtain the id of the last inserted row in SQL server mobile -- The class SqlCeHelper is a wrapper that I wrote, it works 100%. Thanks Hi, No...unfortunately SQL mobile doesn't support the function. I though of the two ...Show All
SQL Server Lift chart
Is there a Lift chart viewer like the model viewers that can be embedded within your windows apps If not, then can this be easily created via Adomd.net api calls Has anyone done this easily in custom DM applications Thanks in advance, anil There is not a control that you can embed into your own applications, however you should be able to replicate it's behavior. You can inspect the calls made to ther server by using the SQL Profiler to trace all interactions. Another thing to try is to use the Data Mining Addins, which have a lift chart, to see exactly what calls they make to create the lift chart (this is a bit easier since you can inspect the output directly in Excel). ...Show All
SQL Server Creating Test Data for a Table
Hello, say I have a Table with 2 columns: integer ID varchar Description How can I insert a large number of test rows inside this table for experimentation purposes Thanx in advance! The following query may help you.. Create Table TestTable ( Id int, Description varchar(100) ) go SET NOCOUNT ON Declare @Count as int Select @Count = 10000 While @Count >0 Begin Insert Into TestTable values (@Count, 'Description ' + Convert(Varchar,@Count)); Select @Count = @Count - 1 End You can change your Count init value as you want upto 2,147,483,647 .. ...Show All
SQL Server datetime format
Hi. I have two parameters called StartDate and EndDate.These parameters are from datetime type. I want to view the records between these dates.I have some questions: 1)In the database, these parameters' values are like 15.11.1984 23:59:14. It has time value near the date value.But I don't want to view the time value.I only want the date part. 2)In the preview tab, I choose a date clicking the calendar image near the parameter textbox. For example I choose 02.05.2001 and when I click the view report button, it changes to 05.02.2001.So there is a format difference.I want it to show like dd.mm.yyyy 3)By default, if the user doesn't enter a date, I want to view all the records.Any idea about this Thanks! Try ...Show All
Visual Studio Express Editions Programming Sudoku
Well I just bought teh book Programming Sudoku, and I ran into a few problems. When I saw that you needed Visual Studio 2005 I was upset, but tehn I read on and found out it says C# shouldnt have a problem so im using Microsoft Visual C# Express Edition. Ive gotten pretty far in the book, and its in the Code section where i ran into a few problems! Heres what the bok says to do, Public Class Form1 '---dimension of each cell in the grid--- Const CellWidth As Integer = 32 Const cellHeight As Integer = 32 And thats where I hit the problems! See I wrote that and i get build errors! Heres my Code using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.D ...Show All
SharePoint Products and Technologies Large Serv_db
Hello, The sps_Serv_db for my portal site has grown in size to over 22GB. The Site_db is only 9GB. I looked at the tables in the serv_db and observed that src_gathererlog_1 is by far the largest at approx 22GB. There are also tons of errors in the gatherer log (under site settings). Does anyone have any ideas on how I can reduce the size of this database while I figure out how to resolve the issues indicated in the gatherer log Thanks ...Show All
SQL Server Creating Pull Subscription using T-SQL
Hello, i am trying to create a pull subscription to my publication using T-SQL. The pull subcription is created successfully but the problem is that data is not merged correctly. I mean when i run the agent ( despite of having data in subscription / publication ) the data is not merged and i get "No Data Needed To Be Merged" message. i run following sp in this sequence: At Subscrber: 1 - sp_addmergepullsubscription 2 - sp_addmergepullsubscription_agent At Publisher: 1 - sp_addmergesubscription Again at subscriber : Transaction for adding merge agent job. Regards, i am using MSDE 2000 With SP4. Microsoft SQL Server 2000 - 8.00.2039 (Intel X86) May 3 2005 23:18:38 Copyright (c) 1988-2003 Microsoft ...Show All
Visual Basic Getting data from selected record
I was wondering if someone could help me out. I have a datagridview in which the user can not edit anything. The only way the record will be able to be edited is by selected it and clicking the "EDIT" button(which opens an editform). I have everything working correctly except getting the data from the ID column of the selected record when "EDIT" is clicked. All I can edit is the first record:) Your help is greatly appreciated!! If it matters the user can not select individual cells. The whole record is selected. newbieneedshelp, According to your question, I recommend you to use the DataGridView.BeginEdit method that can put the current cell in edit mode. Please try the following code: ' Overrid ...Show All
Visual Basic Refresh the Winows OS from within Visual Basic
I've made some program in Visual Basic 2005 that works with changing files and folders. After I've finished it, the main problem is to refresh the Windows OS. I mean the same thing as when we press F5. Than everything refreshes and if we have made changes, they are immediately shown. Could someone help me with this matter A possible solution or maybe an idea how to do that Thanks, Excuse me, but something is wrong. We don't understand each other. Suppose that you see in front of you the Windows XP Desktop and you press F5 or from the menu with mouse right click you choose Refresh. That refreshes the screen. Or in Explorer the same happens. THAT is what I want to do. Not reboot the computer. And, refresh i ...Show All
Windows Forms Building an MSI file in Visual Studio.NET
I have developed a tool in C#/.NET and built the release .EXE of that tool. I woluld like to build an MSI install of the tool. How can I do that from within the Visual Studio.NET IDE Thanks You could use any third party tool that builds MSI files, depending on the requirements of your setup: http://installsite.org/pages/en/msi/authoring.htm including Visual Studio's Setup&Deployment project. http://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/ http://www.simple-talk.com/dotnet/visual-studio/visual-studio-setup---projects-and-custom-actions/ http://www.simple-talk.com/dotnet/visual-studio/updates-to-setup-projects/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. [D3D 8.1] DrawIndexedPrimitive problem
Hi everyone I'am new here. I'am developing a game engine using pascal (delphi 7) and some converted DX8.1 headers (which are downloaded here ) I recently discovered a bug concerning drawing indexed primitives. I was able to reproduce the bug and the source + EXE is available here . I know that most of you guys use VB or C++.. but the API calls in pascal are similar This app initializes D3D 8 and draws an indexed primitive (a triangle). I used the following call: g_pd3dDevice.DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0,3 ,0, 1); wich i think is correct. But when i test my app... nothing is rendered But when i increase the primitivecount like this: g_pd3dDevice.DrawIndexedPrimitive(D3DPT_TRIANGLELIST, 0,3 ,0, 2); The triangl ...Show All
SQL Server SSIS ScriptTask logging
Hi. I've tried several things to log some information inside of the ScriptTask. I've tried Console.WriteLine(), Debug.WriteLine(), and Dts.Log(). All compile and work, but my problem is I can't find the output to save my life. I have logging turned on in my SSIS package, but the data doesn't show up in that file. I've check SQL Server's log. Event Log in OS. All no luck. Please help. In addition to simply turning logging on at the package or container level, you need to turn on the ScriptTaskLogEntry event on in the Details page for each script task that uses Dts.Log(). Re-test and you will see the user generated log entries. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Text on 3D surface
Hi, I am showing a couple of boxes and need to write a readable text on the side of a box. By "readable" I mean it should not get blurry when you move the camera close to it. Can anyone give me an example of how to accomplish that or point me to an tutorial The Text3D tutorial does not really fit my needs as I do not want to render the font as a real 3D text, something like a "plate on the box" would be perfect. Maybe even a separate rectangle that contains the text so that I can hide it when the camera is too far away. The boxes itself are drawn as triangle lists. And one additional question before I search for my old school books ;) There is a BoxBoundProbe method that I use to check if a mouse click hit ...Show All
Windows Live Developer Forums Line does not show till click on map.
Hi, Just started using the Map Controls. Adding a line to a map, following the instructions in the "Virtual Earth Map Control SDK, version 3.0" help file, and compared my code to various examples. Code runs okay (no javascript errors), loads & shows the map, but the line does not show till I click on the map. The line will also disappear if you move the map with the navigation arrows at the top. Same problem in IE 6 and Firefox 1.5 Example is here http://www.stroud.gov.uk/mapviewer/live_maps.htm You can view source to see my code. Cheers Mike I have the same problem, although there may be workarounds, there is no way this is a “feature”, this is definitely a bug in my opinion. ...Show All
