|
Hi, how about:
using System.Collections.Generic;
using ListListInt=System.Collections.Generic.List<System.Collections.Generic.List<int>>;
class myClass {
ListListInt myListOfListsOfInts=new ListListInt();
}
-- modified at 7:18 Thursday 14th June, 2007
Luc Pattyn
[My Articles] [Forum Guidelines]
|
|
|
|
|
Thanks for the reply, but the alias ListListInt is available only in the scope of the file, not through the whole project. And I don't want to define it everywhere I use it.
I searched answers to that problem, and the only way to do it is to create a new class :
public class ListlistInt : System.Collections.Generic.List<System.Collections.Generic.List<int>>
{
}
Maybe I'll do it that way, and create a "header"-like file where I store all those kind of "alias" classes...
|
|
|
|
|
Gatchan wrote: the alias ListListInt is available only in the scope of the file
same is true if you insert a typedef in a C or C++ source file...
Gatchan wrote: create a new class
OK
Gatchan wrote: a "header"-like file
I suggest you either put such classes in the same namespace as your current project;
or make them part of a new namespace that lives in a separate reusable class library
project (and DLL file).
|
|
|
|
|
I am trying to access (read) registry of a remote system. I am using RemoteRegistry but is giving Exception : Attempted to perform an unauthorized operation.
So i want change the permission to read registry programmatically.
Plz... reply soon...
Regards.
Devesh Mishra
|
|
|
|
|
Hi all,
I'm Newbie. How to passing parameter's values from Form to crystal report?
Just say I have some textBoxs. I want TextBox's value pass to crystal report so that i can print them to printer in the right margins.
Please Help.
Thx
|
|
|
|
|
Search CrystalReport push method Click Go button on the top panel of CP
You will get the answer
ALL THE BEST
Regards,
Sylvester G
sylvester_g_m@yahoo.com
|
|
|
|
|
I like it!
|
|
|
|
|
|
Sylvester George wrote: Trying to turn your eyes on me
I guess my wife would have some problems with that!
|
|
|
|
|
|
Hi all,
Sub TestAdd()<br />
<br />
Dim miDocSrc As MODI.Document<br />
Dim miDocDest As MODI.Document<br />
<br />
Set miDocSrc = New MODI.Document<br />
Set miDocDest = New MODI.Document<br />
miDocSrc.Create "C:\document1.tif"<br />
miDocDest.Create<br />
<br />
With miDocDest.Images<br />
.Add miDocSrc.Images(0), Nothing<br />
.Add miDocSrc.Images(2), Nothing<br />
.Add miDocSrc.Images(1), miDocDest.Images(1)<br />
End With<br />
<br />
miDocDest.SaveAs "C:\document2.mdi", miFILE_FORMAT_MDI<br />
<br />
Set miDocDest = Nothing<br />
Set miDocSrc = Nothing<br />
<br />
End Sub<br />
<br />
How could i convert above the only Bolded code into c# .NET
thanks in advance
|
|
|
|
|
hi surezu
try this:
miDocDest.Images.Add(miDocSrc.Images(0), null);
miDocDest.Images.Add(miDocSrc.Images(2), null);
miDocDest.Images.Add(miDocSrc.Images(1), miDocDest.Images(1));
regards
|
|
|
|
|
hi
i need to attach a audio file in my application .plz help me how can i do this
|
|
|
|
|
If it's a wav file you can use the classes of System.Media.
|
|
|
|
|
plz tell me is this necessary that there must be an audio player in my application.or without an audio player i can play a wave file(only by giving the path of that wavefile) ?
thanks
|
|
|
|
|
Hi,
you can play a sound file using P/Invoke:
public static void PlaySoundFile(string fileSpec) {
int res=PlaySound(fileSpec, 0, 0);
if (res==0) log("Failed to play sound "+fileSpec);
}
[DllImport("Winmm.dll", CharSet=CharSet.Ansi,
CallingConvention=CallingConvention.Cdecl)]
static extern int PlaySound(string filespec, int hModule, int dwFlags);
-- modified at 7:20 Thursday 14th June, 2007
|
|
|
|
|
This "sounds" cool. I can't wait to get home and try it. If it works, you got my five.
|
|
|
|
|
Hi everybody,
I'm new to learn C#. I want to create a datagridview to so some columns with formular as excel. Ex: column3 = column1 + column2.
Can someone help me.
Thank so much.
|
|
|
|
|
I was wondering where to start with mic input with C#. I am doing a project on pitch extraction in real time (which will later become a guitar tuner) and so need to be able to capture sounds with a microphone.
Thanks
|
|
|
|
|
|
Thanks that'll help a lot.
|
|
|
|
|
|
is there any way to access the private data of a class from the other class. like friend functions in c++
Qaiser
|
|
|
|
|
Hello,
I think you are looking for a "protected" member, which only can be accessed from inherited classes.
All the best,
Martin
|
|
|
|
|
No No ... i just wana ask "is there any way to access the 'private' (not protected) data of a class from outside the class"
|
|
|
|