|
Glad to be of service.
|
|
|
|
|
class c
{
void i1.function_some()
{
// body
}
void i2.function_some()
{
// body
}
}
class c1:c
{
c dd =new c();
i1 i=(i1)dd;
i.funcion_some();-----gets the function of interface i1 in class c
i2 i_d=new c();
i_d.function_some();---gets the function of interface i2 in class c
with the help of type casting i can get the individual definition of the functions
}
i think this will lead to some ambguity...!
|
|
|
|
|
No, the point I was making was that you are inheriting behaviour. Interfaces have no behviour thus the problem is different. I agree on the what constitutes Good and bad design and perhaps Microsoft could have came up with a MI solution that worked.
Keep your eyes open, you might spot alternatives.
|
|
|
|
|
You're kidding - VB.NET has multiple inheritance ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
kalyan_2416 wrote: i am not understanding y it is not there in c# and there in vb
I doubt that VB.NET has multiple inheritance because it is a limitation of the CLR rather than the language.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
That's what I thought, too.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
|
That's cool, I was just interested, because if you were right, it meant I was learning something for the night
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Again, a stupid downvoter on your side!
What are you doing to people here?
Are you sending spam mails over your account, or is it rude for somebody that you try to help?
Got my 5
All the best,
Martin
|
|
|
|
|
i m sorry for that
i happy for the response..
i am here to learn...
i am not rude on anyone as such!!!!!!!!!!
|
|
|
|
|
Got my 5 for that!
All the best,
Martin
|
|
|
|
|
Martin# wrote: What are you doing to people here?
I have no idea. I can only guess that I gave someone some advice they didn't actually want to hear.
-- Always write code as if the maintenance programmer were an axe murderer who knows where you live.
Upcoming FREE developer events:
* Glasgow: Agile in the Enterprise Vs. ISVs, Mock Objects, SQL Server CLR Integration, Reporting Services, db4o ...
* Reading: SQL Bits
My website
|
|
|
|
|
How to send the input to the crystal report form the main forms
|
|
|
|
|
Hi all,
I am having an doubt, dnt mistake if it's really silly or wrong. My doubt is i am getting some data's from database and binding it in dataset later to dataview. After binding in the dataview i am filtering the data using rowfilter, the data's which satisfies the rowfilter condition are moved to datagridview using dataset. My doubt, is it possible to get the remaining data's(alone) which does not satisfies the rowfilter condition to another dataset?
For eg:
Data's from database
ID Name
1 AAA
2 BBB
3 EEE
4 AAA
5 AAA
In the dataview rowfilter i am getting the names "AAA" and binding it to Grid, i want to get other names also to another dataset, is it possible to do it without using another dataview??
Thanks in advance
Know is Drop, Unknown is Ocean
|
|
|
|
|
You can use 'NOT' in your rowfilter to get the remaining rows
|
|
|
|
|
I am getting this exception
InvalidOperationException :--Could not connect to the remote machine
The code :
private static void GetProcessWithMachineName(string MachineName)
{
Process[] AllProcess = null;
try
{
AllProcess = Process.GetProcesses(MachineName);
foreach (Process Current in AllProcess)
{
Console.WriteLine(Current.ProcessName + "\n");
}
}
catch (ArgumentException Problem)
{
Console.WriteLine(Problem.Message + "\n");
}
}
Abhishek
Mumbai, India
|
|
|
|
|
You're trying to retrieve all processes on a remote computer. The exception tells you that the retrieval of those processes failed...
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
But how i get rid of this exception.??
Abhishek
Mumbai, India
|
|
|
|
|
Make sure you've entered the correct machine name, and your user has the proper rights...
Please vote my message! Click on one of the numbers beside ' Rate this message'.
.: I love it when a plan comes together :.
http://www.zonderpunt.nl
|
|
|
|
|
Hello,
I am trying to create a 3 dialogs where i can pass as a parameter a directory path, and the user will only be able to browse through that directory and its subdirectories (the user won't be able to browse "up" or change drives).
Anyone who can help me through this? or maybe a link to a reference that I can check? I've been searching but can't seem to find the right Google keyword.
Thanks!
~Rafferty
|
|
|
|
|
You can create your own dialog using a treeview to display the top level directory, and display any directories within that directory, etc. You could use the System.IO.DirectoryInfo class to retrieve child directories in the top level directory, and to find subdirectories in those directories, etc...
HTH
|
|
|
|
|
|
hello everybody... im having some problems fixing two errors i get after following someones instructions given on how to save recorded audio as a WAV file... im curious to see if someone can help me...
this project is a combination of two different projects
this one: http://www.codeproject.com/cs/media/cswavrec.asp?msg=1743046 (you can see the message regarding combining the two projects at the bottom)
and this one: http://www.codeproject.com/csharp/CSharpRipper.asp
ive put everything into a zip file and threw it on my server here:
http://mike-soft.com/code/cswavrec.zip
i compiled it using microsoft visual c# express edition... where i get 11 warnings and 2 errors... the errors are as follows:
The best overloaded method match for 'Yeti.MMedia.WaveWriter.WaveWriter(System.IO.Stream, WaveLib.WaveFormat)' has some invalid arguments
and
Error 12 Argument '2': cannot convert from 'WaveLib.WaveFormat [C:\cswavrec\WaveNative.cs(25)]' to 'WaveLib.WaveFormat [c:\cswavrec\yeti.mmedia\bin\Release\yeti.mmedia.dll]'
any help is GREATLY appreciated, as this will be used in a small educational radio station
|
|
|
|
|
kb1ibh wrote: Error 12 Argument '2': cannot convert from 'WaveLib.WaveFormat [C:\cswavrec\WaveNative.cs(25)]' to 'WaveLib.WaveFormat [c:\cswavrec\yeti.mmedia\bin\Release\yeti.mmedia.dll]'
Looks like you have two classes called WaveLib.WaveFormat, and the instance you have, isn't from the place the dll is expecting.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
ive found two classes by that name
if you look at the solution, there are two projects within it, one which has a reference to the other, and the class exists within both of those projects, but the class is exactly the same in both... i dont know if that would cause this...
|
|
|
|