|
Generally, the object should be fully functional once it's created. For practical reasons you might have to make exceptions from the rule, though.
If possible you should still try to verify that the required values are set before they are used.
---
b { font-weight: normal; }
|
|
|
|
|
again am asking if any one could help i have a problem in begining the code of Ezstego algorithm for steganography detectiong of color palette images.how could i extract the hidden message if the message bits are hidden in the LSB of every color byte of the cover image? using c# language
|
|
|
|
|
You only posted your first question 15 hours ago! Give people a chance to respond. Also, consider that it is possible that people here don't know the answer to your question.
Have you used an internet search engine to try and find an answer?
"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)
My: Website | Blog
|
|
|
|
|
Hi!
How do I "disable" a theme for a specific page? I have set my theme in the web config page, but there is one page that I want to use a different stylesheet.
Regards,
ma se
|
|
|
|
|
Hi,
Can i know how to pass the address of the variable in c#?
Following is the code in c which has to be converted into c#..
public int Largest(int *ptr,int Icount)
{
int largest =0;
largest = *(ptr+0);
for(int i=0; i < Icount; i++)
{
if( *(ptr+i) >= largest)
{
largest = *(ptr + i);
}
}
return largest;
}
plz let me know how to sent the reference and increament the pointer.
|
|
|
|
|
you can use ref key word in c# to send the reference of variable
public int Largest(ref int ptr,int Icount)
{
int largest =0;
largest = (ptr+0);
for(int i=0; i < Icount; i++)
{
if( (ptr+i) >= largest)
{
largest = (ptr + i);
}
}
return largest;
}
rahul
-- modified at 5:08 Monday 15th May, 2006
|
|
|
|
|
Thanks Rahul...
But i'm getting error "Identifier Expected" so any idea....
|
|
|
|
|
sorry i forgot to add int after ref key word add it and try
rahul
|
|
|
|
|
From within a property grid, I want to use the a CollectionEditor that is able to display a selection dialog once the "Add" button is clicked. That is, I want the user to choose collection items from a defined list and add them to the collection in CollectionEditor.
For example, in VS 2005 property grid of a windows form, if you want to add an image to a System.Windows.Forms.ImageList, the appropiate property grid displays an image chooser dialog once "add" is clicked. I want to implement something similar to this feature. Any ideas or hints? thanks.
|
|
|
|
|
I'v wrote an application to stream real-time video b/w two pcs (using RTP), when finished I noticed the poor performance and delay between them.
I wonder where can I get a real-time C# encoder/decoder to encode the video before sending it to other side?
لا إله إلا الله
|
|
|
|
|
Hello,
I'm looking for a solution to print documents to tiff in my application, just like the Microsoft Office Document Image Writer. I think the solution uses MODI, but there is very little info about it.
Code examples and other info are very appreciated...
Thanks,
Fedor Brouwer
|
|
|
|
|
|
Hi
Im a beginner, and need some help with my calculator. I have a textbox and it has buttons to calculate Addition, Subtraction, Multiplication, Division, and then also a Exponent button which takes the two values put in the textbox and makes the first value the Base and the 2nd the exponent.
Now must I create a Delegate? and call it eg. MathOp. and then have a seperate event for each buttonClick?
Plz Help
Thanks
|
|
|
|
|
I'd personally just do it in the button click handlers.
|
|
|
|
|
guys, i have a problem with sorting of a file line by line due to unknown character (box [] chracter - similar to this but no space between the lines)encountered. It is included on the given data from the past years.
During sorting line by line, the compiler encounters the box/unknown character, so the compiler will break the statement/line and will result for the new statemen/line. the problem here is that instead of one line, it produces another line to be sorted for the whole file and for that my system can not be accurate anymore.
example i have a file to be sort:
//To be sort:
hello world!
Love programming!
have fun-[]--and enjoy! //[]-illustrates the unknown chracter but no spaces bet. the lines
//after sorting the data will be arranged like this:
--and enjoy! //it will be broke into two lines
have fun-
hello world!
Love programming!
Help me guys.. Dont know what to do...
regards,
JayR
|
|
|
|
|
You should read the file byte-by-byte. This will prevent your application from getting a new line everytime it encounters one of those funny block characters.
BTW I think that character is either 0x10 or 0x13, this means your file is either using a linux type of linebreak, or is using incomplete linebreaks. You can check this by splitting the data on one of these characters.
WM.
What about weapons of mass-construction?
|
|
|
|
|
how can i do that read by byte-by-byte?
it will solve my problem?
tnx...
regards,
JayR
|
|
|
|
|
i have code for sending E-mail from window application (in C#.net)by OutLook it is woking fine
i have one button on my windows form on click event i have code for sending mail when i run this application it display one another form(OlItemType) which have to ,cc every thing like simple outlook sending form i want to display that sending form on any user control or any tab page how it can possible help me
plz
For Oriensoft Technologies Pvt. Ltd.
Govind Yadav
Software Developer
E-mail: govindy@oriensoft.com
Tel: +91-22-67111555 Fax: +91-22-67111666
24 x 7 Support & Sales Toll Free : 1-800-22-5171 (India Only)
Web : http://www.oriensoft.com
|
|
|
|
|
Hi!
I developed a small C# FTP backup application (it downloads constantly from 3 FTP servers, using 3 threads). On my laptop with XP Pro it works without problems, it's running from 3 days ago. But if I try to run it on my company's server (which has Win 2003 Server) this little program crushes without any error. Simply disappears, sometimes after 15 mins, sometimes after 2 hours...
Anyone has a clue to what's happening?
|
|
|
|
|
Hi,
Did you use try...catch blocks in your application to handle exceptions?
If so, do they ignore any exception (This means, not displaying it in an errormesssage or logging it)?
I think your program is crashing in one of the threads and you catch the exception, but doesn't display it. I think this because your program doesn't display any errormessage (which every app should if it has an error and you don't catch it).
Regards WM.
What about weapons of mass-construction?
|
|
|
|
|
Thanks for the quick reply!
I'm handling exceptions with the try & catch, and i'm logging errors on a txt file, but nothing seems to explain the crushes. If more than one thread tries to write on the txt it can crash, right? Maybe this is the exception that i don't catch.
Btw, i wonder why it works well on XP and not on 2003 server...
|
|
|
|
|
Did you check the Application log in Event Viewer? My guess is that something seriously wrong happened within your app that caused the OS to terminate it immediately. Usually, it will be logged in the Application Log, so I'd suggest you take a look there.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi All:
Been reading all I can find about multi-threading in Windows Forms, but still cannot wrap my head around this topic. Thanks in advance for any assistance!
1. Need to update a progressbar control on a SDI application while the form reads a text file. The progress bar is just a simple visual indicator to inform the user that the application has not "frozen". Pretty basic stuff.
Have consulted the following resources but still don't understand,
2. Multithreaded Windows Forms Control Sample from microsoft's website
3. http://www.codeproject.com/csharp/launchprocess.asp
Be happy to answer any/all questions.
Regards,
Keith Eckstein
|
|
|
|
|
Where exactly are you facing problems? All you have to do is to do the file reading on a separate thread (created via System.Threading.Thread or through Delegate.BeginInvoke) so that you will not hold up the UI thread. Updating the progress bar is just a matter of setting the appropriate progress value as you keep reading the file, for example, you could set max value to the number of lines in the file and then keep incrementing the progress value as you read the file line by line.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi Senthil:
The deal is I have a Read function that reads the file line by line and returns the contents of the file to a text box in the form. I need to update the form's progress bar (on the UI Thread).
A. the function to increment the progress bar.
1. private void progressBarUpdate()
2. {
3. //Reset to start if required
4. if (this.progbar.Value == this.progbar.Maximum)
5. {
6. this.progbar.Value = this.progbar.Minimum ;
7. }
8. else
9. {
10. this.progbar.PerformStep();
11. }
12. }
B. the delegate
13. private delegate string ReadDelegate(string file);
C. the function that reads the file, line by line.
14. private string Read(string file)
15. {
16. StreamReader reader = new StreamReader(file);
17. string strBufferFormatted = String.Empty;
18. string strLine = String.Empty;
19. int intLines = -1;
20. while(reader.Peek() != -1)
21. {
22. strLine = reader.ReadLine();
23. intLines++;
24. //update the progress bar here
25. BeginInvoke(new MethodInvoker(progressBarUpdate));
26. strBufferFormatted = strBufferFormatted + strLine;
27. }
28. this.lblLinesUnformatted.Text = intLines.ToString() + " lines read.";
29. reader.Close();
30. return strBufferFormatted;
31. }
The form is unresponsive while the file is being read, only after the file is read do the progess bar's blue blocks increment.
What am I missing?
Regards,
Keith
|
|
|
|