|
An excellent translation of my translation!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Your post came across as a snide put down rather than a constructive comment.
|
|
|
|
|
Leif Simon Goodwin wrote: Your post came across as a snide put down rather than a constructive comment. Which tends to happen if you rub a volunteer the wrong way. You're not guaranteed a constructive comment on public forums.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
I resent the use of the term spamming and the confrontational tone of your posting.
For your information I had an account with another name (company email, no longer accessible), posted in the WPF forum, got no answer after many days, posted a link in this forum, and got an answer almost immediately. Hence why I am/was not sure which was the best forum for the question.
|
|
|
|
|
|
Thank you for the constructive suggestion.
|
|
|
|
|
I have C# COM dll used in one of the module (lets call as A) and it already into the market.
For my other new module , i need same functionality as C# COM dll, So i used the same code and generated dll(the Common C# DLL is same for two modules and need to located in same place after installation)
Since C# COM dll name and location is same for both modules, i cant work on both the modules at a time
either i need to play with register /unregister and work with one module.
How can i make this C# COM dll with same name and same location to work for two projects/modules?
Help is greatly appreciated.
|
|
|
|
|
Member 11732139 wrote: i need same functionality as C# COM dll, So why are you creating a different dll?
|
|
|
|
|
the two modules are different and install packages of modules are different
when two modules insatlled in machine then common dll contradicts!!
|
|
|
|
|
Sorry, but I do not understand what you mean. If you have a common dll then you only need it installed once.
|
|
|
|
|
This is possibly a misunderstanding because the word you are using mean something else in this context: perhaps you should try explaining again in more detail exactly what is giving you a problem?
Examples help as well!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
cant send file bigger that 1 megabit ( Server_client )
private byte[] GetFileInfo(string fname, string fext, long fsize)
{
byte[] data = new byte[1024];
byte[] type = Encoding.UTF8.GetBytes("fff");
byte[] ext = Encoding.UTF8.GetBytes(fext);
byte[] extE = Encoding.UTF8.GetBytes(":");
byte[] sizeS = Encoding.UTF8.GetBytes(fsize.ToString());
byte[] sizeE = Encoding.UTF8.GetBytes("s");
byte[] name = Encoding.UTF8.GetBytes(fname);
byte[] nameE = Encoding.UTF8.GetBytes("?");
Array.Copy(type, data, type.Length);
Array.Copy(ext, 0, data, type.Length, ext.Length);
Array.Copy(extE, 0, data, ext.Length + type.Length, extE.Length);
Array.Copy(sizeS, 0, data, ext.Length + type.Length + extE.Length, sizeS.Length);
Array.Copy(sizeE, 0, data, ext.Length + type.Length + extE.Length + sizeS.Length, sizeE.Length);
Array.Copy(name, 0, data, ext.Length + type.Length + extE.Length + sizeS.Length + sizeE.Length, name.Length);
Array.Copy(nameE, 0, data, ext.Length + type.Length + extE.Length + sizeS.Length + sizeE.Length + name.Length, nameE.Length);
byte[] newdata = new byte[ext.Length + extE.Length + sizeS.Length + sizeE.Length + name.Length + nameE.Length + type.Length];
Array.Copy(data, newdata, newdata.Length);
return newdata;
}
private byte[] GetBinaryFile(string filename)
{
byte[] bytes;
using (FileStream file = new FileStream(filename, FileMode.Open, FileAccess.Read))
{
bytes = new byte[file.Length];
file.Read(bytes, 0, (int)file.Length);
}
return bytes;
}
}
}
modified 7-Jun-18 1:26am.
|
|
|
|
|
Please delete your duplicate of this question. Also, edit this and remove all the code not relating to the problem, and add some details about exactly what happens.
|
|
|
|
|
Is this for a DOS attack?
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
Is that MS-DOS or PC-DOS?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
|
|
You programmed all that, and can't figure out what determines the length of the buffer?
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
When the 102400000 byte buffer (10megabit buffer length) ,software receives an error
|
|
|
|
|
Hussein Tb wrote: the 102400000 byte buffer (10megabit buffer length)
When I last did arithmetic, that number is over 100 million, not ten. And it's bytes, not bits.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
hi gang i have a litle problem c# ...
i have 4 textbox i need to calculate first (tb2 x tb3 x 60) after tb1 / (the result) and after x 100
and show the result in texbox4
textbox4 = textbox1 / (textbox2 x textbox3 x 60) x 100
|
|
|
|
|
First, use int.TryParse (or double.TryParse if appropriate) to convert each value to an numeric:
double t1;
if (!double.TryParse(textBox1.Text, out t1))
{
... Report problem to user - he typed a bad number ...
return;
} When you have the four values, it's trivial:
TextBox4.Text = (t1 / (t2 * t3 * 60 ) * 100).ToString();
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
What happened to "We do not do your homework?"
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
It's a fine line between "doing the homework" and "giving enough so they can finish it", isn't it?
I didn't think just pointing him at the TryParse documentation would be enough, he is a beginner after all - and thoroughly lost by the look of it!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
On second thought, I think you're right. Your mentality is not "throw 'em to the wolves", but do what you can to help.
There is a difference between asking for a clue and asking for it to be done for you. Your post embodies the teaching spirit.
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|