-
- C# and VB.NET, which can be learned faster?
by Artil
- 10 Replies
- Last post
by Gabriel Lozano-Moran
- Could anybody help let me know which language I should begin with C# or VB.NET
-
- Executing Code During Installation
by Nitsua
- 4 Replies
- Last post
by Peter Ritchie
- Hi Again, For my current project I need to execute some custom code after the program installation has already been preformed. Unfortunately, I have no idea how to accomplish this. I am building the installer using Visual Studios 2005 and any help would be greatly appreciated. Thanks
-
- Extending default classes
by Azurewrath
- 14 Replies
- Last post
by Azurewrath
- Hi, Anyone knows if I can extend existing .NET framework classes Like so: Array.ExistingMethod Array.MyMethod Also can I overload a default existing method Like so: Array.ExistingMethod (int n) Array.ExistingMethod (string s) // my version You can answer for C# 3.0 if you want. Thanks, Aw
-
- Can you create options dialogs like in most Windows programs?
by compro21
- 3 Replies
- Last post
by compro21
- Is there a way to pop up an options box in a program that will "freeze" the program like most windows programs do When you open the options dialog in Word, for instance, it will not let you get back to word document without hitting ok or cancel. If you try to click back to the document, the program will bing and the window will flash. Also, the window always stays on top - which is a nic
-
- Pass the value of one string to another?!
by David_Wright
- 8 Replies
- Last post
by David_Wright
- Why is my code saying that it is unable to locate a 'member', when it is sitting right there in my code!
-
- How to find which week we are in ?
by thukralz
- 2 Replies
- Last post
by .NETPhreak
- Hello,
How can we find out which week or Year we are in now
Is there any function to achieve that ...
Thanks
-
- memory stream to DB
by ashk1860
- 3 Replies
- Last post
by GavH
- hi
I am trying to store a memoryStream to db and again retrive it. every thing works Ok but the problem is when I retrive the file I have extra blanks between each character. for example if I store "Hello" I will retrive it as "H e l l o" and I can not undrestand why.
I use the folowing methods to store and then retrive as a txt file:
public void memorystreamToDb()
-
- What exactly does VS 2005 when I select "Register for COM Interop".
by Leonid L
- 9 Replies
- Last post
by Azh_Ali
- I have a C# project in Visual Studio 2005 , which compiles into a dll. It used to have the option "Register for COM Interop" set, and everything worked fine. In order to build this project, the user requires local admin privileges. We have a test user whos role is to get the latest code, build it and run a series of test each night. Our sys admin does not want to give that user administ
-
- How to make a program unstoppable
by andriscs
- 14 Replies
- Last post
by andriscs
- Hi, I have a program that has two goals: start with Windows (XP) and always keep running until Windows shutdown. The user is a limited user of Windows XP. How can I start the program that the user won't be able to terminate it with task manager or taskkill I thought about starting my program as a Windows service (I am not aware of what can be started as a Windows service - is it possible to start
-
- 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&
-
- Generic Collections
by koder monkey
- 4 Replies
- Last post
by Kam Lagan
- Hi Peoples,
I want to write my own custom collections. Should I inherit from List<> or Collection<>. What are the differences
Also:
public class MyCollection<T> : List<T> where T : MyClass
{ }
This collection works fine. Until you want to use the cool features like ConvertAll<>. ConvertAll<> wants to return as List<T>. I want
-
- Class Design
by devstuff
- 3 Replies
- Last post
by devstuff
- Hi all I am having one of those days where I really don't think my class design is up to standard so I thought I would ask your opinion. So far I have split my application into the following classes employee - CheckCredentials(username, password) - Update Name(first, second) stock - CheckItem(barcode) // Checks if the item is in the stock manifest - SellItem(barcode) // Removes stock item
-
- 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
-
- about interface
by mailtoashish
- 2 Replies
- Last post
by Ishwar
- I want one real time example where we only use interface. Where virtual, purevirtual, overriging all are going to hang. That is we are bound to use interface only nothing else. c++, vc++, c# respective language.
-
- cannot find dll
by brybot
- 13 Replies
- Last post
by brybot
- I have a program written in C# and a DLL written in C++. The program works fine on my computer if I place the DLL in the same folder as the executable. I can even change the location of both files and it still works fine on my computer. As soon as I put it on another computer, I get an error saying it cannot locate the DLL. I have tried adding it as a resource which doesnt work, tried putting it i
-
- Custom Viewer for a custom VS2005 Addin
by Hari Ramanathan
- 1 Replies
- Last post
by TaylorMichaelL
- Hi All,
I am creating an Add in for Visual Studio 2005. Its functionality is to list all the issues raised by a tester and on clicking an line item, in the center code/form designer viewer area, the issue details need to be displayed but i am stuck here. I am able to bring a toolwindow and a listview inside it but i am not able to bring a new tab in the body or in the viewer area, like how i
-
- Calling C++ Method from C# error: No overload of 'Method' takes 'n' arguments.
by Stefan.F
- 2 Replies
- Last post
by Stefan.F
- Hello, I have to call a flat C-API from a .NET project. The project is mainly in C#. My approach to access the C-libary was a managed C++ wrapper which hast access to the flat API. I want the C++ wrapper to contain public methods which can be called from C# and which will work on C# objects. Here is an example: C++ class: public ref class A{ public void MyMethod(Datastructure d){ } } C# classes: p
-
- Question about threads
by OldCDude
- 4 Replies
- Last post
by Dreedle
- I created a socket and am asynchronously listening to a TCP port. This calls a method in another thread when a connection comes in, which puts the data into a buffer and sets a boolean variable to true. Is it safe to fill a buffer and set a boolean value from this other thread If so, how can I set an event when a boolean variable is set to true (in the main thread) to alert my code that data is t
-
- C# application without .NET Framework
by mladjoboy
- 13 Replies
- Last post
by IsshouFuuraibou
- Is it possible to make the dll-s file in C# which will work on machine without installed .NET Framework
Is there any software which can resolve this problem I find on Google Salamander .NET Linker, Native Compiler and Mini-Deployment Tool
But I didn't try to use it.
-
- sending/uploading a file to a server
by caesarkim
- 2 Replies
- Last post
by caesarkim
- I need to write a simple C# application testing the speed of uploading a file to a server via HTTP instead of FTP. The target receiving a file will be web application using ASP.NET.
But the problem is that it(client side) should not rely on the ASP.NET framework. I want to execute it as an executable file (exe). I can't find a sample like this. I am new to C#.
I am not sure if there is any r
-
- move file to a directory
by Emy_P
- 5 Replies
- Last post
by Emy_P
- Hi everyone, i¡¯d like to move files from a directory to another directory, with move() or copy() i can only move a file to another file. Can you tell me how i can solve this problem please. Thankyou
-
- Reading from a client-side CAC
by Newmanb1
- 1 Replies
- Last post
by Friendly Dog
- I'm developing a web app and I'd like to be able to populate data in a web form from a client side CAC/Smart card. I'm using .NET 2.0 and C# and I thought that there had been some improvement in how to do this since .NET 1.x, but I can't seem to find any documentation on how to do it in the new environment.
Has anybody done this kind of thing in 2.0 and can you help me find documentation for it
-
- Compiler Optimizations
by marekuana
- 12 Replies
- Last post
by Peter Ritchie
- Hi! I would like to know one thing about compiler optimizations: Given Scenario: I have a class for example Vector3 that has a function length.Like this:
Code Block
public float Length() { return (float)Math.Sqrt((x * x) + (y * y) + (z * z)); } Now i write in my code something like this:
Code Block
Vector3 vector1 = new Vector3(5,5,5); float a = 3.0f;
-
- regarding the application size
by mohasad
- 6 Replies
- Last post
by TilakGopi
- hi , i have been in the development of Smartphone game applications. after the creation of the setup file for my application , the size of the setup is around 500 KB . is dis creates any problem, or it is ok to run on the device . thanks sadiq
-
- No Intellisense present on Indexer
by tkrasinger
- 4 Replies
- Last post
by Cyrus Najmabadi
- Could anyone reproduce that and someone explain me what to do
Code Block
public class MyCollection : List < object > {
public MyCollection this [ String key] {
}
public void AMethod() {
MyCollection col = new MyCollection ();
col[ "KeyValue" ]. // no intellisense present
}
}