-
- How to use static class in Class Library (C#)
by Guostong
- 5 Replies
- Last post
by Indian Ocean
- I wrote a IE extension with c#, function is working, but I want to share a global flag in different IE , I used static class, it works in different tab in same IE window, but don't work in different IE window. SO What can I do [Guid("xxxx--...")] [BandObject("QToolBar", BandObjectStyle.Horizontal | BandObjectStyle.ExplorerToolbar | BandObjectStyle.TaskbarToolBar, HelpText
-
- check the version of an installed program
by ashk1860
- 5 Replies
- Last post
by ashk1860
- hi
How can I check a computer if a specific program have installed and also check its version if it is installed
thank you in advance
regards
-
- Multi Interface inheritance
by bpeikes
- 14 Replies
- Last post
by bpeikes
- Lets say you have two interfaces: interface IA: IComparable { int A {get; set;} } interface IB: IComparable { int B {get; set;} } and a class which implements both IA and IB class C: IA, IB { } class C now has to implement CompareTo, but the problem is that CompareTo should do different things if being used to compare this object to another IA, IB or classC. How do you implement the CompareTo
-
- Covert.ToDateTime
by Siva Krishna Beram
- 2 Replies
- Last post
by timvw
- HI Everybody,
I am having a problem in converting a string to date time.
string s ="01 JAN 2007 23 00" in which time part is in the format of 24Hrs clock.
When i am using Convert.ToDateTime(s) function, it is working till i am passing the vlaue of Hours less than 13 i.e 1pm. Please come with your comments and sloutions.
-
- C# sux! Or I do?
by onemind1
- 2 Replies
- Last post
by Peter Ritchie
- Hello, I have been programming a small simulator that models human population. This little exercise has seriously exposed my lack of understanding when it comes to OOP and how programs really run. For some reason, my program just gets out of sync. If you run it with a small population size its fine, but if i increase the population, it just gets messed up and i see no reason why this would happen.
-
- Read a String and identify number of Different characters ??
by thukralz
- 3 Replies
- Last post
by Mark Dawson
- I have a String which user enters, I need to determine how many types of different characters are there
For Example :
If User Enters :
Test
T or t - 2
E or e - 1
S or s - 1
This string can be really long what is the best way to get this done...
-
- Custom Destop Shortcut Icon
by Sorci
- 4 Replies
- Last post
by Sorci
- Hello Fellow Members,
I have recently completed a program using C# Express Edition. I set up a desktop shortcut to the program, but I would like to customize the desktop icon instead using the generic/default icon. If anyone knows how to do this, please let me know.
Thank you,
Justin Sorci
-
- .NET-BroadcastEventWindow.2.0.0.0.378734a.0: {Application Name} - Application Error
by Yitzhak Steinmetz
- 4 Replies
- Last post
by Yitzhak Steinmetz
- Hi,
I keep getting the following error message every time my application closes:
.NET-BroadcastEventWindow.2.0.0.0.378734a.0: {Application Name} - Application Error The exception Breakpoint A breakpoint has been reached. (0x80000003) occurred in the application at location 0x7c901230. Click on OK to terminate the program
I have looked this up in MSDN, Google, and Google Groups, but to n
-
- anonymous methods
by Maheswari
- 4 Replies
- Last post
by Peter Ritchie
- Anybody can explain the following concepts with a code sample
Anonymous Methods and Anonymous Delegates
Thanx in Advance
-
- ArrayList or IList?
by CrashPlaxton
- 2 Replies
- Last post
by James Curran
- All,
I have an odd problem. I am constrained to using the .NET framework 1.1, so generics are out. Can anybody point me to a good example of how to implement a dynamic array of objects No, this isn't a homework assignment, but I'm so used to using generics, I can't get my brain around this.
A trivial example of the object I wish use is below.
Class CarObj { public string CarName; pub
-
- SP2 causing error?
by pblecha
- 14 Replies
- Last post
by Gabriel Lozano-Moran
- I have a project that is having issues with SP2. It is a browser that was created to incorporate encryption and decryption protocols. I have done some minor fixes to the code since it was originally made, on my machine with SP2; now, the browser has exceptions on machines still running SP1 with the Explorer 6 browser object.
In order to recompile this application to run on these older machines,
-
- How to communicate with a c# and a c++ application?
by Amda
- 1 Replies
- Last post
by Peter Ritchie
- Hi, I want to send messages between a c# application and a c++ application (visual c++ 6.0). I've been reading articles on this topic on general and so far only managed to come across those that discussed mechanisms such as remoting and named pipes (both seem to be useful if both apps were built using .net) Is it possible to use windows messaging to communicate between a c# and a c++ application A
-
- The first time that a ActiveX is loaded in IExplorer causes a long delay
by arielito
- 3 Replies
- Last post
by RizwanSharp
- Hello,
I have implemented a complete application using the ActiveX technology and works correctly. But when the ActiveX is loaded in IExplorer the first time causes delay, of approximately 10 to 22 seconds and when the ActiveX is loaded for the second time then do not exist any delay.
In order to assure that this problem is not own of my application, I have implemented a simple Activex and w
-
- Code visible throgh Notepad?
by DarkEagle
- 9 Replies
- Last post
by DarkEagle
- Im kinda new.
A simple application should send an email.
After publish,when opening the file throgh notepad,most of the code is clearly visible.
Can I do something about it
-
- MS-DOS Program in Notepad???
by Beethoven5th
- 3 Replies
- Last post
by Beethoven5th
- Okay. Let's say I want to create a more advanced MS-DOS based program than I used to.
I know all the Pause commands, exit, start etc.
But compare that with progress bars, buttons and for me, my head spins to think about how to create them!
I am setting up a program that can allocate RAM and Memory so a computer can run faster. 2 problems:
1. Using the 'Debug' command in
-
- Overloading index operator
by Azurewrath
- 8 Replies
- Last post
by IsshouFuuraibou
- Hi, In the book I read, there is an example of an indexer like this:
public string this [ string index ]
{
get
{
if ( index.Length == 0 )
{
// Handle bad index
}
return this [ findString ( index ) ];
}
set
-
- how to display class member's in definition order (via VS8's watch window)??
by Stoj
- 4 Replies
- Last post
by BigG
- At present ... VS8's variable debug windows (eg. watch window, autos, context popup, etc) display the members of a class/struct in a sorted fashion based on the field names (alphabetically ascending). This is a problem/annoying for several reasons;
1. Debugging of stuctures with a sequential memory layout is *very* difficult when using the memory window. Since, the original class definition mus
-
- Unable to find SHObjectProperties
by Musafir
- 8 Replies
- Last post
by Gabriel Lozano-Moran
- Hi..
I am using the SHObjectProperties. I have written the code as:
public partial class Form1 : Form
{
[ DllImport ( "shell32.dll" , EntryPoint = "SHObjectProperties" , CharSet = CharSet .Auto)]
public static extern bool CallPropDialog( IntPtr hwnd, GetProperties dwType, string szObject, string szPage);
public enum GetPropert
-
- windows service accounts
by abcdefgqwerty2
- 7 Replies
- Last post
by abcdefgqwerty2
- Im making a windows service and there is an accounts box with options like user, local service, and local system. I have a 3rd party dll that is registered to my computer. Its job is to capture text from a screen and as local system this didnt work. I think I need to use user, and when it prompts me it says the account name is invalid or doesnt exist or wrong password even though im sure this is r
-
- urgent help requires for converter in c#
by microsoftfan
- 2 Replies
- Last post
by boban.s
- hello everyone... i require help... i have been given this project but dont know from where to start from..... Question :- A document library exists on a sharepoint site. Users will upload pdf and word files into the document library. Create a reusable component in c# (using API for sharepoint) which will read the files as and where they are uploaded, convert them into html and save the html vers
-
- Nested arrays
by Azurewrath
- 2 Replies
- Last post
by Azurewrath
- Hi,
Is it possible to nest arrays within arrays in c# If so, how
Thanks,
aw
-
- Please help!! AccessViolationException: Attempted to read or write protected memory. This is often an indication that other
by JpKagome
- 5 Replies
- Last post
by JpKagome
- I got this error: "AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt" when try to load a managed dll from C# which is a wrapper of an unmanaged dll. I have read many wesite but none work for me. Anyone knows what wrong with my code
This is the code for C++ managed wrapper:
#include "pcgint.h&
-
- Method capable of returning more than one type
by knji
- 8 Replies
- Last post
by Sean Fowler
- How does one go about creating a method that is capable of returning different variable types
Say, I want this method to be able to return an integer or string, based on a certain condition, evaluated within.
How can this be done
I realize that one can create a struct or create a class with these different types defined within. However, I do not want to return more 2 dif
-
- OutOfMemory question
by Sam Pearson
- 14 Replies
- Last post
by Peter Ritchie
- While messing around with some of the new C# 3.0 features, I wanted to see how many ulongs I could fit in a collection. To my dismay, it threw OutOfMemoryException long before I thought it would! Why isn't my program eating up more RAM before it craps out I'm only getting about 256MiB of RAM used up, even though I have over 3GiB.
static class RAMTest
{
static void Ma
-
- Kill process
by &#169&
- 2 Replies
- Last post
by Timo S
- I
have a program which lists all the processes in my computer. Now the
problem is that if I use it in the computer where the user is not
administrator or he/she doesn't have enough rights, it's impossible to
close the process with Process.kill() method.. :/ Is there any other
way to close the process In that way that it doesn't care about any
rights or problems when I close that process
T