Ido Ran's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. 3d tools using mfc+Directx
hi all, Basically am a entry level game programmer now i had started my path on tool development, presently i am developing a software like motion editor for that i need to write code for the basic setup so i want to know is there any article of tutorial for creating the basic setup using MFC + directx. ie multiple viewport (you know what a editor needs) please help... KissPsycho thanks senthil, but for the past week i have been trying to implement the multiple viewport using splitters with d3d its kinda difficult, i am particular about the VC++ is because later on after creating the basic setup, i have to integrate the some library which is written in VC++ only. if you can please help me to select ...Show All
Windows Live Developer Forums How to "reset" map on window resize?
I'm having an issue when the window is resized: my custom control position:relative keeps it's position even tho the map has moved. I found code in the wiki but its only for full screen mode. How can I get the map to reset and reset it's positioning for the dashboard and any custom controls I suppose I could just redraw the map from scratch.... Thoughts ...Show All
Visual Basic Find (complex) Text in the .txt file
Acctually i want to search some text in the text file for example there are many text in this file some text are givn below PWK*EB*EL***AC*28388,28389,28390~ AMT*F5*7.09~ REF*D9*9991901628387~ there are some text which is repeat many times in the files like "PWK*EB*EL***AC*28388,28389,28390~" and REF*D9*9991901628387~ there is some constant like "PWK*EB*EL***AC*" <--------- this is constant ---------> "~" this is the ending symbol and "REF*D9*" <--------- this is constant ---------> "~" this is the ending symbol this means that line stats with "PWK*EB*EL***AC*" and end with "~" now i want to get all these numbers which is in between ...Show All
Visual Studio Team System Cannot pass a GCHandle across AppDomains
While working on my Automaton framework for build automaton with Team Foundation Server I've come upon this rather cryptic exception. It seems to happen only once in a while, something I'm able to do successfull requests without this exception. What I have is an .ashx which returns some HTML content to my .aspx, and the .ashx is called using Xml Http javascript call (AJAX). The error occurs when I try to read the .WorkItems property on an instance of the Changeset class. Full exception stack: [ArgumentException: Cannot pass a GCHandle across AppDomains. Parameter name: handle] System.Runtime.InteropServices.GCHandle.InternalCheckDomain(IntPtr handle) +0 System.Runtime.InteropServices.GCHandle.FromIntPtr(IntPtr value) +92 CPr ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting a decent framerate in C# DX9
So I'm currently trying different ways of working with 3D.. as a test, I tried making the same small demo in XNA and MDX, and for some reason the Managed DirectX C# project runs at a much lower framerate (47ms per frame for MDX vs 25ms per frame for XNA, i.e. 21fps MDX vs 40fps XNA, even though my XNA project actually includes a full-screen bloom shader pass!) I'm even using the recommendations from here , although they didn't make an appreciable difference (I hadn't implemented the frame time counter yet, but it was still visibly slower than the XNA version of the project). For the record, the 'project' is simply a textured mesh with specular lighting which rotates according to the position of the mouse. Any suggestions for where my bottl ...Show All
Architecture Single framework for windows forms and web app?
A business requires same application with two interfaces: i. Web Application for customer orders ii. Windows Forms version for customer orders + additional functionality (for use by sales/corporate users to take phone orders + access to additional screens) Environment: Visual Studio 2005, SQL Server 2005 .NET Framework 2.0 Is there a framework that can been used for developing both Widnows forms and Web apps Thanks in advance! You can also consider WPF/E Here is an article explaining it : http://www.itwriting.com/wpfe.php ...Show All
Windows Forms How to improve performance of datagridview
Hi All, In my project i have made one monitor for showing current price and all market,its related to share bazar, for that i used datagridview and i m binding data with datagridview every second. but i faced problem with flikering in datagridview. so plz help me who to remove flikering. I used Datasource property for binding data i did not fully went though the code, but, are you binding to one or multiple tables. if it is only one table, the what you do it take out the part where you bind the dgv in the recursive code, then only update your table via adapter, the changes will reflect on the grid, you need not set the source again all the times. if it is multiple tables, then you sho ...Show All
Windows Forms OpenFileDialog and Static Variables
I ran across a weird problem. If I use the OpenFileDialog and call the "ShowDialog" method, it seems that my static variables are changed, usually set to Empty if the static variable is a string. has anyone had this problem before I know it sounds weird but I have verified and re-verified that this is happening. Thanks ...Show All
SQL Server Sequential UPDATEs to a single row from XMLDOC only UPDATEs the first XPATH queried element found...
It appears that we may have fallen foul to the msxml change under the covers between SQL 2000 and SQL 2005 here. The functionality that we would expect is that we can UPDATE one row in a TABLE multiple times based on the number of XML elements found in the XPATH Query. This worked in SQL 2000, but seems to only UPDATE the first element found in SQL 2005. In Easy Speak: 5 elements in xml doc 1 row in table is updated by the first xml element found The same row in table is now updated by the second xml element found The same row in table is now updated by the third xml element found .... and so on until all xpath queried elements are done... In SQL: CREATE TABLE #debug ( id int, col1 int, col2 int, col3 int, col4 int, col5 int) DECL ...Show All
Software Development for Windows Vista How Find all the parts in a directory of Open Packaging
Hi, I have a tree sturcture like /root/lists/l1.xml,/root/data/forms/f1.xml,/root/data/forms/f2.xml. I used open package to create a zip file with all this data. Now how do i get all the parts under /root/data/forms/ Is there any is way to do this. Package.GetParts returns all the parts in the package and i have to manually filter them. is there something like Package.GetParts(Uri) - > as this method is not there, if we can give the partial uri it would be good. anymeans to solve this problem. ...Show All
SQL Server Application Role And SSRS
Hi dear reader I made an application that uses a Sql Server 2005 Express DataBase. In the database I made a application role. When the user logs into my application I run this procedure: If Not sqlConnectionCR Is Nothing Then If Not sqlConnectionCR.State = ConnectionState.Open Then sqlConnectionCR.Open() SqlConnection.ClearAllPools() ConsultasSqlCommand = New SqlCommand ConsultasSqlCommand.CommandType = CommandType.Text ConsultasSqlCommand.CommandText = "sp_setapprole 'appRole', 'drowssap" ConsultasSqlCommand.Connection = sqlConnectionCR ConsultasSqlCommand.ExecuteNonQuery() End If Else.... I understand that this procedure connects to my sqlserver database ...Show All
Visual Studio 2008 (Pre-release) Image inside control library does not show
Hi, I have a simple control library that contains an Image. I added a .jpg file to the control library project ("myImage.jpg"). Then I set the source of my Image as "\myImage.jpg". Inside E xpression Blend, in the design panel of my user control, the image is shown correctly. However when I create another project (a .exe) and use my control library, the image is not shown anymore. Why Sorry if it's a stupid question, I'm new to WPF but I did not found any solution so far. Thanks Francesco How stupid I am... I simply needed to use a relative path: <image source="myImage.jpg"> instead of absolute. I don't know exactly why when I edit the control in Blend it also works with the absolute path. ...Show All
SQL Server Sql Server 2000 to SLQ Broker - newbie question
Hi! I have a legacy database in SQL 2000 which I want to submit transactions thru triggers to SQL Broker, until I eventually upgrade this db to 2005. Can you tell me if this is possible Thanks Hi You can setup tansactional replication and then use the trigger on replicated table ... Thanks Rohit ...Show All
Windows Forms opening a windows form from a .net windows service
I have created a windows service in .net and a form to control and monitor the service which I would like to open onStart event of the service. I have tried allowing the service access to the desktop and calling the form but have had issues with this. I think the best way to do this would be to run the form .exe. Does anyone know the code (C#) to do this I am finding it harder than expected to find an example on the Web. Or does anyone know of any better ways to accomplish this From my results I believe that is correct. Which is why rather than showing a form I wanted to run the form .exe from the service so it opened as a seperate process. My final goal is to have a form which sits in the icon t ...Show All
Visual Studio Permission for VB developer in Windows XP
What is the least permission for a VB developer to compile their software on Windows XP Professional Permission in which way User level or file access level If it's file access then you need write permission. If it's user level then I guess (but do not quote me) the guest account will do HOWEVER it must already have installed VS on that account so you can create your applications etc.... Try it out and see what happens ...Show All
