Buddhist's Q&A profile
Visual C++ Including text files in projects which show up in solution explorer
Hello. This should be a fairly simple question to answer with any luck. I am trying to include text files with commentary on my code so someone else in a far off land and time could understand my program ;). With my program, some commentary is too lengthy to be put in the code, so I want to be able to have text files with more information accessible from the solution explorer for someone trying to follow the code. When Visual Studio generates a new Windows forms project, a file 'readme.txt' appears in the solution explorer which contains some explanations, etc. How can I make my own text files appear just like this readme file I am using the express edition of the compiler, in case that is relevant. Thanks a bunch. ...Show All
Windows Forms textBox Question
is there a way to allow only ' a-z A-Z 0-9 ][{}()-* ' characters to be typed into a normal textBox the MaskedTextBox wont work in the way that i want it too. Im using VC++ 2005 thanks ------ Build started: Project: test, Configuration: Debug Win32 ------ Compiling... test.cpp c:\documents and settings\dion1\my documents\visual studio 2005\projects\test\test\Form1.h(2954) : warning C4244: 'initializing' : conversion from 'wchar_t' to 'char', possible loss of data c:\documents and settings\dion1\my documents\visual studio 2005\projects\test\test\Form1.h(2955) : error C2352: 'System::SByte::ToString' : illegal call of non-static member function c:\windows\microsoft.net\framework\v2.0.50727\mscorlib.dll : see declaration of 'System:: ...Show All
SQL Server Slow Cube Performance in Excel
Hi all, I have an Analysis Services 2005 cube that I am linking to in Excel 2003 via a pivot table. The cube is based on a single fact table with around 6 million rows and 7 measures. I have 5 dimensions, none of which have more than around 200 rows. I have set up aggregation and am using MOLAP. My problem is that querying the cube in Excel takes around one minute, whilst performing the same query in the cube browser in BI studio is instant. I have captured the MDX for each of these in Profiler. The scripts are below. BI Studio SELECT NON EMPTY [{59956A97-57AB-4CAF-8A5B-E7753FDA221C}Pivot16Axis0Set0] DIMENSION PROPERTIES MEMBER_NAME, PARENT_UNIQUE_NAME ON COLUMNS, NON EMPTY [{59956A97-57AB-4CAF-8A5B-E7753FDA221C}Pivot16Axis ...Show All
SQL Server SQL Server 2005 Books Online - updated February 2007!
Download the updated version of SQL Server 2005 Books OnLine (Feburary 2007) : http://www.microsoft.com/downloads/details.aspx FamilyID=be6a2c5d-00df-4220-b133-29c1e0b6585f&DisplayLang=en This is most important as a primary documentation for a referral of information what has been changed since RTM, Service Pack1 alongwith changes in Service Pack2. ...Show All
Visual Studio Team System Is there a way to select the executed test cases from the database when generating report?
I am generating a test case report for our project manager in VSTS. I can set the filed "workitem type" as "test case" to get all the cases. but i do not find a field i can use to get the executed test cases. Anyone can help me Thanks! Hi Tommy, Let me tell you my understanding of your situation, and please let me know if I'm on track or not. You have created a work item type called "Test Case" that is part of your team project. You have created work items that are of type "Test Case" (as opposed to "Bug" or "Task"). You have executed a few tests and published the test results to the TFS server. Have you done any linking between the work items created and the test re ...Show All
.NET Development How to convert array of byte to stream?
How can we convert a byte array to stream or stream to array of byte So How can we change the size of stream Can we change the lenght (or size) of stream bigger I thank you very much for your answers. just to add Peter's post, you can write to a memory stream for example, you can read data from mem into byte[] array or from byte[] to memory stream. Example: byte[] myByte = new byte[10]; MemoryStream theMemStream = new MemoryStream(); theMemStream.Write(myByte, 0, myByte.Length); this will write the contents of the byte[] array into the memorystream, of course there is nothing stored in the byte[] in this small example I believe the memorystream will increase its size when you keep writing data to it. a ...Show All
Smart Device Development Detect Device Cradled
I have a windows application which I need to start when the device is cradled. how do I do this how do i detect when the device is cradled The OpenNETCF.Desktop.Communication library includes the ActiveSync class that will allow to do that: http://www.opennetcf.org/docs/Communication/OpenNETCF.Desktop.Communication.ActiveSyncMembers.html http://www.opennetcf.org/PermaLink.aspx guid=d7b7cbef-4ab6-477b-924c-0498a523beaf ...Show All
.NET Development how to SPLIT an ADO recordset ?
can anyone tell me how i can split an ado recordset for exmple if i have 1000 records in my recordset how can i split it into 2 recordsets of 500 records each Classic VB (ADO) question answered at DevX. http://forums.devx.com/showthread.php t=157286 ...Show All
.NET Development enable/disable network card/proxy setting in IE
Can i enable /disable the network card by using CLI or script can i enable /disable the proxy settign by using CLI or script This answers is for enable/disable the network connection, but i have diffrent requirement. I have 3 network card in my pc in that one connected to lease line to internet by using isa proxy & firewal, 2nd card goes to sify network & 3rd goes to mtnl broadband. we are using all 3 connections for diffrent purpose when we try to connect to the sify network it gives error that wrong gateway so at that time we want to disable the other 2 network cards. can anybody help me to resolved this problem ...Show All
SharePoint Products and Technologies When I edit a document it opens as Read Only
Hi: Does anybody knows why if one user is administrator of a site and edits a Word or Excel document, it opens as Read Only He is opening the document with the 'Edit with Microsoft Office...' but he cannot save the document, and it is necessary to delete and upload it again, and he has to do it every time he wants to modify it. Regards. I have the same problem with Excel 2007. I am running a laptop with XP and Office 2003 SP2 and the "Edit in Microsoft Excel" link on the Sharepoint site (WSS) opens the the spreadsheet in Excel ready for editing. When you press 'save', excel pushes the document back up to the server. Everything works as advertised. If I attempt the same using a laptop runni ...Show All
Visual Studio Express Editions z-wheel events
Hello, I am developing with Visual C++ 2005 Express Edition and I would like to know how to see z-wheel events of the mouse in order to change the focus of a component on my visual interface. That is to say, I have the focus on Textbox1 and when an z-wheel event come, the focus will pass at the Textbox2. Thank you for help. Best Regards. I assume you mean the scroll wheel. It generates WM_MOUSEWHEEL messages. ...Show All
Software Development for Windows Vista StateMachineWorkflowInstance ASP.NET error
I am attempting to use State Machine with ASP.NET. I am using StateMachineWorkflowInstance to get information about the active State when the ASP.NET page is initialized and again just before it renders. Placing CallExternalMethod activites in the Initialization activities causes me to get an exception when I try to get a StateMachineWorkflowInstance . Workflow with id "fea28637-6d1f-4244-a560-6f49084f3a53" not found in state persistence store. The error shows up when I handle an event in a State that then executes a SetState and the new State has an Initializer with a CallExternalMethod. From my 1st to my 2nd state this does not appear to be a problem, but from state 2 to state 3 it is not working and I get the except ...Show All
Visual C# Drawing and Refresh()
Hey I have problem with function OnPaint: ex. int x = 100; protected override void OnPaint(PaintEventArgs e) { Graphics gfx = e.Graphics; Pen myPen = new Pen(Color.SandyBrown,5); gfx.DrawLine(myPen, x, 180, 200, 200); } I would like to still have got line when value of x = 100 after changing it to 200 and calling Refresh(); How to do that thanks I would like to have 2 lines after clicking this button: old one and new one. and when i have got in button: private void button1_Click(object sender, EventArgs e) { x = x + 50; this.Refresh(); } i can hit it as many times as i wan,t and all lines will still remain in form even if i call this.Refres ...Show All
SQL Server Indexing on Decryption Views
1) We have SQL Server 2005 on windows 2003 server. 2) In some columns of some tables, data is encrypted before being stored and indexes have no meaning against these columns. 3) We have decryption views to select all columns of each & every table while decrypting the encrypted ones. 4) All our code i.e. only queries is in stored procs. We use only decryption views in these queries. 5) When encryted columns are involved in join or filter, query runs very slow and time outs are occuring. 6) Indexes on decrypted columns will not work. Can indexes on decryption views against these columns help If so, how 7) If so, please give an example creation of such an index on a view and its column OR post a good link ...Show All
Visual Basic Why doesn't dataadapter.update(datatable) work?
I am trying to update a single table in an Access database. Heres my code: Dim strSql As String = "SELECT * FROM ProductDB" Dim da As OleDb.OleDbDataAdapter = New OleDb.OleDbDataAdapter Dim builder As OleDb.OleDbCommandBuilder = New OleDb.OleDbCommandBuilder(da) Dim dr as DataRow da.SelectCommand = New OleDb.OleDbCommand(strSql) da.SelectCommand.Connection = conn da.UpdateCommand = builder.GetUpdateCommand da.InsertCommand = builder.GetInsertCommand da.DeleteCommand = builder.GetDeleteCommand dr = dt.NewRow ' dr.BeginEdit() 'Superfluous dr.Item(0) = txtName.Text dr.Item(1) = txtBrand.Text dr.Item(2) = txtWeight.Text dr.Item(3) = txtColor.Text dr.Item(4) = txtPrice.Text ' dr.EndEd ...Show All
