|
Thanks. I will take a look. BTW, do you have any idea about my original question ?
|
|
|
|
|
I think the GC class exposes a bunch of profiling metrics that might be worth looking into.
|
|
|
|
|
N a v a n e e t h wrote: decimal takes 12 bytes. Here we have two decimals, hence 24 bytes. And the variable sample, I believe it takes 4bytes
The size of the pointer (reference) is not included. In this case, there is a pointer, but for a struct, there would not be.
|
|
|
|
|
This question is related to MS Visual Studio 2005 in particular but please bear with me.
If I create a new project, let's say MyProject , Visual Studio creates a folder with the name MyProject for the solution which in turn contains a subfolder with the same name for the project. It also creates all the neccessary files and forms using that name.
Now, let's say I want to change the name of the entire solution to RealName . I can change the name of the project and even the solution, I can change the default namespace and everything. The only thing that I don't know how to change is the directories as described above.
Is there anything that I need to know in order to change the folder names so that it looks as if I named the project RealName from the very beginning?
|
|
|
|
|
Rename the folders in the file system. If the solution can't find the projects as a result, remove and readd them.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Doh! That was too easy. Thanks.
|
|
|
|
|
Hi,
I created an application that plays sound files with Windows Media Player. I need to find so examples on how to read the amplitude and pitch of the media being played. Can someone show me some examples or give me some helpful links please?
Thanks
|
|
|
|
|
You'll be looking for libraries to perform a fast fourier transform.
|
|
|
|
|
Any reference to any of the libraries please?
|
|
|
|
|
Thats more of a question for google. I don't know any managed ones off the top of my head.
|
|
|
|
|
|
Can anybody point me to a good link concerning custome project templates?
I would like to create a sort of wizard that let's you choose a couple of options and creates a project with references to custom dll's accordingly.
(I tried googling, but without any descent keywords it's hard to find anything usefull)
thanks.
|
|
|
|
|
|
Hello everyone:
I want to call MS Picture Manager to view some pictures and do some actions(e.g.
go forward and go back) in my application,but i cann't find any com object about MS
picture manager like PPT.
Help me, thanks~
|
|
|
|
|
I doubt one exists. There's sure no rule that says one has to.
Why not just show the images yourself ? It's kind of trivial.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
hi,
i know this is very trivial, but it's the request from my client. so i must do my best to try it.
thanks for your attention
|
|
|
|
|
Why does your client want the picture manager to view it ?
Athrun.Du wrote: so i must do my best to try it.
You will soon learn that part of your job is to educate ignorant clients on what is and is not possible. Offer an alternative ( that you'll write something to show a slide show ). I doubt they want the picture manager for any special reason, they just assume that that's the obvious way to get what they want.
Christian Graus
No longer a Microsoft MVP, but still happy to answer your questions.
|
|
|
|
|
Agree, perhaps this is the only thing i can do
|
|
|
|
|
Sometimes you do stuff because that is what you want. You dont need to justify it....
This does what you want. It assumes you are clicking on a data grid with two columns in a DataTable, the Directory and Filename.
private void dgImages_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
try
{
string sPictureManagerExe ;
string sValue;
int iValue;
string sImageFullPath;
sValue = e.RowIndex.ToString();
iValue = Convert.ToInt16(sValue);
sImageFullPath = _oDt.Rows[iValue]["Directory"].ToString();
if (sImageFullPath.EndsWith("\\") == false)
{
sImageFullPath += "\\";
}
sImageFullPath += _oDt.Rows[iValue]["FileName"].ToString();
sPictureManagerExe = findPictureManager();
sImageFullPath = "\"" + sImageFullPath + "\"";
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo.FileName = sPictureManagerExe ;
proc.StartInfo.Arguments = sImageFullPath;
proc.Start();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
}
private string findPictureManager()
{
const string keyName = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\ois.exe";
string sValue = (string)Registry.GetValue(keyName,"","NotFound");
return sValue;
}
|
|
|
|
|
I have DataGridView namely datagridview1 with having three columns. Now i want to add rows on DataGridView that is specific to datagridview1.
I don't want to make Generic row and add like
DataGridViewRow row = new DataGridViewRow();
I want to make row that is Specific to my datagridview1.
Thanks in Advance.......
|
|
|
|
|
Piyush Vaishnav wrote: Now i want to add rows on DataGridView that is specific to datagridview1
What is so specific ?
simply add a row :
DataGridView a = new DataGridView();
a.Rows.Add(...); OR a.Rows.AddRange(...); OR a.Rows.AddCopy(...);
Have Fun
Never forget it
|
|
|
|
|
could anybody tell me,
How to load C# dll into the C# program runtime without adding reference to the project.
that means if dll is not present then also project should work.
Thank you.
Truth Is The Simplest !!!!
|
|
|
|
|
Neo Andreson wrote: How to load C# dll into the C# program runtime
Check Assembly.LoadFrom()[^].
Neo Andreson wrote: if dll is not present then also project should work
I am not getting what you meant.
|
|
|
|
|
maybe the DLL encapsulates some features and if not there the application must still work, but the features in the DLL disabled?
Harvey Saayman - South Africa
Junior Developer
.Net, C#, SQL
you.suck = (you.passion != Programming)
|
|
|
|
|
Hi all, it's me again.
I have a xml file. I want to convert there content to a MSWord 2007 file getting some data through a xsl file(style sheet). How can it done in C#.
Any example really helpful.
Thanks
I appreciate your help all the time...
CodingLover
|
|
|
|