|
I want to run outside the browser.
I just wanna check whether is the user access https pages.
if yes output into a txt file.
how to do it?
|
|
|
|
|
Again, I ask why do you want to do this? You still haven't clarified that.
|
|
|
|
|
My task? School project. lolx.
|
|
|
|
|
So you want somebody to help write your homework for you. Isn't that, wait I'm sure I can find a word for it, cheating?
|
|
|
|
|
No? Is finding assistance. Cos this is self.
and I am seriously out of clue.
For some personal reason. But really not the cheating as you know. ...
|
|
|
|
|
OK - you could always intercept the request stream (by default it will be running on port 443 for HTTPS). Alternatively, you could write something that hooks into Firefox and listens to the messages it's firing off - I find it hard to believe that this is an assignment though; this is quite advanced coding and not one you'd typically give to students, especially as it is in such a sensitive area as internet security.
I will say, accomplishing a task like this is normally achieved using a language like C or C++.
|
|
|
|
|
Sure, you'd have to write your own proxy server. If you have no idea what a proxy server is or how Socket communication over TCP/IP works, then you have no hope of completeing this project.
wenlong88 wrote: I am a newbie.
Of course you are. See above.
|
|
|
|
|
Pete take it easy on him
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
This is me taking it easy with him. What I was trying to do was find out what his requirements really were, and make sure that he wasn't after this for nefarious purposes.
|
|
|
|
|
Hi all,
Curently, I have a big solution (include C#, VB, C++ projects).
LOC of this solution is about 1000 KLOC.
I want to create a tool to get all information in source file as below: class, method, enum, parameter of method, all place in source code where use class or method, ...
Can you help me to find the best algorithm to get these information?
Thanks for your support.
|
|
|
|
|
Visual Studio already has a tool like that: is the Object Browser (you can show it from the View menu). IT shows a hierachical view of all the assemblies in your solution, with namespaces, classes, fields, properties, methods, etc. (if you provided XML comments for the shown items, the informations you have provided through them are shown too).
To show informations about places in source code where a class or method is used, you can right-click on the item in the Object Browser and select Find All References.
|
|
|
|
|
Thanks for your answer.
But I still want to build my own tool .
Beside, I also have a solution2 that reference to solution1 (location of them in different folder).
And this tool can be search in both solution (just give it the location, and it will return the result)
|
|
|
|
|
Have VS produce XML documentation and read that.
|
|
|
|
|
Just in case my code is fully documented with XML comments.
Beside, with XML comment, I can't find reference of classes or methods that are using somewhere in source code.
|
|
|
|
|
Hello Everybody,
I want to know that How many Compilers are used in C#.
Thanks
If you can think then I Can.
|
|
|
|
|
Do you mean how many C# compilers exist?
there is one in each version of the .NET FrameWork for Windows, it is called csc.exe
I expect there are a few others that are popular, e.g. in the Mono environment.
And there must be a couple around in research and university environments.
or do you mean how many compilers (for whatever input language) have been created using C#?
that, I don't know at all. I see no major obstacle for writing a compiler in C#, although the majority will be in C++, mainly for historical reasons.
|
|
|
|
|
Actually i want to know that how many times a program code is compiling in C#.
If you can think then I Can.
|
|
|
|
|
every build you do happen once
Vuyiswa Maseko,
Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code.
C#/VB.NET/ASP.NET/SQL7/2000/2005/2008
http://www.vuyiswamaseko.com
vuyiswa@its.co.za
http://www.itsabacus.co.za/itsabacus/
|
|
|
|
|
Are you referring to the two-stage C#->MSIL and MSIL->machine code compilation process?
|
|
|
|
|
Many examples explains thread safe access over a single control,like updating a text of a
button or label etc.,How to change properties of multiple controls of a Form in thread safe manner.
private Thread CheckStatusThread = null;
public delegate void CheckStatusDelegate(int Count);
public CheckStatusDelegate CheckStatusHandler;
public Form1()
{
InitializeComponent();
CheckStatusThread = new Thread(new ThreadStart(CheckStatusThreadFunc));
CheckStatusHandler = new CheckStatusDelegate(CheckPowerStatus);
}
private void Form1_Load(object sender, EventArgs e)
{
CheckStatusThread.Start();
}
public void CheckStatusThreadFunc()
{
int Cnt = 1;
while (true)
{
this.Invoke(CheckStatusHandler,new object []{Cnt});
Cnt++;
Thread.Sleep(500);
}
}
public void CheckPowerStatus(int Count)
{
int Cnt=Count;
StatusBarLabel1.Text = "Checking PowerStatus " + Cnt;
dataGridView1.Rows[2].Cells[4].Value = Cnt;
label1.Text = Convert.ToString("Cnt "+Cnt);
}
The CheckPowerStatus function change properties of 3 controls in Form1.
Do I need to use 3 delegates to update each control on 3 different functions.
Or the above code is thread safe?
|
|
|
|
|
All threading issues get referred to Luc - see his articles[^] here.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Interesting link.
|
|
|
|
|
you're not allowed to touch a Control from a random thread, so yes you need one or more Invoke calls. The proper way to handle simultaneous Control updates is by stuffing all the data you need in a little suitcase (i.e. a little class) and invoke once, let the delegate unpack the suitcase and do whatever needs to be done to the GUI. Assuming all GUI Controls got created on the main thread, all those Control.Invoke calls are equivalent anyhow, they all send the delegate to the main thread, no matter what they do to which Control.
This[^] article of mine explains the basics, you may know most of it already.
|
|
|
|
|
In article, you suggest to use Control and the property as generic parameter.
But Control is the base class.The common property is only Text for all controls.
But in case of specific properties of a control,how can use generic method.
Suppose DataGridView.Rows[2].Cells[3].Value-how can use Control?
Because Control.Rows does not exists.
So if I need to update or access 3 controls 2 properties,
then have to write 6 delegates and 6 functions to do the job?
|
|
|
|
|
Actually I already answered that; here is one way:
public void SetCount(int count) {
dataGridView1.Invoke(new MethodInvoker(delegate() {
StatusBarLabel1.Text = "Checking PowerStatus " + count;
dataGridView1.Rows[2].Cells[4].Value = count;
label1.Text = Convert.ToString("Cnt "+count);
}));
}
|
|
|
|