Use An Existing Class To Implement The Standard DES (using ECB) To Encrypt DES File
Jul 27, 2010
link that implements DES algorithm with CBC. if I want to use an existing class to implement the standard DES (using ECB) to encrypt file, how do i do? I want to use this class because it implements each step of the algorithm.
View 4 Replies
ADVERTISEMENT
Mar 1, 2010
I need to create unit testing project for my current website. The currentw ebsite si written in VB. All unit testing examples are using interface to create mock object. My current VB class does not implment any interface. Can I add interface and implement it to my current class and functions without affecting or changing codes to any pages in my website that call the functions? For examples my current class is like:
[Code]...
View 2 Replies
Jun 22, 2010
I have designing a desktop application using VB.NET 2008 & SQL Server 2005.In my Application i have a frmUserRegistration to add a user & frmLogin to login to my application.i can add the user details in the database but my password seems to be in characters.Login form also works using my method. BUT MY PROBLEM IS THAT I DONT KNOW HOW TO STORE THE USER PASSWORD IN ENCRYPTED MANNER TO THE SQL DATABASE AND DECRYPT THE PASSWORD WHEN USER LOGIN TO MY APPLICATION.
View 14 Replies
Jun 30, 2011
I want to open an existing VB class file, add a few properties and close it again.
Simple enough, I thought: Take the CodeDom, a VBCodeProvider, parse the code (using the Parse-method), then identify the location where I want my stuff added (doubtless using some nifty LINQ expressions), add a bit of code and then have it generated and here we go.
Now I see that Microsoft apparently added the Parse method only for the fun of it but never implemented it.
What's the story here? Can I only generate code from scratch? Is it not possible to load existing code?
View 1 Replies
Jun 10, 2011
Suppose I have piece of code like this:
Public Interface ISomething
....
End Interface
[code]....
View 2 Replies
Feb 19, 2010
I am working on a general helper class to sort ListView SubItems. I wrote a base class that has much of the code I need. It includes a MustOverride for the Compare method so that the various inherited classes can implment their own comparisons based upon their type. For the value types, I end up with very similar code such as the following, where x and y are ListViewItems: Public Overloads Overrides Function Compare(ByVal x As Object, ByVal y As Object, ByVal sortColumnIndex As Integer, ByVal sortOrder As System.Windows.Forms.SortOrder) As Integer [code]
View 3 Replies
Jun 11, 2011
Is there a standard way for .NET class loaders to work? Say I compile this code:
[Code]...
Can I guarantee the compiled code will (in all implemented platforms) have the following output?
View 2 Replies
Jul 2, 2010
<edit on 7th July, 2010. Please see my 4th post in this threadfor the reason I have marked the post by bpellAS ANSWER </edit>
View 1 Replies
Apr 24, 2009
I want to be able to connect to an Email server and send email.Also I'd like to be able to FTP files to a server.
Are there standard .NET classes/objects that support this?
View 2 Replies
Jun 18, 2009
class inherit from another class and implement an interface?
View 4 Replies
Jan 10, 2010
We can add class in class diagram and voila the code show up. What about the other way around. Say we already have a class. Can we add that to class diagrams?
View 3 Replies
Aug 5, 2011
I have a workbook (Workbook1) that runs through some steps using visual basic, which ends up opening another workbook Workbook2). Once Workbook 2 is opened, I need to copy a section of data from it, into Workbook1 int a specific worksheet. I was able to do this by recording a macro, but the challange is, the name of Workbook 1, and Workbook 2, will vary by User. When I created the macro it uses the files as they are currently named. The section of code is below.
[Code]...
View 1 Replies
Dec 15, 2011
I build program to launch application(launch application can as local profile or can as network credentials) using Advapi32 "Create Process WithLogonW".but I got the problem, I can't capture message of standard output(Stdout) and Standard Error(stderr).could everyone help me how to capture message and the code?
View 1 Replies
May 27, 2009
I usually use standard button and do the settings like causevalidation etc if required.
i decided to use toolstrip and inserted some buttons but end up that it doesn't do the validation for control and also doesn't call leave event of textbox control.
so my question is, anyway to use regular button functionality for toolstripbutton or there is a way to add regular button on toolstrip.
View 4 Replies
Jul 19, 2010
I just would like to know how to implement class constructor in this language.
View 2 Replies
Nov 21, 2009
I want to modify the base Array class by creating a new class called "FileArray".I have some text files that are read into a string array. Each element in the array is a line from the text file. I want to update the GetValue method by overloading it or overriding it so that it will update some value that will give an indication to what the last line was. I have a couple of ideas on how I can do this:
1) Use a public integer, like intLine, that gets updated everytime GetValue is called.
2) Create a new property of Array, such as "LastLine" that would return the last line number (which would basically be the last index value +1) and then use a public array to store the files (though this is less desirable as the array may be used by several different functions)
An easier way would be to be able to determine the last element that was returned, which is basically what I think I am describing above.
View 2 Replies
Dec 23, 2009
Say I want to know more about a class mshtml.htmlinputelement for example.Say I want to know. What is his parent classes? What interface the class implement? How do I do so through object browser?
View 1 Replies
Apr 16, 2009
I am trying to build a class. I am having a difficult time conceptualizing how a class is built and how it works. I want to be able to build a USEFUL class and implement it in an application.
View 1 Replies
Nov 18, 2009
Implement singleton in a parent class.Infact what I want is that All the childs etc. should use same instance of the parent.
I have implemented singleton, Changed the scope of parent class's constructor to "Protected". But in the application when ever the new child's constructor is called i.e. "Dim abc as New Ch1()" the constructor of Parent is called (as it is Proctected and can be access from child).
View 2 Replies
Mar 16, 2009
I've never actually used Reflection, but I've been warned in the past that using it may cause slow performance. My question is what part(s) of it is/are slow.
I'm thinking about creating a board game and I wanted to implement the player class through plug-ins. That way there could be several different player classes (i.e. human players, and several configurable AI classes). If implemented this way, where should I expect performance hits? Only when initializing the player class? When passing arguments to methods in the player class? In the entirety of execution of methods from the player class? Or is it going to affect the whole application?
The reason I ask is that the AI will be extremely processor intensive. Through testing it seems like it may take around 1-30 seconds to determine a move on my quad core (Core 2 Q6600) processor, depending on the effort spent to optimize the move and testing different branches on separate threads.
My concern is that if I implement the AI via a plug-in, the move determination would slow down considerably to the point where it wasn't playable on lesser hardware.
View 2 Replies
Nov 22, 2011
I have several similar classes but only want to instantiate one of these classes dependant on a selection from my main form.
View 4 Replies
Jan 10, 2010
If we make a class and implement tostring, should we support some interface?
View 5 Replies
Mar 15, 2012
i cant seem to find an answer to, i recently decide to start using class libraries, but cant seem to figure them out. I need to be able to assign the class details to fields within my texboxes and controls found in the Tab, i have placed an image with a basic layout of the controls on the tab. My question is: 1stly how do i make it so that the class library performs the function within the tab without having to create a seperate form for it with its own controls(or do i need to do that?)Secondly: In the next tab, can i create a seperate class library for it if it performs another task such as issue? how to create and place them as refferences, i just cant figure out how to marry the controls?
View 14 Replies
Jun 27, 2009
I found what i was looking for on this old thread but I don't know exactly what to do woth it. The code given by Tall Dude seems to compile fine except for two errors..
[Code]...
View 2 Replies
Nov 5, 2011
Im getting the following error on the code I transleted from C# to VB.NET below (original code can be found here:
Class 'QueryParameterComparer' must implement 'Function Compare(x As oAuthBase2.QueryParameter, y As oAuthBase2.QueryParameter) As Integer' for interface 'System.Collections.Generic.IComparer(Of QueryParameter)'.
[code]......
View 1 Replies
Feb 24, 2009
How does one implement something as Public ReadOnly Property within a class.
CODE:
View 3 Replies
Sep 24, 2010
Suppose that I want to implement another method for a class namely hasFiles for System.IO.Directory , How can I do that?
for example if I add <Extension()> _ tag before each function or Sub I can add a new function or method for each Control.
View 3 Replies
May 30, 2010
I still can't understand classes in VB.net and I fell myself like a child.. I have found on MSDN example:Almoust everything is clearly, but DataGridView1 is created in this code in programm. If I have already DataGridView1 that created in designer - how can I override it events and ground it on other class?
View 4 Replies
Mar 18, 2010
I have a VB.NET solution (call it S1) which produces a .vb file (say File1.vb) to be compiled and then included in another solution (S2). S2 is a console app which I want to run from a cmd prompt, not VS. My plan is to shell out from S1 to run a batch file to do the compile and then copy the .dll file, overwriting the old one in S2 (then I can run S2 in a separate operation). Here's the batch file for the compile:
View 4 Replies
May 8, 2009
I have written a method to replace multiple characters in a string. Is it possible to overload my own method to the existing method "Replace" in the String namespace?
Function Replace(ByVal inValue As String, ByVal ParamArray replacechars() As String) As String
For i As Integer = 0 To UBound(replacechars) Step 2
[Code].....
As you can see it have a different signature from the public method so I think it would be nice to have my method overloading the existing method
I can live with it if it isn't possible. See it as a "nice to have"
View 2 Replies