-
- Using C++.net Interfaces in C#
by SDX2000
- 2 Replies
- Last post
by SDX2000
- Hi, Please consider the following interface in C++.Net
Code Snippet public __interface IAnimal { void Eat(String^ food); };
when I try to implement this in a C# class...
Code Snippet class Dog : IAnimal { ... }
It gives me an error "error CS0509: 'Dog': cannot derive from sealed type 'IAnimal'" What am I doing wrong here
-
- Using structs without new
by Azurewrath
- 5 Replies
- Last post
by jason zhu
- Hi,
I have a struct like this:
public struct Point2
{
public int intX;
public int intY;
public int X
{
get { return intX; }
set { intX = value ; }
}
public int Y
{
get { return intY; }
set { intY = value ; }
}
public Point2 ( int intX, int intY)
{
this .intX = intX;
this .intY = intY;
}
-
- how to give online updations for My own software?
by muthuraja
- 4 Replies
- Last post
by ahmedilyas
- I have done one desktop application in visual c#, i want to give online updations for that software . i need full flow and coding for this.
-
- how to let directSound continue playing .wav while application lost focus
by c@i
- 1 Replies
- Last post
by c@i
- i m using directsound to play a .wav file, but the sound will mute if the application lost focus.
my question is, how to make it continue playing even applicatin lost focus
-
- I would like to ask about Face Detection
by ki_ki3939
- 5 Replies
- Last post
by Timo S
- How to use c#.net for face dection do you have an example code please let me know
thanks
-
- Working with zipped folders Remotely
by zoddiax
- 2 Replies
- Last post
by zoddiax
- Thanks Sir
It worked.
I have one more query.
I want to know how can i extract the files from zipped folder using C#
Thanks.
-
- constructor question (contains some managed C++ code)
by nattylife
- 3 Replies
- Last post
by CommonGenius.com
- lets say i have the following created in a .net assembly:
public class A { public int n_myInt; }
public class B { public string s_myString; public A o_myAObject;
public B() { this.o_myAObject = new A(); } }
when i try to create any object of class B in a C++ app compiled with /clr, ive had to create a new Class A object on the managed heap in my code like something similar to:
-
- Problem when debugging
by iluvai_33
- 4 Replies
- Last post
by marco.ragogna
- Recently, a constant error occurs when i try to debug a project in Visual C++ 2005: "Unable to start program <.exe name> The system cannot find the specified file" Does anyone know a workaround I really need this C++ compiler
-
- Create my own mp3 stream
by Madok
- 11 Replies
- Last post
by Madok
- Is it possible to create your own mp3 so you could theoretically create your own internet radio station
-
- What is delegate in c#?what is the use of that delegate?
by Vsbabu
- 3 Replies
- Last post
by Figo Fei - MSFT
- i want delegate concept in depth. can u help me please
-
- Passing an inherited class as 'T' to a generic container.
by Jim Tomasko
- 7 Replies
- Last post
by Jim Tomasko
- I'm having trouble finding out how to use a general purpose generic container I wrote as a member of another class which wants to hold any class type based on a common base class.
The first set of code below shows 4 seperate classes, RNode is a generic class, TreeControl has an RNode<TreeItemBase> member, and a "Root" property to access it, TreeItemBase is a control (not really
-
- Calling a button_click
by xlthim
- 14 Replies
- Last post
by Pace
- OK - I've been all over the web for the past couple of hours looking for a program, but nothing is fitting what I need.....
I have 2 computers. On one (server), I press a button and a string is generated. I need to get this string to the other computer (client) via networking so the client will do something.
Every program I have looked at seems like I have to have a 3rd computer to be the se
-
- How can I create an empty XmlElementString with XmlWriter
by LeeC22
- 8 Replies
- Last post
by Andrej Tozon
- I am trying to dump out a collection of values from an editor I am writing. There are some elements that I need to write out, even though they are empty. Whenever I try something like...
writer.WriteElementString( "variable" , "" ); or writer.WriteElementString( "variable" , string .Empty);
I get <variable /> instead of <variable></variable>
-
- System.Threading.ThreadAbortException
by Wiltek Ghozali
- 14 Replies
- Last post
by Matthew Watson
- How to avoid this error, when closing my application i have put the thread codes into try{}catch{}, but this error still shown when aborting the thread. See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.Threading.ThreadAbortException: Thread was being aborted. at MIPSearch.FormMain.For
-
- using c++ dll in c#
by ShaCo
- 4 Replies
- Last post
by IsshouFuuraibou
- hello all,
I need to use a dll file that was written in c++ in my c# prog.
(im a little fresh around this so any help will be appriciated)
1. when the original method expects a method name (pointer to that method)
is it ok to use delegate in the prototype
2. one of the methods returns a handle, which im supposed to send to other methods as is
but the prob is that the hand
-
- WindowsControlLibrary security problems
by Dave Fooks
- 6 Replies
- Last post
by Dave Fooks
- Hello, thank you for your help
Im programming a website in c# and I have made a WindowsControlLibrary that can read the clients files. The problem is that for this to work the security on IE has to be set to Full Trust, however by default the security is set to a low trust which my clients wont be allowed to change.
If I get the WindowsControlLibrary digitally signed what will actual
-
- How do I send a message/event from my thread to a form that is open?
by Matthew Galligan
- 2 Replies
- Last post
by DQM
- Hey folks
I've got a global static class that contains my database functions as well as the database objects. In it I have a procedure that launches a thread that goes out and compares a copy of the currently-displayed database with a up-to-date copy from the Database server.
I know when the data has changed and I need to re-query, however how do I get my thread to signal my form somehow Do
-
- String compa Cannot implicitly
by NoEgo
- 9 Replies
- Last post
by James Curran
- I cannot get the syntaxt to work on the string compare here. I don't know why I keep getting a message saying it's trying to conver an integer to abool in my String.Compare:
foreach (string excelDescription in exceldata) &
-
- rename file without move or copy?
by al-147
- 5 Replies
- Last post
by Matthew Watson
- I have a system which waits for the windows rename event to be fired before it starts reading files. So i need the ability to rename the file in C# so it will cause the same event. If i use file.move/copy....it doesn't cause the correct event. I'm trying to avoid using a powerscript or bat file to do this.......can i do it using base windows functions by hooking a dll Thanks..
-
- How to specify the output filename extension
by k.m
- 5 Replies
- Last post
by Jose Escrich
- I have a c# project that builds a dll. But i would like the primary output file to have a different extension. Is there a way to specify the output filename extension from within the Visual Studio IDE
The c# compiler has a command-line option to specify output filename. Is there a way to pass compiler options from the IDE, or possibly an assembly level attribute
-
- increase outlook message length using c#
by aipet
- 7 Replies
- Last post
by aipet
- Hi,
question is how to increase outlook message length using c#. suppose i have a code like this:
string space = "%09";
string newline = "%0D%0A";
string body = "Hello"+newline+"Hello"+space+"Hello"+space+"Hello"+newline;
for ( int i = 0; i < 5; i++)
{
body += body;
}
System.Diagnostics.Process.Star
-
- Static Class Overhead
by Rick Edwards
- 8 Replies
- Last post
by micvos
- Hi,
We were doing some refactoring here and had a discussion concerning static classes. Basically we have a set of classes with a bunch of methods in them that refer to strings. Now I have recommended that all strings should be defined as constants at the top of each class so that if a string needs to change we only change it in one place and not have to go through every method finding every in
-
- help with loop
by cheatcountry
- 3 Replies
- Last post
by wirol
- I am trying to create a loop that will run 26 times (one for each letter in the alphabet). I have a string that contains all of the letters in the alphabet and I want to be able to run my function that I created once for every letter in the alphabet. How do I do this
-
- USB detection
by Cavetroll
- 1 Replies
- Last post
by Mario Cossi
- Is there any way to detect when the user inputs a USB device Also can you stop the windows thing that comes up and asks you what action you want to take when you put a USB device in
-
- FAXCOMLib
by Carmen Cerino
- 6 Replies
- Last post
by kangkang
- Has anyone had any luck to get faxing working with C# Here is the code I have
using System;
using FAXCOMLib;
namespace ConsoleApplication3
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
public Class1()
{
}
public void FaxDocument(String TheFile, string faxnu