List Of Pcap.Net Members Or Classes?
Jun 20, 2012
Need a list of Pcap.Net members or classes? Their website doesn't have much documentation and have looked around in the forums.
I have found..
PacketTs = Packet.Timestamp.ToString("yyyy-MM-dd hh:mm:ss.fff")
PacketS = Packet.Ethernet.IpV4.Source
PacketSp = Packet.Ethernet.IpV4.Transport.SourcePort
PacketD = Packet.Ethernet.IpV4.Destination
[Code]...
View 1 Replies
ADVERTISEMENT
Feb 16, 2011
I'm writing a WCF-Service and I split up my service class to multiple partial class files, so every ServiceContract-Implementation gets its own file. I have one file however that should contain e.g. members that are used by every partial class file such as a logger. The service is hosted with IIS 7 if this matters in any way.
[Code]....
The code compiles fine, but at runtime I get an BC30451: The name m_Log is not declared Error (Don't know the exact words for it. I get a german message ;) ). I don't think it has something to do with the type of m_Log or a depending assembly because I get the same error if i try this with a String. What am I doing wrong? How can I make this work? Edit: I was trying the same thing in a simple console application without any problems. :(
View 1 Replies
Jun 25, 2010
So say I define some interface, and that interface has members that need to be implemented under some idea, and I then implement this interface on a class that already has those members defined. How do I NOT receive errors about having to implement said members despite them already being implemented (because I didn't type the oh so ridiculous 'implements IMyInterface.foo').
For example say I have an interface that defines the event KeyPress, and then I have a custom Form that implements this interface of mine. It throws an error. VB is the 5th language I've worked in that uses interfaces... and up until now they've all treated interfaces relatively the same. This is the first time I've seen this not allowed. What perplexes me more, is it IS allowed in other .Net languages. Just not VB.
[Code]...
View 4 Replies
Mar 28, 2011
I've read that modules are basically shared classes. For a module though, you can call a method directly without prefixing the module name. So I can do this: methodTest("abc", mod1Enum.enum2)But for a class with shared members I have to fully qualify the method call, and in this case fully qualify the enum:[code]In our conversion from VB6 to .NET the need to fully qualify all calls like this might be an argument for us to bring our VB6 modules over as modules instead of converting them to classes.
View 7 Replies
Mar 5, 2010
At the moment I'm trying to create a kind of model in vb.net which can be used to create/fetch database entrys.
I created a main class Model with a shared function to fetch the datasets, e.g. Model.find(). Now I'd like to create Classes which inherit the main Model-Class, e.g. a separate one for users: UserModel.find() => "SELECT * FROM users".
What I need now is to find a way to tell the Class which table it should use. I thought about an abstract String "table" which is a constant in each "child-model", but how could this be implemented as it's not possible to override shared members?
Edit: Maybe this will make it a little clearer what I mean:
Public Class Model
Public Shared _controller As Controller
Public Shared table As String
[Code].....
So I want a shared method which finds all database entries and gives back an array of instances of its own type, e.g. Model(). That's why I wanted to keep the find-method shared and not bound to an instance.
View 4 Replies
Oct 24, 2011
Im trying to search the entire active directory to look for a group and then see if the current logged on user is listed, then take an action based on that result.So far i have the below code which doesnt return the users who are members of the group MyTestGroup. Could anyone assist or guide me to see how i achieve this?
View 4 Replies
Jun 7, 2011
How to list Enum's members in code? I have following Enum:
Public Enum TestEnum As int32
First = 0
Second = 2
Third = 4
Fourth = 6
End Enum
And I try to list all members of TestEnum via following code but it failed:
Public Class Form1
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
[Code].....
View 2 Replies
Jun 13, 2011
I have a 3rd party object that gets passed to one of my methods. The object contains 20 or so string members. How can I easily list all of the string names and their values?
View 2 Replies
Apr 16, 2012
I have an application that reads data from a SQL query into a list corresponding to the rows of the query. So, I have something like this:[code]What I'd like to know is if I should be using a class (as above) or a structure, and what the difference may be in terms of memory or runtime, if any.
View 3 Replies
Oct 25, 2009
In C++ using std::list, this is a simple matter of erasing what an iterator is pointing to (the erase statement returns the next valid member of the list).What's the best way to iterator through a list and remove members that match a certain criteria?
View 4 Replies
Jul 27, 2009
I'm working on small project for my site... basicly we have over 600 memembers.. and every day new member registers as we can keep of track of all the new members we would like to do the following
By CLicking Button Importing members.php list in to our program so we can see all the new members that have registerd
This is good for our modirator so they can keep an eye out on new members
SO basicly
I click button and my program grabs my user list from my website and puts it in my list box ( but program will have to go to page 2 then 3 and so on and so on )
View 26 Replies
Jan 5, 2010
ok this is annoying, i've got a structure RInteger.
Private VAR_Value As Integer
Private VAR_Max As Integer
Private VAR_Min As Integer
[code]......
View 5 Replies
Jan 24, 2010
Need to display the Gold, Silver, And Bronze members in a list box from a TXT file. Have problems isolation each group. When I run the program all of the name in the TXT file come into the list box.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDisplay.Click
Dim strMembers As String, objStreamReader As System.IO.StreamReader
[Code].....
View 3 Replies
Jun 23, 2011
I have 2 lists of classes with thousands of elements. Each class has the same structure.
I need to synchronize the 2 lists by comparing the version, the dateandtime and if they have been labelled to be deleted in one list.
is there any trick to make this very long process as fast as possible apart from splitting the work on threads?
View 8 Replies
Nov 5, 2011
I am working on an assignment that requires several classes, two of which inherit a base class.[code]...
Is it possible to create a list that would contain both the Checking balance and the Savings balance since they are separate classes?
View 10 Replies
Jun 27, 2011
I'm trying to create a group of engineers (a class) at a specific location (also a class) -- my code is bombing with a NullReferenceException at _engineers.Add(e), and I'm not sure why.[code]
View 3 Replies
May 5, 2011
Im having a hard time trying to pass the values from a list inside of a class. Im trying to display multiple lines of values from a list inside of a class. My "client" class stores multiple lines of values into a list(of class transaction), with the number value(num) counting each transaction that it adds to the list.
Code:
Public Class Client
Private m_tranlist As New List(Of transaction)[code]....
im trying to display each line that is stored in the list in a label, and im having major trouble. I know all of the results are added into the lists, but how do i call the list in my main form in order to display each line of all of the values? Would I have to look up an index or something?
View 1 Replies
Aug 15, 2006
If I have a generic.list(of ClassA), is there a simple way to create a deep copy of this list that will not affect the original copy? It seems to work if I have a generic list of Structures, but for some reason the copy constructor for lists of classes only copies pointers to the elements (or maybe a pointer to the whole list?). I would move to structures if it were not for the fact that I can't find a way to edit the members in the structs in the list. eg:list(0).a = 5 'Does not workIs there some way to get around this without declaring an instance of that structure, like this:dim str as StructA = list(0)str.a = 5I'd
View 2 Replies
Jun 28, 2010
I have upgraded a visual basic 2005 project to visual basic 2010 (.net framework 4.0). I want to list all obsolete functions used in this project in order to change it with newer ones. How can I treat obsolete functions warnings as errors in visual basic 2010 ms-build?
View 1 Replies
Jul 10, 2009
I have several different lists I want to call. They all have the same format for the class:
id, value, description, order.
Instead of creating a bunch a classes to return the all of the many lists, I wanted to use generics and just tell it what kind of list to return. However, I can not figure out how to populate the classes.
Here are 2 examples of function in my calling code. This should indicate the type of list and the stored proc used to get the data:
Public Function getTheEyeColors()
Dim glEyeColors As New GenericList
Return glEyeColors.GetALList(Of EyeColor)("GetAllEyeColors")
End Function
[Code] .....
View 4 Replies
Dec 3, 2009
bare with me here ok I posted on here a while back, like month to 2 months ago about creating an array of data (user inputed data). But was suggested to go the class route. After weeks of lengthly reading came up with a list collection class.
[Code]...
View 4 Replies
Oct 16, 2009
Say I have a List(Of Tag) with Tag being an object. One member of Tag, Tag.Description, is a string, and I want to make a comma-separated concatenation of the Description members.Is there an easier way to do this than to read the Description members into a List(Of String) and then use the Join function?
View 2 Replies
Jan 23, 2012
I have two classes, one nested in the other. [code]Neither "Name" or "ID" are unique between operations and records.I wish to construct a dictionary using LINQ = Dictionary(Of String, Of List(Of Integer), whereby the keys are uniqe examples of Names in my collection and the values are the collective set of distinct IDs that are associated with those names.
View 2 Replies
Jun 13, 2012
How can I structure my classes so that the user interfaces though a single class while the supporting classes are hidden from their view? I think its best understood in an example:
Public Class MyInterface
Public Economic as EconomicClass
Public Sub New()
MyBase.New()
[code].....
So you might ask why am I even separating them? It's strictly for others who will be working with this interface. I need to funnel them though a logical structure:
interface.Economic.MyMethod
interface.Currency.MyMethod
etc
This way everything is already handled for them in the background and they only need to run the method they need. I don't know if I can have it both ways in VB.NET.
View 23 Replies
Oct 24, 2009
Here is some example code of what I mean:
vb
Public Class Form1
Private Sub Button1_Click(ByVal sender as Object, e as systemEventArgs) Handles Button1.Click
[Code]....
View 5 Replies
Jul 10, 2009
I m trying to raise Click event of Textbox explictly but I m getting "Derived classes cannot raise base classes" error.[code]....
View 1 Replies
Sep 24, 2010
so far i got
code
For Each item As Reflection.FieldInfo In GetType(NameSpace.ClassWithNestedClasses).GetFields
rtfAppend(item.Name & ":" & Tab & item.GetValue(Me))
Next
For Each item As Reflection.PropertyInfo In GetType(NameSpace.ClassWithNestedClasses).GetProperties()
[code]...
which gets me the simple string vars and properties of my top class, but how can i apply this to loop through all sub classes and get there vars and props?
View 1 Replies
Oct 13, 2011
Searching the internet finds no less than 700 different ways and opinions to accomplish what I'm trying to do, and I would just like to know the simplest, most bullet-proof way possible.
[Code]...
I simply want to extract the string "bar," which is inside <hostName></hostName>I can do this easily enough with simple string functions, but I'd like to do it with one of the .NET XML classes/methods.
View 2 Replies
Nov 29, 2010
According to this post the code below should compile, while it is not.
class Base
protected m_x as integer
end class
[code].....
View 3 Replies
Oct 25, 2009
I migrate between C++ and VB.NET in my coding ventures... which leads to the occasional confusion about when something is by value or by reference in VB.NET.Let's say for example that I have an array of MyObject which is populated with a bunch of objects.
dim MyArr(5000) of MyObject. let's say that the information from this array travels throughout various data structures:
dim MyList as new List(of MyObject)
for i as integer = 0 to 5000 step 1000
Mylist.add(MyArr(i))
next
Under the above scenario, I believe everything is by reference. If I extract an entry from "MyTable" and modify its MyObject Members, I think that the original in MyArr will be modified.However, I have run into situations where I thought something was by reference, and it was by value. Are items always added to containers by reference, or are they sometimes added by value?
View 3 Replies