mfareezaw's Q&A profile
.NET Development Can Someone Help me With this ?
hi all ------------------------------------------------------------- using System; using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class Personal : System.Web.UI. Page { ITS . Learner_PersonalDataTable Personal_Info; string STUDENT_NAME = "name" ; protected void Page_Load( object sender, EventArgs e) { ITSTableAdapters. Learner_PersonalTableAdapter adapter = new ITSTableAdapters. Learner_PersonalTableAdapter ( ...Show All
Windows Forms cpu time
What would cause bringing up a form 99% of cpu time Start it in the debugger and press pause when it is at 99% CPU time. What does the call stack show you There could e.g. be a faulty loop which never ends. -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. failed mesh loading
I can't seem to figure out why this function fails. Here is the structure definition(I know it has some unneccessary things in it, I am going to remove them): typedef struct meshstruct { char *name; ID3DXMesh *meshobj; ID3DXMesh *skinmesh; ID3DXSkinInfo *skininfo; DWORD numofmaterials; D3DMATERIAL9 *materials; LPDIRECT3DTEXTURE9 *textures; meshstruct *next; } meshstruct; I excluded the constructor and destructors, as I thought they were unneccessary. I would be happy to post them if you would like. here is the actual function: bool loadxfilesimple(meshstruct* mesh, LPCWSTR filename) { LPD3DXBUFFER matbuff = NULL; // is 0xcccccccc DWORD nummats; if (FAILED(D3DXLoadMeshFromX( ...Show All
SQL Server Parsing CSV name=value pairs into columns
Hello smart SQL people, I have a field in the DB that contains name value pairs in the form of csv. Is there a neat trick (using a stored proc) to get it to be diplayed as in columns (maybe create a view around it or somthing ) EX. Select 'name1=val1;name2=val2;name3=val3' as MyData --> Returns MyData ----------- name1=val1;name2=val2;name3=val3 ============================================ How can i get it to return name1 name2 name3 -------------------------------- val1 val2 val3 I actually got it to display convert 'a=1,b=2,c=3,d=4' to nm val ----- ------ a 1 b 2 c 3 d 4 Im guessing converting that to a b c d ----------------- 1 2 ...Show All
.NET Development when using IIS hosted remote objects
Hi, I'm little bit confused about the difference between using remote objects hosted on IIS and web services. So u have any idea why should I use Remote Objects hosted on IIS instead of Web Services Thanks in advance. Got my answer : http ://forums.microsoft.com/MSDN/ShowPost.aspx PostID=4544&SiteID=1 ...Show All
Visual Studio Express Editions messenger tutorial
I'm fairly competent with c# (thanks to this site), however i have no expirience with any sort of network coding, i was wondering if anyone could point me in the direction of a simple messenger tutorial, where two people can just send messages back and forth in visual c sharp express for me to get the hang of simple networking in a program. thanks in advance Matt Hi Matt ! This article on the CodeProject might be what you are looking for. (On the code project site you can find - beside many other topics - many articles about network programming of which the most come along with demo sourcecode ) http://www.thecodeproject.com/cs/internet/messengerx.asp This article describes a chat s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. TitleLocation writeable on the 360?
Let's say I run some code like this on the 360: string fullpath = Path.Combine( StorageContainer.TitleLocation, "new_file.dat" ); FileStream fs = File.Open( fullpath, FileMode.Create, FileAccess.Write ); Will this work on the 360 Or is "TItleLocation" read-only Assuming this will work are there any FileMode operations that are off limits in TitleLocation or it's subdirectories If this can be done, then is there any limit to the amount of space that can be written to TitleLocation or it's subdirectories other than the available free space on the 360 HD Thanks - Ryan If you don't get an answer on this in a couple hours, I'm going to try to run some StorageContainer/St ...Show All
Visual Studio Express Editions Return type of a function in a dll
ABC_STATUS ABC_Init(HWND hWnd, UINT messageOffset ); //hWnd Handle to window waiting a message. //messageOffset Offset value of message ID. The above code is a VC++ dll and i am using it in C#. The returning variable ABC _STATUS contains values as: ABC_STATUS ABC_NORMAL : This function succeeds. ABC_E_BUSY : This function is work in progress. ABC_E_START : This function fails to begin thread. Tell me how to get the value of the return variable ABC _STATUS in C#. Willfin ABC_STATUS ABC_Init(HWND hWnd, UINT messageOffset ); UINT is the Offset value of message ID. Tell me how the messageOffset is obtained and how the message ID is fi ...Show All
Visual Studio Express Editions problem reinstalling visual c# 2005
Hi, I recently downloaded and installed VC# 2005 Express Edition, and now it wont load the apps from my previous version of VC# 2005 Express Edition. My CD with the original version was lost so assumed I could just download one off the net and get my old apps to work. When I load the apps the .cs files seem to be missing. Pleeeeeeeeease help! All your Projekts are saved in My Documents -> Visual Stodio 2005 -> Projekts Do you mean you could load your old Project Files, but the corresponding .cs Files are not found ...Show All
SQL Server Cursor and order by
I noticed that I cannot use ORDER BY in cursor, but in my case I need to order data in cursor. I'm thinking about selecting data for cursor from temp table where data is ordered but may be there are other decisions to get data in cursor ordered This query works: select MembersElectroValues.Date, MembersElectroValues.StartValue, MembersElectroValues.CurrentValue, (MembersElectroValues.CurrentValue - MembersElectroValues.StartValue) as [Difference] from MembersElectroValues where UserID = 11 order by [Date] Works Now I try declare @MembersValues cursor set @MembersValues = cursor for (select MembersElectroValues.Date, MembersElectr ...Show All
Visual Studio Tools for Office Xml mapping in Office2007
i've tested old VSTO 1.1 and 2 projects on Office2007. With VSTO 2 SE and Office 2007 2TR it works all ok but in excel i can't view edges list. I'm not be able to find out option to hide/show blue border in the mapped xml lists. Where is it this option in Office 2007 ! ! Hi Paolo If I'm not mistaken, this was changed in Excel 2007. List objects are no longer surrounded by a heavy blue border, but are treated like any other table as far as formatting goes and are now called "Tables". You may want to get confirmation of this in an excel newsgroup, such as the one for general questions. The specialists there will know exactly what changes have been made, and may even have an explanation as to "why". h ...Show All
Windows Forms Difference between CurrentCell and SelectedCells
What is the difference between the two Are selectedcells currentcell Thanks. Regards Alu To add new row to datagridview, you should add new row to your datasource directly. You add do it like this, northwindDataSet.Customers.AddCustomersRow("Gemi", "MS", "Wang", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa", "aaa"); After you add a new row to your dataset, the datagridview will show it automatically. ...Show All
SQL Server runningvalue in group expression
Hi My customer want's to get product ABC analysis report. And product groups are determined as A - 50% of total sales, B - 20% of total sales and so on... By using expressions I can get the A B C D values but I cannot group them. It seems also not possible to calculate this in sql statement beacause I cannot create any view nor stored procedure for culumative calculation. Can anybody help me with this matter, how to "Cheat" the group to accept aggregated values to get calculated expression value as a group ...Show All
.NET Development Web Form Attributes Not Passed Through to Non-IE Browsers
Hi Folks, Here's a tweaky kink in VS.NET 2002 Pro. Somewhere in the generation of HTML to send to the browser, attributes that .NET doesn't believe other browsers can handle are removed. In particular, I have noticed this with the Web Forms Label element. On my first project, the walthrough "Creating a Web Application Using Visual C# or Visual Basic" from the bundled ondocumentation, I made a small modification by increasing the height of some labels that would receive lengthy strings. The purpose was simple: to prevent the text from overflow horizontally. Using Internet Explorer, this worked just fine. The text wrapped into the available vertical space. The problem is that when I tested the page with Firefox for compatibility, t ...Show All
SQL Server Data Mining : Drug Trial Question
I have a a simple situation. I am trying to determine for how long (in months) two drugs should be given to a patient. Both the drugs are administered at frequent intervals and their dosage and the condition of the patient is recorded. How do I determine for how long should I continue to adminster the drugs,at what point should I stop I am dealing with the following variables : Drug 1 dosage,Drug 2 dosage, Period of medication (in months). Can I use SQL Server 2005 data mining capabilites to get the answer Please let me know. I have to agree with the other response that this decision should be made by a qualified MD. What data mining can do is tell you the relationships between the dosages and the medication periods. Note that si ...Show All
