Mehta Vikas's Q&A profile
Visual C# Static Methods And Thread Safety
could somebody please tell me, in the following static method, is it possible for a second thread to call the same method with a different input variable modway through, thereby screwing up the result thanks public static int GetString(int i) { // do some stuff with i. e.g. i = i + 100; i = i / 2 ... etc. return i; } at the risk of sounding silly here... if i have a static method which returns a datatable. e.g.: public static DataTable Select( DbTypes dbType, string connnectionString, int cacheDuration) { SocketFactory socketFactory = new SocketFactory (); IDataSocket dataSocket = socketFactory.CreateSocket(dbType); DataTable dataTableAc ...Show All
Visual Studio Find and Replace, Quick Find, Find in Files ... dialogs dissapeared
This comes about in Visual Studio 2005 Professional. When I try to launch any one of the "Find and Replace" dialog boxes the IDE flashes once and nothing shows up. The only way I can search for something now is just in the current file and using the toolbar control. Do you have any ideea what might be the problem This started happening to me today. Nothing new has been installed & nothing (that I am aware of) has changed. Is there a solution that does not involve me reinstalling Visual Studio ...Show All
Windows Forms Customized PropertyGrid
Hello, I need to wrap the user-entered text in one of the propertyGrid rows and resize the height of that row to make all user-entered text visible. Can someone suggest the way to do it Thank you. ...Show All
Windows Live Developer Forums MSN Activity and external content
Hi, I seem to remember reading somewhere that content in the activity window can only originate from the domain where the activity comes from (probably for security reasons). However I can't find any info about that in this forum. Also in a demo i have running in which a have defined an activity in the msgrp2p.xml i can display all kinds of info from many different domains. Am i mistaken in the assumption that content can only originate from the original domain or am i missing something thanx for any help. Hi James, Thanks for the answer. Do you have any pointers to more diffs between the msgrp2p.xml and provisioned apps thanks! ...Show All
Visual C# Concat two strings
I got two strings....string1 and string2 and want to show a dash "-" between them so i did it like so string1 + "-" + string2... but i dont think that works.....can anyone point me in the right direction. I need to get two strings concatanated with a dash - separating them..... you can do this: string finalString = String.Concat( string1 , "-", string2 ); or string finalString = string1 + "-" + string2 ; or StringBuilder theBuilder = new StringBuilder(); theBuilder.Append( string1 ); theBuilder.Append( "-" ); theBuilder.Append( string2 ); MessageBox.Show(theBuilder.ToString()); do any of these work for you ...Show All
SQL Server BI tools from MS?
sorry for the basic questoin yet again but I'm new to this... Could you please tell me what are the end user BI tools from MS that could be used to browse SSAS cube That understand metadata etc Like the browser that is build in the SQL Management studio is great - I though that OWC control would provide similar inteface but instead it looks just like Pivot Table - it doesn't seem to understand metadata & so doesn't apply proper formatting to mesures, nor allows to browse the cube the way I want (group measures, dimension members etc) Thanks! cool - thanks for your help. unfortunately these tools aren't readily available... so just the last question (and also to clarify my original ques ...Show All
Windows Forms Creating report without using crystal
Hi all, I want to create report by using C#,net.I know the concept of creating crystal report,I want to create other than crystal report,can i create report.If it possible then tell the way to creating report.Plz help me...... Thanks, justin(Navyajeevan) Hi Mark, Thanks for your reply.I will try in PDF format after that I will message you. Thanks. justin(Navya) ...Show All
SQL Server Send Database mail to a group of operators
Hi all, In SQL2000 SQL Mail, I can choose the Operator as a group of operator from Outlook addressbook. In SQL2005 Database mail, I can add 1 address to a operator for notification. Any method send notification to a group of operator Thanks in advance ...Show All
.NET Development sent byte array shifted
hi, I have a case whereby when i try to send an byte[], the receiver receive it as its has been shifted. When i tried to debug: sender byte[] before socket.BeginSend() consist of: [1] 60 [2] 63 [3] 120 [4] 109 [5] 108 32 [7] 118 101 ... receiver byte[] after socket.Receive() consist of: [1] 0 [2] 0 [3] 0 [4] 0 [5] 60 63 [7] 120 109 ... The size of the byte[] is sent beforehead, and both sender and receiver has same number. The filestream is created afterwards, and the receiver file has 4 spaces at the front file and 4 character truncated at the rear of the file as it follows the size of the byte[]. What is exactly happening... Anyone can solve my problem Thanks in advance You are being bitten by network byte ord ...Show All
SQL Server Merge Join transformation hangs
I have serached through this forum, and I could not find the solution. My SSIS data flow is a simple one. Extracting two tables from Oracle using OLE DB Source , join them together using merge join and loading into a table in SQL server by SQL Server Destination. I haven't gone through this simple procedure because Merge join always hangs there. Down to further investigation, I found one input (randomly one of two inputs) is always stuck. Sometimes the input is empty, sometimes is about half way. Is there workround to see what is happening there and to fix this problem TIA As far as I can see, Mergejoin is not the culprit, it is by design for MergeJoin to wait until it gets buffers from both inputs before it outputs. ...Show All
Software Development for Windows Vista Listener activity in Sequncial Workflow in asp.net?
Has somebody have code-sample how to use Listener activity in Sequncial Workflow in asp.net Just like the Expense Report Workflow example Lab-01 exercise 4. Specially the code for how to approve/Reject using Asp.net I do not mind if the data is persisted in the SqlWorkflowPersistenceService. It will make my life easier. I know there is a bug in the dalay activity when used inside listner activity. But It is fine with me. Thanks much in advance.. Take a look at this page: http://msdn2.microsoft.com/en-gb/library/ms734584.aspx It has several good links to get going with ASP.NET samples. Thanks, Angel ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Avoiding the use of d3d9.lib and others
I want to avoid the use of d3d9.lib in project. That file is only needed for the Direct3DCreate9() function. The problem is that if I run the game in a computer that does not have DX9 installed I will get the error d3d9.dll not found. I want to use CoCreateInstance() to avoid Direct3DCreate9(). The problem is that I can't find the CLSID_Direct3D9 identifier to use in the call to CoCreateInstance(). Does anyone knows what value should be used Ty Actualy thats what I decided to do after posting my question and it is working fine! But now I know it can't be done thru CoCreateInstance(). Ty ...Show All
.NET Development web service security
hi, I am novice of Web service in .Net (C#). Scenario: I have developed web services (language C#), and need to call from C#.Net application. How to securely communicate and control access of these services consumption (i.e. allow to call/ access from limited users) Client program is very simple, It is not possible to configure certificates and other........ I heard about security credential in soap header. Developing distributed computing project.... Help plz Thanks in advance Cheers! rajindra, I recommend you to take a look at WSE 3.0 to implement WS security in your application. It provides you a mechanism quite similar to the one you mention with SoapHeaders. Here you have a coulpe of links that you may find ...Show All
Windows Forms Best way to create a multi language application?
I am looking to develop an application that can be used by an english speaking user or a spanish speaking user. What is the best way to do this Does .Net 2.0 already have this capability Thanks. Hi, Could you please check the below link. Hope this might be of some help. Link: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=75214&SiteID=1 Thank you, Bhanu. ...Show All
Software Development for Windows Vista unrecognized element in import of managed card
After the signature is checked, what further validations are performed on a managed card while it is being imported from a .CRD file Is there a way to enable debugging to find out more about what goes wrong when it fails Upon importing a managed card I generated from a file, the signature appears to be validating (I'm past earlier error messages by adding the issuer's certificate temporarily to the trusted root CA list), however a dialog box appears with: The data present in a card could not be validated. and the import fails. The event log shows event 263 ... The following information is part of the event: An unexpected element was encountered during reading. The card was generated by the sample CardWriter for a "username ...Show All
