|
I don't think you read my sig Thanks though, I have some other people's AssemblyInfo.cs files from downloading projects from articles. I can figure it out from there
-----
*** Never give me an answer having anything to do with Visual Studio. I don't have this because I have two computers, one being my dad's mac, which is connected to the internet, the other being my pc, which is, sadly, not connected to the internet. The setup for the Visual C# program I think is called a "bootstrap" program, and it needs to connect to the internet to install the program. THEREFORE I cannot install this program onto my pc.***
|
|
|
|
|
Hi Max,
the AssemblyInfo.cs file gets generated automatically by Visual Studio, but
you can create your own, give it a different name, and/or merge it with other files.
Here is a typical example:
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("TrayIconBuster")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TrayIconBuster")]
[assembly: AssemblyCopyright("Copyright © 2007")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: Guid("fbd90b31-54df-4581-b476-c5fd53c9d279")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
|
|
|
|
|
Hi Max,
to add a file type with description, use Windows Explorer, Tools, Folder Options,
File Types, New, Advanced, and enter the required information.
BTW: you can add/remove/changeorder the fields shown in Windows Explorer through
View, Choose Details. Some of that info is fetched from the file itself, such as
"program version number" for an .EXE, or "date photo taken" for a .JPEG file (from
a camera that provides such info).
|
|
|
|
|
Hi
I have a problem. How can I get detailed info about sound from the microphone - the info like the 'jumping bars' in winamp, amplitude, etc. I want to make a voice recognition program using a neural net, but need info about the sound.
Thanks for help
|
|
|
|
|
Those 'jumping bars' are just examining the wav file for increases in amplitude.
I'm not sure exactly how you examine data as it comes in, but I'm sure the answer will involve DirectShow, which is in the platform SDK.
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 )
|
|
|
|
|
Hi Joseph,
there are some articles on CodeProject (like this one[^]) that may interest you.
|
|
|
|
|
You can used the managed version of DirectSound[^] with C# to capture waveform input from your soundcard.
You will capture the sound by using buffers. Once you have a buffer of waveform data, you can examine the samples that make up the buffer to answer questions about waveform amplitude, etc.
|
|
|
|
|
I am trying to use the OWC11 to edit an Excel template. the code below creates a NEW file instead of just changing the cells. Does anyone know how to make it so that it edits a cell in a file instead of creating a new file? Also, how much memory does OWC11 use on the server?
private void EditSpreadSheet()
{
spread = new OWC.SpreadsheetClass();
spread.ActiveSheet.Cells[1,1] = "HELLO";
spread.get_Range("A2:A2",Type.Missing);
spread.Export(Server.MapPath(".") + "\\" + "PR.xls",OWC.SheetExportActionEnum.ssExportActionNone,
OWC.SheetExportFormat.ssExportHTML);
}
Sincerely,
The Major Rager
|
|
|
|
|
Don't start another thread for the same topic. Keep it in your original thread so there's the opportunity for multiple people to collaborate on an answer.
|
|
|
|
|
Hello everyone,
I was wondering if it is possible to change the Opacity of control elements in a Form. I am awear that I can change the opacity of the entire Form but can I change the opacity of the elements such as Button, ListView, DataGridView and many other control units?
Thank you very much and have a great day.
Khoramdin
|
|
|
|
|
I don't think that you can change individual components opacity unless they directly support it.
|
|
|
|
|
Nope. It's the form or you move your code to WPF.
|
|
|
|
|
Hi,
For convert the any image into sketch format (draw just the dark pixels),I use following logic:
for (int i = 0; i < 300; i++)
{
for (int j = 0; j < 200; j++)
{
p = new Pen(bitmap.GetPixel(i, j), 1);//get pixel from the image/bitmap
for (int r1 = 0; r1 < 100; r1++)
{
for (int r2 =0; r2 < 100; r2++)
{
for (int r3 = 0; r3 < 100; r3++)
{
if (p.Color ! = Color.FromArgb(255, r1, r2, r3)) //check dark pixel
{
p.Color = Color.Transparent;
}
g.DrawRectangle(p, 1 * i, 1 * j, 1, 1);
}
}
}
But it is too slow and not efficient ………Is above code require more betterment (if required then tell me what things are requried)or it is totally wrong?………second question is that Am I convert the color picture into the grayscale format by using the built-in function in Visual Studio C-Sharp .Net (if anyone function/class is present then tell me) -or- it need a algorithm and has a lengthy processes =>please give the some hints about the image processing.
Please send your logic for conversion of any image into sketch style.
Thanks…
|
|
|
|
|
Hi,
this is completely wrong in many ways:
1.
your code includes a lot of magical numbers (a width of 300, a height of 200) ?
Good code does not do that. Such numbers are either constants (declare constants then),
or they are variables that get their value somewhere (e.g. int width=bitmap.Width;).
2.
you are nesting five for loops; the inner loop would execute some
300*200*100*100*100 times, thats 60 billion times. How long do you expect this will take ?
Nesting that many loops seldom is the right way to achieve anything.
3.
what is the use of the for loops over r1/r2/r3 ?
you can replace them with:
int r1=p.Color.Red;
int r2=p.Color.Green;
int r3=p.Color.Blue;
and then check whether r1/r2/r3 are in the range [0,100).
Why search for something that you already know ???
4.
Graphics.DrawRectangle with a size of 1*1 is an expensive way to set one pixel.
Cant you use bitmap.SetPixel ?
5.
Why create a new pen for every pixel, you can use the same pen over and over.
6.
I dont think turning some pixels transparant is the right way to achieve
whatever it is you are trying to achieve.
Conclusion:
I strongly suggest you search CodeProjects for some articles on Graphics,
they are plenty and there are some pretty good ones. Then study those and learn
about realistic ways of doing things, before you start creating some weird code
of your own... Have a look at image filtering, edge enhancement, and many more.
And once you think you know what you need, try creating some quality code, and
organize it such that you can test it on much smaller images.
|
|
|
|
|
You should read my articles on image processing. It includes a greyscale filter ( although you can use the built in GDI+ stuff to do that )
Apart from that, I agree with everything Luc said, especially the bit about the nested loops, but this is all very much wrong.
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 )
|
|
|
|
|
Hi Christian,
Luc Pattyn wrote: and there are some pretty good ones
I expected you to agree...
|
|
|
|
|
*grin*
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 )
|
|
|
|
|
Hi,
I need help with filling custom structs (members of a control) via designer - like filling Color struct in BackColor member using RGB values.
Thanx
Stevo
|
|
|
|
|
|
That is what I was looking for and couldn't find, thanx very much
|
|
|
|
|
That examples work good with classes, but i would like to use struct and there is something tricky about it, you can't set a property of a struct using designer.
|
|
|
|
|
Hi,
I am trying to use the OWC to edit the cells in an existing excel file. I have done it with Interop.Excel, but that takes up too much memory which is why I am going towards the OWC. My problem is that I cannot seem to figure out how to even open the Excel File for editing. Here is my code of a sample project I am trying to do just to get started:
<br />
<br />
private void EditSpreadSheet()<br />
{<br />
<br />
<br />
spread = new OWC.SpreadsheetClass();<br />
spread.ActiveSheet.ConnectionString = "PR.xls";<br />
spread.Cells[2,"2"] = "Hi";<br />
<br />
<br />
<br />
<br />
<br />
}<br />
<br />
<br />
Sincerely,
The Major Rager
|
|
|
|
|
TheMajorRager wrote: spread.ActiveSheet.ConnectionString = "PR.xls";
You might want to supply the fully qualified path to this file.
|
|
|
|
|
Hi Dave,
Here is the new code I came up with however, this creates a NEW file instead of just changing the cells. Do you know how to make it so that it edits a file instead of creating a new one? Also, how much memory does OWC11 use on the server?
<br />
<br />
private void EditSpreadSheet()<br />
{<br />
<br />
<br />
<br />
spread = new OWC.SpreadsheetClass();<br />
spread.ActiveSheet.Cells[1,1] = "HELLO";<br />
spread.get_Range("A2:A2",Type.Missing);<br />
spread.Export(Server.MapPath(".") + "\\" + "PR.xls",OWC.SheetExportActionEnum.ssExportActionNone,<br />
OWC.SheetExportFormat.ssExportHTML);<br />
<br />
<br />
<br />
<br />
<br />
<br />
}<br />
<br />
<br />
Sincerely,
The Major Rager
-- modified at 17:33 Wednesday 27th June, 2007
|
|
|
|
|
TheMajorRager wrote: Server.MapPath(".") + "\\"
Seperate this line out so you can see the exact path it comes up with. Somehow, I don't think it's valid. Either that, or the ASPNET process doesn't have Write permissions to the path it's showing.
string filepath = Path.Combine(Server.MapPath("."), @"PR.xls");
|
|
|
|