elgor's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. InvalidCallException with Clearflags.Zbuffer
I cannot seem to clear the zbuffer using the Clearflags.Zbuffer call (Clearflags.Target works fine, but when I use Zbuffer the exception is thrown) - whenever I try I just get an InvalidCall exception. I am using a laptop with Intel integrated graphics, but am using the Reference device type so there shouldn't be any unsupported methods no matter what, right Does anybody else have this problem and/or know how to deal with it Many thanks. ...Show All
Visual J# Setting a look and feel?
Hi there, I am wondering how I can set my own look and feels for my projects And are there any sites who lists these look and feels (freeware or commercial, doesnt realy matter). Thanks The custom look and feel functionality was added to Java beyond the levels supported by J# (1.1.4 base classes and 1.2 in utils) class libraries. Read more about the supported levels here - http://msdn2.microsoft.com/en-us/library/ms973842.aspx . That is the reason this functionality is not present in J#. Hope this helps Thanks ...Show All
SQL Server Where to put Calculated Fields
This doesn't necessarily belong in this forum, but I'm starting here in the hopes of getting some direction. Business users have asked me to "map" a spreadsheet to our Datawarehouse. The spreadsheet contains a lot of calculations. I created a first pass, but it was difficult to map the Analysis Services cube data to the spreadsheet data and in the process I had to hard code a lot of things that will make the spreadsheet less flexible for additional data. So my question is, where is the best place to put calculated fields. In my SQL Statements, in ths SSIS transformations, or in the Analysis Cube Any help, or pointers to more information, would be greatly appreciated. It depends on many things. You need to decide at what gr ...Show All
SQL Server Help! SQL Express, Standard or Enterprise? or Access?
I'm not a developer and would like your input to compare against what a sales rep is telling me. I'm managing a small web project that will have a database with a max of 20,000 records with less than 50 field each. It will be hit by anything from 200 to 500 people in a day (max) via Internet connection from all over with all sorts of speed. The users will select less than 50 filters to obtain the results of the info they are looking for among the 20000 records. Most users will only choose less than 10 filters per search. That's all that the database will do...seems to me enterprise is way too much, but since I'm not expert, need one of you to help with your input. Thanks very much! Hi, you already said, thats this is ...Show All
Visual Studio Can I make two DSL models interact ?
1. I want to create Relational model DSL and Object model DSL, and I want that Relational model produced code dependent from object model. Can I do it if possible - Please point to some related sources. ___________________ 2. I want to create visual relationshop between two models, can I do it To place DSL' on two Winforms panels and draw connecting graphics around them Or can I add visual artifacts to generated DSL deisgner this way as for team designers: picture: http://msdn.microsoft.com/library/en-us/dnbda/html/softwarefactwo_fig4thumb.gif from: http://msdn.microsoft.com/vstudio/teamsystem/workshop/sf/default.aspx pull=/library/en-us/dnbda/html/softwarefactwo.asp#softwarefactwo_topic6 _____ ...Show All
Smart Device Development Any parameters does quickapp.exe have?
Hey, I tried to get the quicklist in my program by quickapp.exe,and then select a certain option. When I execute quickapp.exe with the API of ShellExceuteEx, it only can got the quicklist. So is there any parameters exits to make it go further I mean I can select a certain option in quicklist If not, how can I do that Thanks! Alex Feinman wrote: You can try finding its window and then finding a listview control among its children and sending LVM_SETITEMSTATE message to select it That seems a good idea.I have tried to select that options by simulating keypressing with keybd_event(),though it seems work well,I think your is better! Thank you! ...Show All
SQL Server Unnatended uninstallation
Does anyone knows how to Uninstall SQL Server Express from command promt in unnatended way I've already achieve the unnatended Installation but i try the reverse steps to uninstall and they didn't work. Any information wolud be helpful hi Miguel, do you mean http://msdn2.microsoft.com/en-us/library/ms144259.aspx#uninstallscripts did not work regards ...Show All
.NET Development Reflection not working the way i expect it to
If I use the code below, the instance that i get a reference to seems to have the non-public members I need access to, but not after i use GetType... //get reference to instance of SomeType Sometype _fred = Somelib.SomeType //now setup reflection Type fred_type = _fred.GetType() Now if I stop at this point, and look in the locals window, _fred will have non-public properties that I need access to, but fred_type WILL NOT. What am i doing wrong I need to use Type.GetProperty to get at a non-public property, but the search fails using fred_type.GetProperty(prop_name, BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.Public) as well as simply using this fred_type.GetProperty(prop_name) This is why I started looking in the locals ...Show All
Windows Forms Problem in Sorting of default view of datatable
I am using VS 2005. I got problem in sorting default view of datatable and then assigning it to the grid.But the problem is, its not sorting properly when there is integer or decimal field present in the data table . other string fields of the data table sorts properly .Also i am using typed dataset. code is like DataView dataView1 = typeddataset.tablename.DefaultView; dataView1.Sort = grid1.SortColumn + " " + grid1.SortOrder; grid1.DataSource = dataView1; No Ashraf the problem is still unsolved if you compare my code and your they both are same . DataView tempView = dataTable.DefaultView;//your code DataView dataView1 = typeddataset.tablename.Defa ...Show All
Visual Studio Debugger gets stuck in infinite loop while DoEvents
I have a component that works similar to the BackgroundWorker and uses the ThreadPool (the reason for not using the BackgroundWorker directly is the need to launch any number of processes concurrently). To achieve raising the started/progress/completed type events on the UI thread, it uses AsyncOperation. The component is being used in two scenarios, one in which an thread is spawned in a button click handler which returns after queueing the thread. The second scenario is in another button click handler, but this time it enters a loop that calls Application.DoEvents until a variable is set during the completed event raised by the component on the UI thread (using AysncOperation). Both scenarios execute as expected without problem when just ...Show All
Software Development for Windows Vista How to use Correlation parameter in state workflow?
I can not make my correlation pair of activities work on a state workflow. Bascially, inside state workflow's transition from one state to another, you have to use Event-Driven activity, but with the even Event-Driven activity the first activity has to implement IEvent. The problem for correlation parameter activity is that the first activity is an invoking activity that set up the queue using correlation ID, and the second activity is the sink activity implement IEvent. So, my question is can I use correlation within a state workflow If yes, how The reason I use correlation is that I have so many incoming events, I don't want to create one activity for each of them. Thanks. If you want to mo ...Show All
Architecture Windows Server 2003 GP management
I am not sure if I am posting in the correct place, but I am having an issue with group policy. When someone receives a picture through any web-based email page (hotmail, yahoo) and try to open the image, instead of save it, they are restricted by their admin. I have monitored all the programs running when this happens, and have added them all to the allowed list to see if that would fix it, but they are still being restricted. I have added svchost.exe, lsass.exe, explorer.exe, crcss.exe to no avail. They are opening it in microsoft picture and fax viewer. Does anyone know if windows XP runs any loader before opening an image in picture and fax viewer, or have run into this issue before. Thanks. Phil ...Show All
Windows Forms Save image on drawing surface
I have a image manipulation program and I have a problem when I try to save my image. First I have: Graphics graphics = pictureBoxImage.CreateGraphics(); Then I draw something into that drawing surface. After that I'd like to save the image in my drawing surface. But how can I do that Let's say that I want to create a new drawing surface and draw some ellipses into it, then I want to save it to 'C:\Images\1.bmp'. I really don't know how to do that. There's no methods like saveBitmap() or something like that, in Graphics class.. :/ Please help! Timo using System.Drawing.Imaging; pictureBoxImage.Save(@"c:\Images\1.bmp", ImageFormat.Bmp); Or, straight from the PictureBox object: pictureBox.Image.Save(@"c:\Images\1.bmp&qu ...Show All
Visual C++ resize array then insert data
array<String^>^ sTemp = gcnew array<String^>(10) 10 elements in this array, i want to add a string at element 5 and have the data shift down so that the new array size will be 11 seems like i will need to resize the array first, shift the data and then insert the new data, any ideas on how this might be accomplished I don't think the Array is the right structure for your needs. You can use ArrayList which supports inserting elements at a specified index. You could also use the generic List class which also supports inserting elements into the middle of the list. ...Show All
SQL Server SQL Server 2005 JDBC Driver Output Parameter/Result Set issue
I'm having an issue with the JDBC driver when I execute a stored procedure that both has a return value and also returns a result set. If I attempt to retrieve the return value (registered as an output parameter) after I execute the stored procedure, then any subsequent attempts to retrieve the result set always return null. Is this by design If I use the result set first and then later get the return value that works; however, in my situation I need to first check the return value before I work on the result set. Am I'm I doing something wrong Code: CallableStatement cs = connection.prepareCall("{ = call spGetCustomer( , ) }"); cs.registerOutputParameter(1, Types.INTEGER); cs.setString(2,"blahblahblah"); cs.setB ...Show All
