|
class classB : classA
{
public classB() : this(5)
{
}
public classB(int i) : base("laser")
{
}
}
calling classB() will run both
betonglasermur.FeedDwarf(pur_is, 17);
ProcessStartupInfo.AintNotCreateNoWindow = (false && !true) != (true || false) ? false == true ? true : false : (true != false && false);
Morgonen är tröttmans mecka
|
|
|
|
|
Huh? You've got me nicely confused here. Are you being serious?
|
|
|
|
|
|
hadad wrote: how can I use the FileIOPermission class
I know many programmers come lately don't seem to believe that they need to read the documentation but one can actually find out how to use the FileIOPermission class by reading the documentation[^]
led mike
|
|
|
|
|
I really don't get it...
Do people just type in random words and hope it will work?
Or copy code off the web and jam it into their code and hope it works?
WTF?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Do people just type in random words and hope it will work?
Or copy code off the web and jam it into their code and hope it works?
Yes
Mark Salsbery wrote: WTF?
I'm pretty sure this was the impetus behind the invention of the Filet-O-Fish
led mike
|
|
|
|
|
class PleaseWork
{
public void getPermission ()
{
MyComputer.GetBinnaryPermission (directory);
}
}
|
|
|
|
|
If I start typing "binnary" with two "n"s I'm going to scream.
It's like getting a stupid song stuck in my head...
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
yes !
stupid melody that you hear when you weak up in the morning.
BinnaryWriter
..nice class we shoud ask Microsoft to bring us a 'Binnary' Namespace
|
|
|
|
|
Be fair. He was googling BinnaryWriter, which obviously doesn't return too many hits.
|
|
|
|
|
Pete O'Hanlon wrote: Be fair.
Hmm. Let me think about it. NO!
led mike
|
|
|
|
|
|
:cough:
Thanks dude, I needed a good laugh and that was a great one!
led mike
|
|
|
|
|
Hello friends, I couldn't find much info on how to copy/paste text and preserve the formatting from other applications (like World, PowerPoint) to webbrowser control in C#. I was able to copy/paste text from e.g words but i loose all the formatting when i paste text to the webbrower control like "bullets, indentation and other normal features).
So my real question is that, can we Paste the formated text the way it was when copied from other applications. I tried like this but no success. Could you suggest me through your experience or thoughts or any kind resources.
if (Clipboard.ContainsText())
{
IHTMLTxtRange range = doc.selection.createRange() as IHTMLTxtRange;
range.pasteHTML(Clipboard.GetText(TextDataFormat.Text));
}
Thanks
|
|
|
|
|
Hi,
I am used to VB6 reading a few header items below each other out of a text file followed by some columns of data such as:
fh1 = FreeFile
Open inPath For Input As #fh1
Input #fh1, projfile.name
Input #fh1, projfile.projdate
Input #fh1, projfile.version
For X = 1 To intNumVars
Input #fh1, Bas(X).name, Bas(X).Min, Bas(X).Max, Bas(X).ave,
Next X
Close(fh1)
I have been through a lot of material on StreamReader, BinaryReader etc and getting stuck. Any help (code examples) or pointers to articles, chapters would be much appreciated. The writing of the info to the file seems easy with :
StreamWriter outFS = new StreamWriter(new FileStream(outFile, FileMode.OpenOrCreate, FileAccess.Write));
outFS.WriteLine(strModelDesc1);
outFS.WriteLine(strModelDesc2);
outFS.WriteLine("{0},{1},{2}"intLayers, intStats, decAve);
outFS.Close();
thanks
Ian
|
|
|
|
|
Hello,
How can I get the path of the current user Temp file.
Dad
|
|
|
|
|
System.IO.Path.GetTempPath();
Edit:
Environment.GetEnvironmentVariable("TEMP");
or
Environment.GetEnvironmentVariable("TMP");
will also work but
1. It gives the path in 8.3 format
2. If at any point in the future MS changes the Environment variable it may break(!) so I'd use the initial suggestion.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Expect everything to be hard and then enjoy the things that come easy. (code-frog)
|
|
|
|
|
Google.
For cryin' out loud, put some freakin' effort into your work. Asking here takes MANY TIMES LONGER than using google.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: Asking here takes MANY TIMES LONGER than using google.
I stopped wondering why people use message boards for such simple answers when using google they would have found the solutions in ten seconds.
modified 12-Sep-18 21:01pm.
|
|
|
|
|
google is loosing its mojo
|
|
|
|
|
Not for me
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi friends,
i want to save video stream from webcam as i have developed a communication system which is similar to yahoo or msn messenger. Well i want to add a new feature that is video saving from webcam in any format and i m fully failed in it. Someone has the idea u can send me email also on my id love_never_die_f@yahoo.co.uk
BuIlT fOr ThE kIlL
modified on Thursday, August 28, 2008 9:15 AM
|
|
|
|
|
Hi
I am developing a Console Application in C# that uploads videos to aol website using the api.
I have created a AOL screen name and also the devId.
I am trying to get the auth token by submitting the required parameters in the following format:
string request url= https://api.screenname.aol.com/auth/getToken?f=qs&devId="mydevId"&supportedIdType=SN,ICQ,OID&succUrl=http://localhost/AOL/Default.aspx&s="Myscreenname"
as well as
http://api.screenname.aol.com/auth/login?f=qs&devId="mydevId"&supportedIdType=SN,ICQ,OID&succUrl=http://localhost/AOL/Default.aspx&s="Myscreenname"
But am not able to get the response url having the token as it always give me the login screen html or a message saying "not authenticated".
It being a console application,I cant show the login screen.
Is there any way through which I can upload my videos to aol using console application.
Please find the code I have written below:
HttpWebRequest req = (HttpWebRequest)WebRequest.Create(requestUrl);
req.Method = "POST";
req.ContentType = "application/x-www-form-urlencoded";
req.ContentLength = buffer.Length;
req.Proxy = new WebProxy(proxy, true);
req.CookieContainer = new CookieContainer();
Stream reqst = req.GetRequestStream();
reqst.Write(buffer, 0, buffer.Length);
reqst.Flush();
reqst.Close();
Console.WriteLine("\nPosting 'red' to " + requestUrl);
HttpWebResponse res = (HttpWebResponse)req.GetResponse();
Console.WriteLine("\nResponse stream is: \n");
string eq=res.GetResponseStream().ToString();
Stream resst = res.GetResponseStream();
StreamReader sr = new StreamReader(resst);
Console.WriteLine(sr.ReadToEnd());
Console.ReadLine()
We are really in need for the solution.Please help me by posting a reply as soon as possible.
Thanks
Sonu
(incubator142@hotmail.com)
|
|
|
|
|
Ya, from India. I knew it. Have you googled it yet? If you had, you would probably have found the answer long before now.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi to all
i have created one C#.net window application.
also i create the setup using setup project of .net.
now will give setup to my client but i want that <b>my client can use that setup only one time.</b>
or by <b>any way of giving serial key (PID) that can be used only once </b>.
please help me out.
thanks.
|
|
|
|