Krishna Sarma's Q&A profile
Smart Device Development Cannot explain diff in values returned from CTime::GetCurrentTime and ::GetLocalTime
In using the three methods CTime::GetCurrentTime ::GetLocalTime ::GetSystemTime Using VS2005 Beta 2, I get three different values, respectively, when the local time is 11:58, 2005-11-25: 2005-11-24T15:58:12 2005-11-25T11:58:12 2005-11-24T22:58:12 . Time Zone Information via ::GetTimeZoneInformation shows Bias: -720 Standard bias: 0 Daylight bias: -60 So from all of the above, I can explain the diff in the results between ::GetLocalTime (local time zone == UTC + all bias) and ::GetSystemTime (UTC). But why the diff between ::GetLocalTime and CTime::GetCurrentTime I would have expected these to be the same. VS2005 Beta 2 Windows Mobile 2003 / 5.0 emulators Windows Mobile 2003 / 5.0 devices ----2& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to load textures embedded in a model file using a custom importer
I have a Q3 BSP loader and want to build the lightmap data during the import stage, however while i can build the data into a Texture2DContent, There seems to be no way to do anything with it - the BasicMaterialContent class has a Textures collection, but seems to require an external reference to a filename. Any ideas N I did this for my rewrite of quake in XNA. I wrote a bitmap writer that save to a memorystream (or a file). So I can just use this to load them as file: Texture2D.FromFile(graphics.GraphicsDevice, ms, size); Pretty simple and fast. In my case I have to load lightmaps and Textures from the bsp based on the provided palette. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Again - C++ DirectX Error
Hi, i moved back to the C++ due to .Net memory management( slow down my app), anyway.... i recompiled the DirectX's C++ examples (October 2006 SDK) and when i run the examples a error ocurs, in the tutorials(No DXUtils) the error location is more evident: *this error code is from the Vertices tutorial. The Error: Unhandled exception at 0x6604a92f in Vertices.exe: 0xC0000005: Access violation reading location 0x00f2b000. The Location: LRESULT WINAPI MsgProc( HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam ) { switch( msg ) { case WM_DESTROY: Cleanup(); PostQuitMessage( 0 ); return 0; } return DefWindowProc( hWnd, msg, wParam, lParam ); The error appears at the end of this function . (green arrow in debugger....) -> ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Redistributing XNA executables
I have a question is the result of the Release build folder (bin\Release) sufficient if I want to distribute an XNA appplication to another computer. The folder contains an XNAFramework.dll, but the other computer doesn't have XNA Framework installed. Is there an XNA redist executable What other dll's should I include. I tried as it is, (with only the xnaFramework.dll) but it doesn't seem to work please help I've had a little luck with including the dlls in: < .\Program Files\Microsoft XNA\XNA Game Studio Express\v1.0\References\Windows\x86\ >, namely, Microsoft.Xna.Framework.Design.dll and Microsoft.Xna.Framework.Game.dll and their corresponding .xml files ( Microsoft.Xna.Framework.dll ...Show All
Visual Studio 2008 (Pre-release) How to make custom BitmapEffect.
I want to challenge making MyBitmapEffect. However, information (or samples) for that was not able to be found. See the following sample in the Windows SDK: http://windowssdk.msdn.microsoft.com/en-us/ms771475(VS.80).aspx Also see the additional instructions needed to get the sample to compile: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=431448&SiteID=1&PageID=1 Note: You'll need to install the SDK to get the sample. The samples are unfortunately not online at this time. ...Show All
SQL Server User Rights
I'm running into an issue with a user with restricted rights being able to access a local SDF file. The user has Modify right to the folder (and the file), but cannot access the SDF if it was created by someone else. The only two workarounds I've found are: 1) If the I delete the SDF and then the restricted user creates the SDF they can then access it. 2) If I grant Full Control to the folder then the restricted user can access the database. Is this by design Are there programatic changes that can be made to enable access All users who login to the box (Windows XP) need to be able to access the same SDF. The SDF is stored on the local machine. Thanks,rlw... The app (and database) is only ...Show All
Software Development for Windows Vista Depth Buffering using VMR9
I've modified the VMR9Allocator sample that ships with the Windows SDK so that I can play to video files on two textures on two different rectangular surfaces. I want to use depth buffering in the scene with the two rectangles playing video. However, when I turn on depth buffering, the video images are corrupted. It looks like adding the Depth Buffer causes DirectShow to stop functioning properly. If you look at the VMR9Allocator sample, I changed the PresentParameters to use auto depth stencil so the two rectangles with be able to display one on top of the other according to depth. What am I doing wrong Does the VMR9Allocator need some additional setting to deal with depth buffers (might be a ...Show All
SQL Server How Do you compress filegroups?
I would like to save some disk space by compressing filegroups with historical data. But how do I go about doing that I did the following 1) I set the filegroup as read-only 2) Detached the database 3) started compressing each file in the filegroup using the compact command from the command prompt 4) Attached the database But, I ran into out to of system resources when compacting a large file (50 GB) on a box with 12 GB RAM and 2 Dual Core Procs ( SQL2K5 Ent Edition on Win2K3 Ent Edition). Is there a better/more efficient way to compress a filegroup Thanks Saptagiri Tangudu PNT Marketing Services you can use compressed NTFS drive to store the read-only file group (s). Please ...Show All
Visual Basic Import text and loop using array
Ok, what I want to do is to open a text (txt) file and store its words into an array. An array per word and then looping through the array and flashing the text(words). What I done so far is to open the txt file as a string, and then used this within a function: Dim words() As String words = textfile.Split Dim tempStr As String Dim i As Integer i = 0 For Each tempStr In words Label1.Text = tempStr Next tempStr Label1.Text = "END OF TEXT" Return 0 "words" is supposed to be the array that will contain the words "textfile" the string that contains the whole text of the textfile "Label1" is a label that shows a word per time in the loop The problem: when I run this code, the only thing I see i ...Show All
Visual Studio 2008 (Pre-release) How-to skin application?
Hello, I am looking into the subject and have to say, that I feel a bit disoriented... :( My goal is to build the main application and allow our partners to develop skins that can be distributed/sold to product users. Obviously, we would like to make it hack-proof, so that "outsiders" cannot modify skins/develop new skins. Solution that comes to mind would be to have signed assemblies that would contain ResourceDictionaries (with optional related code), so that application could load those assemblies at run-time, validate them, and apply templates. I would guess that it is something easy to do, but I have unfortunate feeling that I am becoming almost sure that this scenario is not supported by WPF (I refuse t ...Show All
Windows Forms ClickOnce WinForm application - How can I apply a number of T-SQL scripts to my Sql Server database?
Could anybody please help me with my dilemma I’ve developed a winforms application in VB.NET which uses a local Sql Server Express database to store my application data. My application connects to the database using the new user instance option available in SQL Server Express. I have successfully managed to deploy the application using ClickOnce so that the application installs and runs on a clients PC. I have just finished version 2 of my application so when I publish the new version to my web site using ClickOnce, the clients will notice the new version and automatically download and install it. Excellent! My problem is I need version 2 of my application to apply several T-SQL scripts to the local SQL Server Express databas ...Show All
SQL Server Where Find SQL Server Agent
Dear All, I have installed SQL Server 2005 Express Edition, Iam not able to find SQL Agent, So anybody help me............................ Regards, Vinayak hello, Can you just tell me from where i can learn to "execute scheduled jobs was to write a file with your SQL Script to execute and schedule this with a scheduling service like AT / WINAT". Regards, Vinayak ...Show All
SQL Server Doing a lookup on a reference table from script?
Hi, I have a common requirement (when I'm processing data rows from an input file) to perform some data manipulation in script then look up a value from a reference table and perform some further data manipulation depending on whether a matching value was found in the lookup table or not. For example, say I'm processing Customer data rows and the first "word" (/token) of the FullName column might be a title or the title could be missing and it might be a forename or initial instead. I want to check the first word of this FullName column to see if it matches any valid title values in a ReferenceTitles lookup table. If I find a match I want to set my Title column to the value from the ReferenceTitles lookup table, otherwise I want ...Show All
Visual Studio Team System WebTest functionality
I am creating a webTest to simulate the creation of a Project. After recording, it saves all of the parameters that I key into the fields on the webpage but when I edit the values in the form post parameters (for a request) and run the WebTest again, the values I updated do not submit to the website and ultimately to the database to store the new project. Here are the steps i take.. Start Recording go to website login create new project under Information tab i fill in all the necessary parameter requirements logout And if i go to the main project view, the project i created while doing the recording is present in the websites project view. So now the I have the webtest created, i can look at the request (that pe ...Show All
Windows Forms [vc++ express]launching a second form
hi i have a problem to launch a second form from the principale form,i use a button in the principale form to launch the second form ,but when i go to the code of the button and try to make form2->activate; that don't work even the dot(.) don't work too. can u help me please thank you for you help ,but it still one error. in the line : Form^ openfrm2 = gcnew form2(); i have this message error :" error C2061: syntax error : identifier 'form2' " and i already add form2.h in the header of form1.h. ...Show All
