JayatMed's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Need help
Where can i find some good tutorials and manual for XNA Game Studio It can be in .pfd. I also have a blog with a good number of tutorials covering 2D sprites and I am currently adding tutorials on 3D (4 tutorials on 3D so far). The link is http://www.xna101.net Bill ...Show All
Visual Basic Issues with WebBrowser Control browsing files
Hello I'm making a application i VB express 2005 using the built in WebBrowser control. It works great for browsing the internet, and it works great for browsing your local hard-drive (c:\) or memory stick. The problem however is when I'm entering the local office server. (X:\ in this case). Every time i want to open a file using the WebBrowser control im given a security warning telling me "It can be damaging to run a systemcommand on this element. Do you want to continue " Picture: http://www.pinjaweb.net/cncs/webcontrol01.jpg Now this is extremely anoying and unwanted. As this program will be used to open tens to hundreds of files each day. My drag and drop file ability within the webBrowser window also disappears when im surfing on the ...Show All
SQL Server Printing History
I need insert a record into a table each time a report is printed including information about parameter values on the report. Is it possible to add custom code to call an insert statement then the print command to achieve this There is no print command so I am not sure where you are suggesting adding the code. You could use the Execution Log and get all instances of rendering to EMF format. While this doesn't gurantee that it was a print job, it does give you the other information you need. ...Show All
Visual Studio Express Editions Display Report Viewer Report in Print Layout Mode
Hello, I have several reports that are generated from the report viewer control in Windows form application. The reports work good and ultimately display the data as I want to see it. I want to assist the user in printing the reports quicker. To do so, I would like to eliminate the step where the user would have to click the "Print Layout" button in the report viewer toolbar. As I understand it, this button has a toggle value somewhere. I just don't know how to access it. I would imagine that once I know the appropriate name/location of that particular button, I can set the toggle to True or On or whatever after the refresh method and before calling the show method for the report. Any ideas on how t ...Show All
SQL Server Impersonate and Sqlexpress
I don't want to use "network service" account for app poll identity for asp.net applications because of security reason. But I try to use sqlexpress I receive following error message. "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed." But when I try to connect master db with same account (test) there is no problem. Then I create to user profile for "test" account but same error occurred. Does anyone know how I can resolve this Thanks! You are using a User Instance, which requires that the user actually have a set of Profile direct ...Show All
SQL Server Reading Data at specific interval
Hello there I'm having data store in database at interval of 2sec. hence if i read data for 1 week(7days) it returns me huge amount of data so what i want to do is to read data at some varying intervals e.g 30 sec or 50 sec for perticular datetime range Please tell me suitable query to have such selected data base Thanks in advance AVD Implement a paging solution which includes Server paging only pulling those values that are actually need by the client. More information can be found on various sites: http://www.google.com/search q=sql+server+paging+&meta = HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Express Editions update the column with primary key in MS access
hi, I have a question related to update the column which has primary key in MS access. since the value in that column cannot be the same, is there any way to update it efficiently if I want to add a new data into it I have one idea. first, I try to count how many entries there are in the table. then, just set the new value to that result plus one. but it seems unefficient. Funny, you should ask, this, because I spent the weekend in PK Management hell!!! It's very doable, it's just clumsy. I finally had to copy the table, delete the orginal, and handload each table item. DMAN, in this app, Autoincrememnting was not an option. I needed consecutive numbers and sometimes rows are deleted. Pub ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Shader states, etc? (HLSL effects not working right)
I'd like to call upon all the shader gurus here for some help :) I've been experimenting with writing some of my own effects, meaning I'm a HLSL newbie, and have been using NVIDIA's FX Composer to do my work. After producing a cool (albeit simple) effect, I decided to try using it in my little model viewer. The problem is that the way it shows up through XNA is different than the way it shows up in FX Composer, and I can't figure out why. You can find the code to my effect here: http://www.hiranipra.com/data/help_attach/gb1_shader.txt - it's just fairly simple environment mapping-ish stuff. A screenshot of what it looks like in FX Composer: http://www.hiranipra.com/data/help_attach/FxComposer1.jpg - it's hard to tell, but the ...Show All
Visual C# FreeAllUnusedJunk() ? any such method?
I've got a program that runs through a loop, and during this loop, consumes a lot of RAM. of course, .NET is smart, and auto-disposes.. so the RAM usage goes something like.. 40MB, 80MB, 115MB, 230MB, 307MB, then it drops back down to something small again. The thing is, when this loop is over with.. the process could be eating up 40MB RAM, or 300MB. Is there some kind of global method I can call that basically frees up ANYthing that's not in use Definitely will be different behavior. GC works really tight with free memory. It will start more often when free memory is really low. I suggest to test your code with FxCop, maybe will help you find some better cleanup solution. ...Show All
Visual Studio 2008 (Pre-release) Linq-XML-SQLSERVER
Greetings, i want to be able to use linq new technology with sql server. the senario i am not able to do so far is as follow: 1- i program with linq 2- be able to generate and manipulate xml files 3- all this xml files are stored in Sqlserver Can any expert give guidance to a way that will enable me to enjoy this simple model i have noidea how simple or complex this might be! best practices are much appriceted thanx Well, if I can understand your questions, the answers goes thus: 1) You can use the linq technology by DEFAULT with sql server. It works seamlessly with Sql Server. 2) To be able to generate and manipulate xml files, you use the XLinq technology i.e. Linq for manipulating Xml documents. 3) Since u said ur xml files ...Show All
Smart Device Development How to enable QWERTY keyboard on Smartphones?
Hi Is it possible to programmatically, using CF v2, to enable the QWERTY keyboard on newer smartphones like the Dash and BlackJack I have a user control that accepts text input but whenever the user presses, say T on the Blackjack, it will cycle between A, B, and C instead of showing T. The rest of the keyboard works fine but the area where the keyboard acts as the phone’s keypad, it will act like a keypad, which I don’t want. Help Gavin This should be possible by p/invokeing to the native IME control api's. Unfortunately, this is an advanced topic where I am unaware of any existing samples of how to do this. David Wrighton .NET Compact Framework ...Show All
Visual C++ sizeof(main)
hi, i searched a lot to find the answer for this question before posting.... i am not getting proper answers. . my questoin is wat is sizeof(main) alot of ppl say dat sizeof doesn't take function name ... .. but a fucntion name is a pointer like .. cout<<func; wiil print the address this means that its a fucntion pointer like object..... so the sizeof a function name shud equal to sizeof a pointer variable..... . . my question is why it does.nt take a fucntion name.... plz reply soon manish............. imanish11111 wrote: thanx sarath , i kno this answer .. i am asking WHY we cant use function name ..... For one, it's one of those things that's just outside the scope of the langua ...Show All
.NET Development instantiating remote object in new thread
Hello, i was wondering if it's possible to instantiate remote objects on the server side, in a new thread. i have a client which has access to interface of a remote object class, instantiates the class on the server side. but i need the server to instantiate the object in a seperate thread. i guess i need some advice on multithreading of remote objects as well. any help/suggestion would be greatly appreciated. .Net Remoting always dispatches calls in thread pool threads. You will need handle this in your application by creating a new thread and marshalling all calls to the relevant thread. I would suggest that you marshal calls asynchronously, which is to say without waiting immediately for a result. Be aw ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need assistant in volume texture
I'm still new in directx programming and quite dont understand with the volume texture. I've been learning directx programming with the example given by microsoft itself. it does quite a lot of things but lack of documentation. Straight to the point, i dont understand this chunk of code: { D3DLOCKED_BOX LockedBox; hr = m_pVolumeTexture->LockBox( 0, &LockedBox, 0, 0 ); if( FAILED(hr) ) return hr; for( UINT w=0; w<16; w++ ) { BYTE* pSliceStart = (BYTE*)LockedBox.pBits; for( UINT v=0; v<16; v++ ) { for( UINT u=0; u<16; u++ ) { FLOAT du = (u-7.5f)/7.5f; FLOAT dv = (v-7.5f)/7.5f; FLOAT dw = (w-7.5f)/7.5f; FLOAT fScale ...Show All
Visual Basic searching for & highlighting text
hi, i am trying to make my application search for text (in a combobox called "comboboxfind") in a listbox ("showbox") when i click on a button (called "findnow") can someone help me Public Class Form1 Dim search As String = "" Private Sub ComboBox1_SelectionChangeCommitted( ByVal sender _ As Object , ByVal e As System.EventArgs) _ Handles ComboBox1.SelectionChangeCommitted search = CStr (ComboBox1.SelectedItem).ToUpper End Sub Private Sub Button1_Click( ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles Button1.Click Dim loc As New List( Of Integer ) ...Show All
