R1ZWAN's Q&A profile
Visual Studio Express Editions Array
Hi. I need some help with Arrays. I have been using a non Microsoft Visual Basic. I have been using it for about 12 Years. I can't seem to find a way to print arrays in Visual Basic.NET V 2005 Express. In my old Visual Basic I was doing this. Type File1 RecF1(20) As Long RecF2(20) As Integer RecF3(20) As String * 1 ' ... ' ... ' ... End Type Now comes the hard part, that is creating the Form to show how the columns and rows are arranged. Below are two Arrays of 5 TextBoxes. For a simple Form demo. _C1_C2_ ........ C1 = Col. 1 - ...... C2 = Col. 2 | | | | | | | | | | | | | | | """""""""""" Sample code to display data in the TextBox. For I = 0 to 4 ' For the abov ...Show All
Windows Forms How to Wrap text in a text box column of datagrid in windows application.
I have a datagrid column in which I want to wrap the text in one column. private DataGridTextBoxColumn dgcComments dgcComments = new DataGridTextBoxColumn() dgcComments.TextBox.Multiline = true dgcComments.TextBox.AcceptsReturn = true dgcComments.TextBox.WordWrap = true I have set the WordWrap property to True and Multiline property to True, but it doesn't seem to work. I am able to see the wraped text only when I manually increase the size of the row and click in the cell containing value. Anybody has any idea how to wrap text in a text box column of datagrid Regards Hemant Maybe this thread will help. ...Show All
Smart Device Development Wave Form API
Im using the Wave Form Audio Interface ( http://msdn2.microsoft.com/en-us/library/aa446573.aspx ) to play back streaming audio from mic inputs in realtime. I have 2 inputs, one sampling at 44.1 khz and another at 8khz. The 44.1 khz plays back normally with no distortion or delay. However the 8khz sounds perfect but has a 4 second lag time or delay It seems if I set the sample rate of the 44.1 khz to 8khz in the code I get the same delay as the 8khz sample rate. So, I guess my question is why does the Wave Form API introduce a 4 second delay with a 8khz sample rate. //No Delay WaveFormat fmt = new WaveFormat (44100, 16, 2); Player = new WaveOutPlayer (-1, fmt, 16384, 3, new WaveLib. BufferFillEventHandler (Filler)); ...Show All
.NET Development help getting Console Chat Server to update ListBox(ClientSide)
I have a Console program for a Chat Server using Asynchronous Sockets , trying to get it to Read a .INI, which contains a list of names. Than have those names broadcasted to a ListBox on the ClientSide.. I know this has to do with the System.IO functionality for reading the File, but not sure how to send what the StreamReader has read to the ListBox on the ClientSide. Here is a Section of code out of a larger block i'm currently working with dont think this is correct thou:: else if (messageReceived.StartsWith( "[RL]" )) { StreamReader sr = File .OpenText( @"C:\roomlist.ini" ); while (sr.Peek() != -1) { string allRooms = "[RL][" ; allRooms += "]" ; Broadcast(allRooms, null ); sr.C ...Show All
Visual C++ How to detect accesses to unallocated memory?
I am looking for a free library to help find memory related bugs, such as memory leaks and accesses to unallocated memory. my code uses new/delete, and I don't want to change it so ideally I'd like something that could print errors (most of the time) when I do something like this. int* intptr = new int[2]; intptr[100]=5; intptr[2]=5; I've tried FORTIFY but it didn't work on that example above Can anyone recommend me a good library or a profiler sort of thing (like valgrind) that can do this reasonably well on windows I heard that there are some tools from GNU, but I never was able to find anything that works with Microsoft compiler. I almost forgot - take a look at MFC's implementation of new/delete usin ...Show All
SQL Server Missing dimension values
Hi I have a silly question. I go through AdventureWork Tutorial and i am at the end of lesson 2 where I am browsing cube. When I add customer.english country region name into date pane of cube browser, I do not see Australia and US. Interestingly enough I see them when I expand country-region field on the same tool - I see all countries. Dimension browser shows all countries too. But cube browser does not show. Do you know what could be the problem Gene. Thomas, thank you so much! It showed all countries. Now I have another question. Why it shows no data for Australia and US When I run sum by country: select sum ( s . salesamount ), g . englishcountryregionname from dimcustomer c join factinternetsales ...Show All
Visual FoxPro Once again all hell breaks loose...
Once again I have made the fatal mistake of god forbid changing the record source of a grid in the design stage. I can't understand this issue: Now the formatting of the grid at run time is different (and can not be controlled at design time). Also, the grid columns get populated in the order of the new view I am using REGARDLESS of the fact that I am specifically setting the controll source per column to the proper field. Previously Cetin has sugested that during my select stage I would select only the fields used in the grid and in the order used in the grid but this will cause problems. Is there a solution to this bug (or is it a feature) in VFP This is driving me nuts.. Thank you all.. ...Show All
.NET Development System.Runtime.InteropServices.COMException (0x80040154)
Hi guys, I received error on my window C# application, what is the best way to troubleshoot this I guess I would have to find out which COM object is causing this. Is there a way to use the given CLSID to find out the COM object 6:25:46 AM: Error: System.Runtime.InteropServices.COMException (0x80040154): COM object with CLSID {CD000001-8B95-11D1-82DB-00C04FB1625D} is either not valid or not registered. at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly) at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Web.Mail.CdoSysHelper.Send(MailMessage message) at System.Web.Mail.SmtpMail.Send(MailMessage message) at LSMFiles.Mail.SendMail(String subject, String messageText, String from, String to, S ...Show All
SQL Server Launching DTA via "analyze in DTA" context option in SQL Editor failing
TITLE: Microsoft SQL Server Management Studio ------------------------------ Failed to connect to an IPC Port: The system cannot find the file specified. (mscorlib) ------------------------------ BUTTONS: OK ------------------------------ 32bit/x86 standard edtion, build 2047 (sp1) Hi.. What you have written in your post is the exact error I ma getting, and the setps you laid are exactly the sequence they ocurred for me. Is there a solution for this. I agre with you that I don't think this is a SQL SErver 2005 DB issue, but may be a Studio Managment issue. Any thoughts. Sincerly, Asad ...Show All
Windows Live Developer Forums v3 gives an error; v2 does not
When I call CampaignManagement.GetCampaigns(..) and reference to v3 wsdls, I catch this error: "There is an error in XML document (1, 552)." If I change all the references to v2, it's smooth sailing. The context of the call itself is some of the very first I wrote and has worked countless times before. Why do you think there is a difference and what do you advise -Tal Have you updated to version 3.51 " The AdCenterCampaign.BudgetAmt property has been renamed to the AdCenterCampaign.MonthlyBudgetAmount property. This change has been made to the V3 CampaignManagement WSDL document." If not, it is probably your problem ;) ...Show All
SQL Server Restore a set of databases from a SQL2000 server to a SQL2005 server
I can restore databases one by one, setting .mdf and .ldf destination paths. How can I restore all my Databases at the same time Thanks G. Zanghi You will either have restore or attach them one by one. HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
Visual Studio Team System Setting for URL in Reporting services
Hello, When viewing the project portal and drilling down into the Work Items report, the ID links href is not showing the fully qualified URL. It links to: http:<servername>:8080/WorkItemTracking/Workitem.aspx artifactMoniker=xxx instead of http:<servername>.ucr.edu:8080/WorkItemTracking/Workitem.aspx artifactMoniker=xxx I have looked all over the server in XML and config files, Sharepoint and Report Server configuration, the database tables, and in the registry, but can't find where this value is being set. I have run TFSAdminUtil activateat, and that hasn't fixed it. Does anyone know where else I can look Thanks, James Hi Federico, Yes, this is an &quo ...Show All
Visual Studio 2008 (Pre-release) Generic exception handling strategy
Hi, What is the recommended approach for exception handling on the WCF tier The SDK and some of the threads on this forum are stating that separate data contracts should be created to represent the various SOAP faults. Then, I am supposed to mark up the OperationContract methods with the "expected" faults (by the way, the documentation says that I can mark a service contract itself with a list of expected faults, but the compiler is claiming that it's only available for methods -- is the documentation out of date ). Then, in my service operation, I am supposed to wrap my calls (to business logic layer, let's say) in a try/catch block and provide mapping between specific exceptions and SOAP faults in the relevant "catch&qu ...Show All
Software Development for Windows Vista Transactional persistence of multiple workflow instances: pooled connections maxed out
I’m trying to poke WF in various ways to make sure we can use it in a large project. The system will largely create the workflows in batches. For example every night we may create 4000 or so workflows. If I’m dealing with a batch of 4000 I don’t think I’ll be creating the workflows and starting them right away like this: WorkflowInstance instance2 = workflowRuntime.CreateWorkflow(typeof(Workflow1)); instance2.Start(); I’m more thinking I’ll be creating all the workflows, getting the WorkflowInstanceID, recording this against an item in the database which the workflow is tied to. This needs to be in a transaction as I need to ensure the workflow is persisted and the WorkflowInstanceID is also recorded against the relative item in the datab ...Show All
Visual Studio Team System Readd of a project which was bind to source control fails
Hi, I have a project which was bind to team foundation source control. Our server crashes and we only have the version in the workspace. How can I readd this project to source control There was this error message (sorry, in German): Das Projekt "D:\TFS\TestProject\5.00\Entwicklung\Entwicklung.sln" kann der Quellcodeverwaltung nicht hinzugefugt werden. Das Projekt uberschneidet ein Projekt im Ordner "D:\TFS\TestProject\5.00\Entwicklung", das bereits in einem unteren Stamm an die Quellcodeverwaltung gebunden ist. Um das Problem zu vermeiden, fugen Sie das Projekt aus einem Ordner unter dem Bindungsstamm der anderen Projekte in der Projektmappe hinzu. I have remove all files added by source control and edit *.sln to remove ...Show All
