|
Hi All,
I want to capture incoming / outgoing raw-packet of NIC card.
And redirect/block packet for porn site etc.
I am VB6 coder and have no idea for C/C++.
Can somebody help me in this regards.
Sunil KC
from NEPAL
|
|
|
|
|
Sunil KC wrote: I want to capture incoming / outgoing raw-packet of NIC card.
And redirect/block packet for porn site etc.
I am VB6 coder and have no idea for C/C++.
Can somebody help me in this regards.
Well, time to start learning C, because to do this you'll need to write an NDIS driver and you can only do that in C or C++. Well, you can also do that in assembly, but I guess you won't want to do that.
|
|
|
|
|
can somebody help me by making a ndis driver with dll
|
|
|
|
|
There's no chance of this happening. You need a ton of driver development and kernel-level dugging skill to do this. From the sound of your question, you don't have to skills to pull this off yet.
|
|
|
|
|
Alternatively, if you are in a corporate network environment, you could write a proxy that all machines must go through in order to access the internet.
|
|
|
|
|
You can already do this with off-the-shelf software, it's called a proxy server.
|
|
|
|
|
Hi, Our project which has been developed on .net2002 is working fine. Now I have introduced some drop down list in search modules of the projects. They also working fine in the local system but in the server, ddlist are not getting filled with the data present in database. And also i want to introduce some more page to it. They are all working fine in local system. but when i copy them to server where the original project has been deployed, it is giving the following error. Now the project is been enhancing using, .NET 2005
Server Error in '/dbs' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: Could not load type 'Dash_Board.TimeSheet'.
Source Error:
Line 1: <%@ Page Language="VB" AutoEventWireup="false" Inherits=".TimeSheet" CodeBehind="TimeSheet.aspx.vb" %>
Line 2:
Line 3:
Source File: D:\Deljo\DBS\TimeSheet.aspx Line: 1
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.1.4322.2300; ASP.NET Version:1.1.4322.2300
Chaitra N
|
|
|
|
|
You'll probably get a better response if you asked this question in the ASP.NET Forum.
I'm no ASP.NET expert, but what's with the period in the Inherits=".TimeSheet" code? I don't think that period shouldn't be there.
|
|
|
|
|
Hey guys,
I have a quick question that I am hoping someone can answer for me. What I am trying to do is create VB.Net service that navigates to a page in the background every five minutes. What i am trying now is that i am using the Web Browser Control and in my start code i am using WebBrowser1.Navigate("URL Addres"), but once i go to install and run the service it gives me a Thread Exception error.
Does anyone know the answer, please help because I have tried several things and none of which have worked.
Thanks, Travis
|
|
|
|
|
A service generally doesn't have UI. It's hard to say more, without knowing what you've tried, what code causes the error, and what 'none of which have worked' means.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
goto security/permissions settings in project properties and enable URL parameters to be passed and try enclosing the code with
Try<br />
<br />
'write code here<br />
<br />
Catch ex as Exception<br />
End Try<br />
|
|
|
|
|
How does catching and ignoring all errors solve the problem ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Thanks,
Here is the error message
ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.
and that is happening when the service tries to execute the webbrowser1.navigate("url")
|
|
|
|
|
did you check the permissions?i think the control is corrupt,why dont you use the default .net 2.0 control or the url is not in the proper format , make sure it starts with "http://"
-- modified at 1:01 Wednesday 9th May, 2007
|
|
|
|
|
STA is actually required by some components, I am pretty sure that none of what you're suggesting will help.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
You can set your app to run in STA, it's an attribute you add at the top level of your app. I forget the syntax, but google 'set STA VB.NET' and you're bound to find it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"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 )
|
|
|
|
|
Thanks everyone for all the information, but even with all that there is still nothing. Let me see if I can elaborate on what I am trying to do and maybe you guys have a better way of doing it and it can solve my problem.
I just need an application or service to browse to a certain page every five minutes. In my case it will be an asp page. Once the services browses to the page it just needs to close the and the asp page takes it from there and starts producing a grid. For instance when it connects properly the grid will show some green, but say the service gets stopped or the computer or server goes down then the grid will start showing red.
I hope that all made sense, if not just let me know and i will try to give some more info. I am just hoping someone can help.
Thanks, Travis
|
|
|
|
|
I could be wrong, but I think the WebBrowser control needs to be on a form with a message pump in order to work. Since a Windows Service doesn't have a message pump, this could be what's causing your problem.
THe work around would be to not use a WebControl, but instead rewrite the code to use the HttpWebRequest methods instead.
|
|
|
|
|
Use the WebRequest class in System.Net. It's all pretty much self explanatory.
|
|
|
|
|
I have a for next loop which forms an integral part of my app ,it uses the no of lines in a richtextbox , but whenever i run it on the debugger i get that 1 is greater than RichTextBox.Lines.Length ,so is there any other way to get the proper no of lines in the richtextbox????
|
|
|
|
|
RichTextBox1.Lines.Length
|
|
|
|
|
The only way to do it is RTB.Lines.Length. What "proper" refers to depends on the definition of the word and put forth by the person demanding it.
What do you mean when you use "proper" in this context? A line in a RTB can be many screen-lines long. To the RTB, it's a string of text that ends with a CarriageReturn character.
|
|
|
|
|
I found a solution , i changed the code from For index = 0 to RTB.Length to For Each String in RTB.Lines() and it started working,what i meant by proper was,irrespective of the no of lines in the rtb ,rtb.length always returned 0 ,now that i've resolved it i don't think it really matters
|
|
|
|
|
Hi,
I'm fresh to VB dotnet,but now I'm doing a project which need to work with an Access database. Could you please give me a brief or example showing me that how can I load the database and access the datas..
Thank you so much
|
|
|
|
|
Connection String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=<DB PATH>;Jet OLEDB:System Database=system.mdw;"
strSQL="QUERY"
' LOAD and ACCESS DB
Try
cnSQL = New OleDbConnection(ConnectionString)
cnSQL.Open()
cmSQL = New OleDbCommand(strSQL, cnSQL)
drSQL = cmSQL.ExecuteReader()
If drSQL.Read() Then
<YOUR CODE >
End If
drSQL.Close()
cnSQL.Close()
cmSQL.Dispose()
Catch Exp As OleDbException
MsgBox(Exp.Message, MsgBoxStyle.Critical, "Oledb Error")
Catch Exp As Exception
MsgBox(Exp.Message, MsgBoxStyle.Critical, "General Error")
End Try
Jats
|
|
|
|