-
- How to get the last modified date of the application.exe?
by Can-Ann
- 4 Replies
- Last post
by sirjis
- I would like to display the last modifed date of my application.exe in an about form.
I am not sure if I can get this from the assembly, or if I have to look at the folder.
Any guidance and sample code would be appreciated.
-
- inlining compareTo(int a,intb) { return a-b; }
by Itai Frenkel
- 13 Replies
- Last post
by Itai Frenkel
- Hello,
I am writing a class that implements the IDictionary<TKey,TValue> interface and it extensivly needs to compare two "TKey" types. (using Microsoft Visual C# 2008 Beta 2)
The problem is that the resulting assembly code in the common case, in which TKey is an integer is far from being optimized, and it is definitly not inlined (checked the release code after disab
-
- Assembly Loading Error 0x80131040
by j.skinner
- 2 Replies
- Last post
by Peter Ritchie
- Hi there, i hope someone can help me with this
I am using C# in VS2005 and trying to make use of the "Data Access Application Block" version 2
I have created a small test application that to do the testing.
If my application and the Common, Object and Dat modules are not signed DAAB runs OK but as soon as I sign them I get the following error:
***************************
-
- Index out of Range Exception
by Deeps_123
- 3 Replies
- Last post
by Evan Hoff
- I am searching for a prticular character in a string using IndexOf() method. But i am getting a Index out of range exception . Can anyone tell me why this exception is coming . Please help me out .
Thanks in advance
-
- Help with: "Unable to cast COM object of type..." error.
by PhrankBooth
- 3 Replies
- Last post
by PhrankBooth
- I get the error below
when I call many of the HTML... components, such as
mshtml.HTMLAnchorElementClass or mshtml.HTMLDivElementClass. for example: foreach (mshtml.HTMLAnchorElementClass aAnch in aItems) When I do that the program dies immediately. and this error below is posted: Unable to cast COM object of type 'System.__ComObject' to class type
'mshtml.HTMLAnchorElementClass'. COM components
-
- Updating a DLL during application execution
by glosrob
- 7 Replies
- Last post
by glosrob
- Apologies if this is the wrong forum!
Let's say I am writing a programme that will look up recipe's and show the ingrediants needed for each depending on the particular recipe. The programme itself will be triggered when I drop an XML file in to a folder and trigger a file event. Each recipe is stored in its own DLL.
A reference to the recipes in each DLL are stored in a database so this
-
- Error while using stackalloc in C#
by YogeshC
- 2 Replies
- Last post
by nikov
- Hi,
I am working on a project in which i am writing unsafe code in few public methods in a public class. i declared the method as unsafe and added " using System.Runtime.InteropServices; " namespace as well but when i am building my solution i an getting this error:
1. Invalid expression term 'stackalloc'
2. ; expected
3. Invalid expression term 'byte'
4. ; expec
-
- keyboardbuffer c#
by marcbo
- 3 Replies
- Last post
by micvos
- Is there a way to see in c# what is in the keyboard buffer (number of characters and their values)
When i am in the eventhandler keydown I want to know when I leave the keydown eventhandler if there are still chacters being pressed (so what is in the keyboard buffer).
-
- Sample scenario for using Protected access specifier
by shinu
- 4 Replies
- Last post
by shinu
- Hi, can any one give me a sample scenario, where we shold use protected access specifier for a variable or function. I know , it s definition.it s meaning..i am still confused about where we shold use this regards shinu
-
- Manipulating another program.
by Napalm-uk-RTW
- 5 Replies
- Last post
by IsshouFuuraibou
- Hello and thank you for taking an interest in my thread. Now i need some help with a small application i am trying to write, i hope somone out there can be of help. This is what im trying to do, firstly i have an application that i need to manipulate. This application is a dedicated server UI for a computer game that i run. The UI has some text box's buttons and some drop down list box's and such
-
- Intellisense
by atarikg
- 4 Replies
- Last post
by atarikg
- Hi,
On developin,i need to write some javascript code using .js file . But on coding in this type of file ,i am talking about javascript include files, there is no intellinsense appears and i need to see. How to show or active intellisense for this type of files in Visual Studio 2005 and i've installed service pack 1 for visual studio and the last thing is i am using Windows Vista Ultimate Edit
-
- Global Assembly Cache
by George2
- 6 Replies
- Last post
by George2
- Hello everyone,
I have used gacutil tool to install my COM dll into Global Assembly Cache,
http://msdn2.microsoft.com/en-us/library/ex0ss12c(VS.80).aspx
But I am not sure whether I need to manually copy the actual assembly dll into some directory (like Windows\System32 Windows ) after running this tool Or gacutil tool will automatically copy (install) the assembly for me -- so I only need
-
- Long save time while working with visual studio 2005
by d1sturbanc3
- 4 Replies
- Last post
by d1sturbanc3
- Topic moved form VS Extensibility forum:
d1sturbanc3 wrote:
I'm not sure if this problem is going to the right forum byut I'm currently using Visual Studio 2005 on Windows XP. It's a decent computer 1 gig of ram and about 300 gig of hard drive space. I haven't really defrag my hard drive for a while, and plan on doing it tonight, but the save/auto save time from visual studio
-
- Insert into String array
by Dan Crowell
- 3 Replies
- Last post
by Danny Crowell
- Is it possible to add values to a string array I want to do something like this:
String [] myArray;
myArray.Add( "Zero" );
myArray.Add( "One") ;
If is is possible, what is the syntax Thanks in advance.
-
- Why C# is called C# ?
by duanerb
- 5 Replies
- Last post
by AlexBB
- Does anyone know why such a name for C# what does C# stand for I search throw the web but didn't find any suitable response for this important question Renaud PD : perhaps I didn't post in the right forum, if so, could you move this topic
-
- Creating a delegate
by Gert-Jan van der Kamp
- 10 Replies
- Last post
by micvos
- Hi all, i've looked at a lot of places but haven;t found a consise answer yet:
I generate code from a repository, where all the methods have an Id and unique Name.
for instance
Code Snippet
Class Generated
{
public double A(int Year, int Scenario)// Method Id 10
{
...
}
public double B(int Year, int Scenario) // Method Id 20
{
.
-
- how to run a c# program visualstudio.net 2005 edition
by sri111
- 4 Replies
- Last post
by sri111
- Im new to .net technology.I have visualwebdevoper 2005 express edion .I dont know how to run c# programs using this edition.could anyone pls help me
-
- Different between methods
by Azurewrath
- 2 Replies
- Last post
by Azurewrath
- Hi, I was wondering why methods are seperated like this : 1. Array.Method vs 2. myArray.AnotherMethod So some methods are say in the Array namespace while others can only be used directly on an array. Is this because #1 methods are static while other actually need an instance to be accessable Thanks, Aw
-
- Printing PDF from specific printer tray problem
by Rutger Otto
- 7 Replies
- Last post
by sapz
- Dear all, For a C# project I would like to be able to print PDF documents from specific printer trays. Up to now I did succeed in doing half the work. 1. I can print PDF documents by doing a DllImport of winspool.drv and send the raw bytes to the network printer. By doing so, the PS/PDF capable printer understands the PDF bytes and prints the PDF flawlessly albeit using the default printer tray. I
-
- Simple Generics Question
by Azurewrath
- 14 Replies
- Last post
by IsshouFuuraibou
- Hi all, I am trying to write a Sum function that will work on integers, like Sum(1,2,3,4,5,6), for floats, etc. I wrote it like this: public static T Sum<T> ( T first, params T [ ] rest ) where T : IComparable { T result = first; foreach ( T r in rest ) { result += r; } return result; } But VS says it can't perform += on values of type T. Anyone know
-
- Serial port class fast memory leak
by Dan Walmsley
- 14 Replies
- Last post
by Dan Walmsley
- I have a program which uses the serial port class. It listens to a stream of data coming from a microcontroller bas gas sensor. The stream contains information such as serial number and other values.
I use the receive data event, and use this to invoke a new eventhandler called ReadData to parse incoming data.
The data parsing is done be string manipulation, remove and replace method
-
- setting cultureInfo in AppDomain level
by Karthikeyan
- 1 Replies
- Last post
by Peter Ritchie
- hi all
I knew that its possible to set cultureInfo for any particular Thread. But is there any way to set cultureInfo for the entire Appdomain or process I'm having a "windows service" hosted remoting service, and I'm applying the cultureInfo for the Windows service's. But its not getting applied for my actuall Service (Business layer) which is a .NET DLL. So, I am thinking of applyin
-
- Sending CTRL Keystrokes To External App With SendMessage Problems
by DanielL8
- 5 Replies
- Last post
by DanielL8
- I'm trying to send CTRL-A to an application (notepad, for example) - I can send CTRL-V just fine, but sending some other common CTRL messages, like CTRL-F (find), I can't get working either.
SendMessage ( new HandleRef ( this ,notepadHWnd ), ( uint ) WindowsMessages . WM_CHAR , ( IntPtr )0x16, ( IntPtr )(1)); //works just fine. but Changing 0x16 to anything else doesnt' seem to work.
-
- I can't run VS 2005 on vista
by Marcin Kruszynski
- 6 Replies
- Last post
by TaylorMichaelL
- I have installed Vista Ultimate from MSDN. On clear Windows (without any optional drivers and programs) I have installed
Visual Studio 2005 Professional EN. But when I try opening Visual Studio it always closes !
In Event log is description like previous posts:
Faulting application devenv.exe, version 8.0.50727.42, time stamp 0x4333e699, faulting module ntdll.dll, version 6.0.6000.16386,
-
- Make a File readable only by my application
by LauraB
- 11 Replies
- Last post
by LauraB
- HI, I'm developing a windows application in c# and i use video with DirectX. My problem is that i don t want the video to be readable by classic players and only by my program. I ve try to use cryptography but it take to long to charge the video. If anybody as an idea... Sorry for my english, and happy new year, Laura.