Answer Questions
Batikit Type initializing function throws an exception
Hi, Were working at a project here where we're use WMPLib.DLL (library wich includes windows media player). Since we've included this reference, the application crashes at some machines, only some. we distribibute the wmplib.dll with the application but on some pc's it just crashes. even better, the constructor constructs the wrapper class, after that, the application crashes at this line: private System.ComponentModel. IContainer components = null ; Hence, when diving into the dissambly i've seen that the app crashes at this line: 00000083 mov dword ptr [esi+000001B4h],edx Wich for my knowledge makes absolutely no sence. Stack trace: (bij==at) bij System.Reflection.Module.GetTypesInternal(StackCrawlM ...Show All
Shinmen My enumerator is not returning the count??
Hi, I have created a class using the KeyedCollection: public class RobotPartKeyedCollection<T> : System.Collections.ObjectModel.KeyedCollection<string, T>, System.Collections.Generic.IEnumerable<T> where T : RobotPart { private RobotPart partToSearch; internal RobotPartKeyedCollection() : base(null, 0) { } public RobotPartKeyedCollection(RobotPart robotPartToSearch) : base(null, 0) { partToSearch = robotPartToSearch; } protected override string GetKeyForItem(T item) { return item.Name; } internal void ChangeKey(T item, string newKey) { base.ChangeItemKey(item, newKey); } public new T this[string name] { get { ...Show All
Javahar on the way of building the carrier, please help me
hi, i am a student from india, i am very much interested in Microsoft technologies. if u consider vc++, c# languages which one is right choice to select as a carrier option. thanks and regards ranu. First, just start programming. It doesn't matter if it is VC++, C#, JAVA or anyting else. The best thing you can do is looking around for someone who can help you, for example if a teacher can teach you Java or if a great friend of yours is a developer that uses C#, you must go for it. The language or environment doesn't really matter when you want to learn the basics. The best thing to learn someting fast and good is to learn from a profecional. Afterwise when you understand the basics and und ...Show All
clint 2 viewing processes in C#
I need to keep track of what is running on my system. I used to do it via various APIs like pview.exe , cmcmd.exe , pulist.exe , tList.exe , Rlist.exe etc. They are very inconvenient for many reasons. Now I want to do inventory of the processes running on the system with C# code. I am sure it would be much simpler. My question is: what Classes should I take to do it. Thanks. boban.s wrote: Did you tried ProcessExplorer from sysinternals and from lately microsoft sysinternals. This app rocks, so here is the link. : http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExplorer.mspx If you have posibility to download presentation of some of sysinternals by Scott Hanselman where you can see som ...Show All
St&#233;phane Beauchemin Windows 2000 SP for deployment
I am creating a setup project (VS 2003) for a Windows application. I have to make sure that the application will be installed on Windows 2000 ONLY if Service Pack 4 is installed on the target machine. So, I am using a Launch Condition Editor and check for the VersionNT property... well, at least I tried to do that. But I have no idea what value I should be comparing it to. Could someone give me a link to an article which has a list of all VersionNT property values for NT, 2000, and XP, please I need to know those values for SP3 and SP4 for Win2K... Thanks a lot! Windows 2000 is Version 5.0 Windows XP is version if 5.1 Windows Server 2003 is version is 5.2 as for the S ...Show All
Vipul123 Efficient search
Hi, I have two tables that I create to display information in a DataGridView Control. Now I need to compare the fields of these two tables. It is somewhat like: void SomeFunction() { for (int i = 0; i < tableA.Rows.Count ; i++) { DataRow rowA = tableA.Rows[ i ] ; for (int j = 0; j < tableB.rows.count ; j++) { ...Show All
JR Lyon C# - Change Web Site encoding?
Hi! How can I change the encoding of a web page in either the .net browser control or activex control Matt ...Show All
RMooreFL Input Message Box in C#?
Is there any control like an Input Message Box (users of VB would recognize this) I need a pop-up in the same form (pop-up not being a seperate form or a MDI child) for the Login Id and password Any Suggestions thx in advance, What I have is a form with a textbox on it with a TextValue property. Everytime I want to get some input from the user I just display the form and then get the textvalue back. Just add the reference "Microsoft Visual Basic .NET Runtime" to your project. you needs to import " using Microsoft.VisualBasic;" then try to access the inputbox method. For ex:- string x = Interaction.InputBox("hi","hello",&q ...Show All
mstcrow5429 Any Suggestion for Developing Simulator for MCU?
I need to develop a simulator for MCU. However, I have no idea at all how to program it. I even do not know to use which language to develop it. Does anyone have this kind of experience Would you please recommend any book or related material Is there any similar open source simulator from which I can learn and code... Thanks a lot! Thank you very much! Actually, I did not know much about the simulator, my supervisor wants me to fist have an overview of how to developing such thing and then he will give me the datasheet. My task is similar to the simulation in Keil C, like a debug environment. User can see what's going on in the IC board, what the values in the registers and so on. So I need to make a simu ...Show All
JavaBoy Calling a method within a class from Main() - What am I doing wrong?
I'm in the process of learning C# by writing a simple program that converts Celsius to Fahrenheit and vice-versa. My current road block is calling the conversion methods from a class I created which is separate from Main(). For some reason, VC# cannot see the methods with the code I am using to make "the call." I am not certain if the problem lies with the code used to place the call or the way I've written the class itself. Below is the code I have written. First - The Class that contains the conversion methods... using System; namespace Convert { public class Convert { public float UserFahren; public float UserCelsius; public float ConversionFahren; public float ConversionCelsius; float CalcCelsius(float ...Show All
BarrySumpter How to Create a URL syntax checker in C#
I would like to create a URL syntax checker so that can verify a cerrtain URL not a phish site. But I am also aware that some URL have valid syntax but is still a phish site. To answer this, I am looking for some measures on how to verify a URL and its correct DNS equivalent. I am doing a project of mine as one of our requirements and I have decided to create a web browser (already done) and I have included there 3 anti-phish tools. One of the tools is to check for URL syntax error. i have searched for such but has given me no good results that can be of any help to my project. I was hoping that some of the bright minds here could help me or enlighten me in my search. Thanks. Hmmm... still quite vague. Could you please expo ...Show All
Luke Bedggood How to deploy an embedded file?
I have a very simple console application I've written that copies a file from a DVD drive to the local temp directory. What I'd like to do is make it as idiot-proof as possible (you know murphy's law regarding end users...); to that end, what I did is to add the file to the project. Now, what I'd like to do is just take that file and copy it to the temp directory. What's the cleanest and easiest way to do this (Yes, I'm new at this...) Thanks! sure. Try this Stream theResource = System.Reflection. Assembly .GetExecutingAssembly().GetManifestResourceStream(System.Reflection.Assembly.GetExecutingAssembly().GetName().Name + ".fileName.ext" ); BinaryReader theReader = new BinaryRe ...Show All
SOG Luebeck pointers??
how can i use pointers in c# as it is managed code development platform use pointers in unsafe{} block You can use pointers with the unsafe keyword http://msdn2.microsoft.com/en-us/library/t2yzs44b(VS.80).aspx I think ref and out are the equivalent of pointers in C# (those are keywords). ...Show All
Al Zuniga Thread looping with EndInvoke and InvokeRequired
Hi! I've a rare problem doing a query to a DB and try to update a DataGrid. I make a asynchronous query to BD, and when ends callback to a EndQuery function: private void void EndQuery( IAsyncResult ar) { TareasAsincronas.Remove(ar); TareasAsincronas.TrimToSize(); DataSet Resultado; BD .Q.EndInvoke( out Resultado, ar); ActualizaGrid(Resultado); } private void ActualizaGrid( DataSet DS) { if (dataGridView1.InvokeRequired) { CallBackA RCB = new CallBackA (ActualizaGrid); //<<<--- StackOverflowExeption here !!! RCB.Invoke(DS); } else dataGridView1.DataSource = DS.Tables[0]; } Where'is the problem IDE warning me for a infinite loop or infinite recursion... Regar ...Show All
JUANCARLOSR Problem with HtmlEncode
Hi there, I used "System.Web.HttpUtility.HtmlEncode" for HTML-Encoding in an older project and it worked. No, since I upgraded to .Net 2.0 (and SharpDevelop 2.0), I cannot call anything but: - System . Web . AspNetHostingPermission - System . Web . AspNetHostingPermissionAttribute - System . Web . AspNetHostingPermissionLevel But nothing else. Can anybody give me some help on this My goal is to encode HTML to (usually such a very simple task...) Thanks, Sietsch. I cannot explain why it worked before however I would expect that the reference once existed and has somehow since been lost... but what I know is that if your project does not reference System.Web.dll the only items you ...Show All
