Maxim Masiutin's Q&A profile
Visual C# random number problem
1:892 2:951 3:363 4:418 5:301 6:208 7:400 8:522 9:321 10:293 11:212 12:712 13:195 14:570 15:485 16:409 17:414 18:928 19: ================================================================ here are 18 groups of data ,and they are selected at random from 000 to 999 based on these numbers ,can you figure out the inner relationship among these datas,and try to predict the 19th group of data I have the answer: 19:420 But I'm not going to tell you what the alhgorithm is. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. amd 64 bit laptop will it support the next version of the framework which will be 64 bit?
i have an acer ferrari 4003 amd 64 bit. will it be able to run the next version of the framework. and will the next version of the framework only supports directx10 capable 3d cards ...Show All
Visual C++ mfc skeleton visual studio 2005 without appwizards
ecently i came across an MFC book: MFC programming from Ground Up i am using visual studio 2005 to try out the examples i tried to compile the following sample skeleton code: // A minimal MFC program. #include <afxwin.h> // Derive essential classes. // This is the main window class. class CMainWin : public CFrameWnd { public: CMainWin(); DECLARE_MESSAGE_MAP() }; // Construct a window. CMainWin::CMainWin() { Create(NULL, "An MFC Application Skeleton"); } // This is the application class. class CApp : public CWinApp { public: BOOL InitInstance(); }; // Initialize the application. BOOL CApp::InitInstance() { m_pMainWnd = new CMainWin; m_pMainWnd->ShowWindow(m_nCmdShow); m_pMainWnd->UpdateWindow(); return TRUE; } // Thi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Developing solely on the XBox 360
What major disadvantages are there in developing only on an XBox 360 My laptop here is not exactly a top-of-the-line gaming machine, which means that I can't run XNA games on it (no shaders). One option would be to just get a new PC, but for a student that's not exactly cheap, and I might not want to get a new one anyways before Vista comes out. One thing I heard might be a problem is profiling my code. I understand the only thing for profiling on the 360 is the GC profiler, which might not be quite enough. Will the situation get better in the future Should I just get a new PC or would the 360 be a good inexpensive solution for game development This is primarily for security reasons. As I'm sure you can im ...Show All
SQL Server Report pagination for charts
Hi, We have developed few reports displaying data using chart layout. In the Data tab, we have specified MDX query that will return top 10 records. But now, instead of restricting to just top 10 records, we would like to display all records and go in for pagination. Is there some setting in the chart properties, where in I can display the first n records in first page, and the next n records( if available) in the next page and so on Can I specify the value of n somewhere in the propeties I read through many posts regarding pagination but those couldn't help me much. Please help me in solving this problem. Any help would be appreciated. Thanks in advance! One approach is the fol ...Show All
.NET Development Need help with passing a datatable
Hi there, I have a web service that queries a database through a function, which returns a datatable containing the result of the dataset of the query. Ex: Class dbAccess ...code... Public Function sup_GetAllOrganizations(Byval pID as int64) as DataTable .... < execute query, fill dataset's dataTable with result....this code is tried and tested and works fine ....> Return <TableName> End Function End Class I use this function in a windows environment as such:.... dim objDB as new dbAccess dim myDataTable as DataTable = objDB.sup_GetAllOrganizations(1). Copy() The copy method is essentially how I use to pass the dataTable accross the different parts of the sys ...Show All
Visual Studio Team System using tfs web service without MetaDataTableHaveEnrty value?
Hi there, Currently Im successfully updated my workitem using the TFS web service ( need to use web service because i need to change some fields value that can't be set using OM). But I still can't programmaticly get the RowVersion value for each TableName in the MetaDataTableHaveEntry ( so right now all the rowversion value is set to 0) What are the implication if i do not set this value (RowVersion) Or could someone teach/show me how to get all the RowVersion value, I able to get all the TableName from Microsoft.TeamFoundation.WorkItemTracking.Server.MetadataTable library. thanks in advance. As I said before the main reason Im using the web service, is because currently im writing a migration program fo ...Show All
Visual Studio Creating reports with temp tables
Hi, I have created a new datasource that runs a stored procedure. The stored procedure uses a temp table and returns the contents of the temp table. When I add the stored procedure to the datasources window it cannot figure out the column names of the temp table. I can preview the data from VS2005 and it works fine. However when designing the local report I have no fields to drag on to the form. I choose Report - Report DataSources and pointed to the dataset of the stored procedure. I dropped a text box on the report and manually added Fields!DepartmentName.Value which I know is one of the column names, but that produces the error "The Value expression for the textbox ‘textbox1’ refers to the field ‘departmentName’. Report ...Show All
Visual C# Disabling Ctrl + Alt + Del
I'm writing an employee login application where I of course don't want users messing with Windows while it is running; Therefore I need to disable ctrl+alt+del. I've spent 2 hours now trying to figure out how to do this in C#. I've read from some people that I have to write my own version of GINA. I've also read about using WlxLoggedOnSAS to capture the ctrl+alt+del event. Are these the best mothods for doing this If so how on earth can I accomplish this task Thanks for the help :) Try this: Use a KEYUP event or a TIMER_TICK event: if (e.KeyCode == Keys.Control) { if (e.KeyCode == Keys.Alt) { if (e.KeyCode == Keys.Delete) { CancelEventArgs cancel = new CancelEventArgs(true); } ...Show All
.NET Development detecting when an app domain is shutting down
Hi, We have HttpHandlers that can process requests for up to 50 minutes. Those HttpHandlers are running in an app domain inside the DefaultAppPool. We'd like the HttpHandlers to be able to detect when its containing app pool or app domain is requesting a shutdown (when it is recycling, for example). I looked at the Application_End method in global.asax, as well as the System. AppDomain.CurrentDomain.DomainUnload event. Neither get called as long as the HttpHandlers are handling a client request. Is there a way to programatically know when an app domain is about to shut down We need to know so that we can force the request to end more quickly and gracefully. Thanks for your help. Bubba Please take this question to the forums ...Show All
Software Development for Windows Vista Using DShow to render to HD video
Hi guys I'd like to take some Direct3d scene and render it to video meant for HD (High Def) TV screens. Any pointers on where I should start looking ...Show All
Visual FoxPro Using server's date/time.
Hi; Is there a way to make VFP use the server's date/time in the different date functions I have XP stations on Win2003 server and some machines sometimes have a messed up date. Transactions are updated with the incorrect date because the stations are not set to the right date / time. Thanks, Aleniko The only reliable way I have found is: -Create a file on server, get its creationtime, erase -Compare that time with local time. If difference is over some threshhold (ie: 5 secs) then set local computer's time. PS: In my applications I use an option ([ ] Synch local station's time with server time). If checked I do that. ...Show All
SQL Server Formating Mining Model Viewers
Hi, In the attribute discrimination viewer provided as Web Controls is it possible to format the visualization. Sort the attributes by Win factors first and then Loss factors, so they look like this: Favors Win Favors Loss -------------- ----------- ------ --- -------------- --------- ----- 2. Change the colors of the win bar and the lose bar Hello Sorting the attribute characteristics is not possible with the current viewers. Changing the color of the bars is possible (by using the BarColor property) of the control, in the Properties window Yo ...Show All
.NET Development How to check if field is empty?
Hi, I have an access database which I am using ADO.NET to query. I am currently reading all fields within the database. However, the program crashes when it reaches a field that does not contain any data. I am trying to write a simple statement to check the field if it contains no data. I have tried something like this: string check = dr.GetString(3); if (check == "") txtName.Text = ""; else txtName.Text = dr.GetString(3); I continue to get compile errors. I have tried almost everything (if check == System.DBNull.Value, null,etc). All help is appreciated. it should be: if (dr.GetString(3) == DBNull.Value) { .. } now since you are doing: stri ...Show All
SQL Server Copy Flat File between two server; Help me please.
Hello All, I want to copy flat file(.txt) from server to another server. server A(Source Folder) ====> server B(Achive Folder) Can I do it Please, help me. Thank you very much. Chonnathan Chonnathan Parnprom wrote: Great job, Thank you for your helpful, Regards, Chonnathan I've I've answered your question, please mark it as answered using the "Mark as Answer" button. Thanks, Phil ...Show All
