Answer Questions
hani1426 Reading problem - damaged tif image
Hi all, I want to read(binary reading) damaged tif image through c# code. Is it possible I will explain my problem. I am having a tif image which can't be opened in any of the vievers. But using some third party tools we can convert it into some other formats and open it. But I need to open it by using C# code Is it possible Anybody help me Regards, Joji Perayil If the media is damaged, then not really. If the file in ...Show All
sinan m al dabagh Soap Serializer does not support serializing Generic Types.
I tried to serialize an object contains list (List<>) of objects and I got this exception: Soap Serializer does not support serializing Generic Types : System.Collections.Generic.List. It works fine with the BinaryFormatter. I don't this that is a good idea. It is a matter of consistency between the binary formmater and the SOAP formmater. Yeah, Let me post m ...Show All
Jason Firkin restriction on element and on attribute, how to cope multiple restriction
Hello, I am new in using xsd, I a read the W3 tutorial and now I am practicing. I am currently facing a difficulty that I want to share and solve. So here it is : the XML I want to validate look like this : <Element attribute1="[0-100]">OneEnumValue</Element> I haven't yet discover the way to combine the description of the two restrictions the first one that is on the attribute and the second which is on the textElement. ...Show All
Jason_Bullock Win32_StartupCommand lists only the First alphabetical entry of Startup Folders.
Preview Message Win32_StartupCommand lists only the First alphabetical entry of Startup Folders. Hi All I am trying to list all the Startup Commands of a computer using Win32_StartupCommand class. The code is: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colSt ...Show All
James Clark InterOp issues for Web Service -- Automation error, The system cannot find the file specified.
Issue with Interop of COM component and .Net Assembly We have a project, which uses .net Assembly and COM component together, and is having problem with loading the private assembly. Issue: The .NET Assembly calls a COM components and that COM components calls another .NET assembly, and we would not be able to get the COM components call .NET assembly working in the call chain (Assembly->COM component -> Assem ...Show All
shwe Sort a datatable
Hi I have a datatable that i would like to sort by a column (not the key column). How should one sort a table Can the sorted table have the same name as se unsorted table I don't know now the the name of the current column (the column that should be the index for the sorted table, only the number of order ex. aRow[120]), will that be a problem Br Matt You can try using the Select meth ...Show All
Erik Taylor Display data from multiple tables into datagrid
I am using visual studio 2003 and was able to create a dataset and bind it to sql adapter but the data is from one table. I want to view the data from multiple table when i add the tables to dataset it only shows me 1st table. Not sure how to accomplish this... Any help will be appreciated. So far no luck I would be interested to find out. VJ Hi, Any answers for this I am going nuts :S PLEASE SOMEONE HELP ME! Tha ...Show All
Virtual One Connection pooling for SSAS using COM+ is not working properly.
Hi, can anybody help I tried using COM+ (servicedcomponent) for pooling connections of Analysis Services 2005 (SSAS). It seems that COM+ is establishing connections as per the object pooling attribute shown in the code below. When the client create instance of this class it gets assigned with already created object and gets a connection to SSAS. After firing MDX query using that connection, the client disposes the COM+ object, which s ...Show All
David Tatton strong names problem...
I have a console application in c# that uses objects that is in another dll(unmanaged code). when I reference from the project to the dll it creates another dll with the name Interop.MyDll.dll now, I created snk file with sn.exe and added reference to it from the project [assembly: AssemblyKeyFile("@"..\..\exampleSN.snk"")] with this it wont compile because of: "Assembly generation failed -- Referenced assembly 'Interop.MyDll' does not have a s ...Show All
Markeque Calling MFC DLL from VB.NET
Hi, I'm calling an MFC DLL, which show a dialog box, from VB.NET. The application crashed when the DLL try to create the dialog box. If the creation of the dialog is skipped there is no problem using the DLL. Is it possible to call an MFC C++ DLL from VB.NET Code in the DLL: CZModemDlg* aDlg; aDlg = new CZModemDlg(); aDlg->Create(IDD_ZMODEM_DGL); <--------Crashed here ! aDlg->ShowWindow(1); Brgd ...Show All
hussain990 Asynchronous ADO.NET wont wait for WaitHandle
SQLconn = new SqlConnection(dbConnectionString); SQLconn.Open(); SQLcmd = new SqlCommand(SPName, SQLconn); SQLcmd.CommandType = CommandType.StoredProcedure; SQLcmd.CommandTimeout = 0; // And start executing IAsyncResult iaR = SQLcmd.BeginExecuteReader(); waitHandles[SQLEVENT] = iaR.AsyncWaitHandle; int index = WaitHandle.WaitAny(waitHandles); With this code the WaitAny returns imm ...Show All
TammyDj Change Application Pool Identity Programmatically
Security doesn't allow developers to have IIS installed locally on their PCs, nor do they allow developers to be in the administrator group of the development web server. In order for them to debug, we have individual application pools running under the identity of the developer. (Thankfully IIS 6.0 has allowed this feature.) We wrote a small program that allows a user to recycle their application pool: public void RecycleAppPool( string a ...Show All
carywinton Possible to pass System.Type and then cast an Object?
Im trying to do something like this: public class isthispossible() { Inventory someClass = new Inventory; Type someClassType = someClass.GetType(); someMethod(someClassType); } public someMethod(Type ClassType) { Object someObject = new Object(); someObject = (ClassType)someObject; } I want to pass a System.Type and then cast an object to that type, using that System.Type I passed. Is t ...Show All
Takashi Toyota copying multidimentional array to another one
I have developed this class to read from file public class ReadFromFile { FileStream f = null ; string fileName = "c:\\myData.data"; char [] separator = {' '}; string [] strArray; public int [,] pattern ; public int [,] target; int total = 0; static int count=1; static int num = 0; public ReadFromFile() { try { f = new FileStream(fileName,FileMode.Open,F ...Show All
Josh Holmes SslStream and SSL protocol not recognized (i think)
i wrote this simple apps to connect to an IRC server but it doesn't work :( using System; using System.Collections.Generic; using System.Text; using System.Net; using System.IO; using System.Net.Security; using System.Net.Sockets; using System.Security.Cryptography.X509Certificates; namespace provaSSL { class Program { static void Main( string [] args) { try { string certName = "" ; TcpCl ...Show All
