Searching A Dump / Finding The Address It Is At In Hex
Jun 1, 2011How to search a dump.bin for a pattern then take the point it is at, i.e. 8DB358 and search that string? urls...
View 2 RepliesHow to search a dump.bin for a pattern then take the point it is at, i.e. 8DB358 and search that string? urls...
View 2 RepliesSay I have an array of doubles sorted from smallest to largest. What is the FASTEST way to find the closest value in the array that is LARGER/SMALLER than the search value if an identical value is not found.
Code:
dim myArray() as double = {1.245, 2.45, 3, 4.556, 5.4434}
'LARGER AND SMALLER SEARCH for 3 should obviously return 3 because its in the array.
'LARGER SEARCH for 2.46 should return 3 because it is the closest LARGER value
'SMALLER SEARCH for 2.46 should return 2.45 because it is the closest SMALLER value
I certainly can do this on my own, but I am looking for the fastest way.
I've been writing a socket application in which the client sends a user/pass combination which the server compares to a local text file. I'm only hacvin a problem with a small section where I have a do loop which does this comparison:(the string 'fromclient' has been defined earlier, as the information was received from the client)
fromfile As String
Dim sr As StreamReader = File.OpenText("C:PASS.txt")
Do While sr.Peek <> -1
[code]....
finding my public IP address using .NET?
I've seen code that simply gets the text output from whatismyip.com but I want to use my own domain to find the IP address because I know it will always be available and I can use it as much as I like.
I'm assuming that I could get my public IP somehow by pinging a remote server such as a domain name that I own, but I'm struggling to find anything other than the built in ping in VB.NET which simply gives true or false as a result.
I am working on arrays and I am currently having trouble with searching and finding arrays. In this example, the user should be able to enter a Name, and it will output that person's stats.
Here is the text file (note, I should be able to go to this text file, add a few more names and the code should still work, which is why I am using loops,arrays,text files instead of if and else statements),
Kobe,29,6,4
Allen Iverson,28,7,4
Jason Kidd,12,10,9
So if the user enters Jason Kidd in the text box, this will display in another text box:
Jason Kidd averaged 12 points, 10 assist, and 9 rebounds.
[Code]...
All right now is the searching part. I really do know how to search for what the user entered and display the statement in a text box. I kind of have an idea of how to just get the name, but for it to get the name and then all the data for that name puzzles me even more.-I tried using .contain, indexof and few others.
I know to display the information in the text box will be something like:
textboxoutput.text = PlayerName & " averaged " & PlayerPoints & " points, " & PlayerAssist &" assist, and " PlayerRebounds " &" rebounds"
So basically, I want it to where the user can enter a basketball players name and display the values for that name.
I want to find a Gateway of a particular network adapter, May be we can write code to find through this System.Net.NetworkInformation.GatewayIPAddressInformation but i don't how to code it.
View 2 RepliesI am writing a small program for work in VB.NET which I have not used a large amount of. I have come across a small problem that I cannot seam to find a solution for. I have created an array of buttons 113 deep and created a click even for every button. now the problem that I am having is that each button relates to a structure in another array and when a button is clicked I need to be able to lift the information out of the relating structure and load it into a few text files. What I cannot work out how to do is how to work out which button is clicked.the array is set out like below:
Sub SetButtonArray()
buttonarray(0) = btnPark0
buttonarray(1) = btnPark1
buttonarray(2) = btnPark2
[code]....
and finally the event itself which is where I need to be able to work out which button in the array sent it.
Private Sub ButtonArray_click(sender, e)
Dim park As Integer = sender.
LicencePLate.Text = sender.text
[code]....
searching through memory at a given address range, and match a string of bytes specified i.e.
FindArrayOfBytes(Byval str as String, Byval range_start As Integer, Byval range_end as Integer) As Integer
The function should return the address start of where the array of bytes was found.
I've been using some memory profilers to try and track down a memory leak - but am swamped with posibilities.
Am wondering if anyone has a function to dump all memory allocations that are present as a form closes/disposes.
I am trying to view all the properties of this:
Dim IISOBJ = GetObject("IIS://LocalHost/W3SVC/1")
For the life of me I can't figure out how to display all the property names of this object.
This current project involves dumping parts of WinAD objects into a db to search from.I am trying to make this go a bit faster. there could be 10s of thousands of records to create.So i figured threads would do the job.I have tried straight of creating new threads for each db insert. that does not work for long, after 1700 threads it crashes.
t = New Thread(DirectCast(Sub() MySQLLib.group(dmn1, grpn1, grpd1), ThreadStart))
t.Start()
[code].....
Is there a way in .NET (VB.NET or C#), when an exception happens, to dump the stacktrace of each thread? Basically I would like to reproduce what happens in Visual Studio's Debug->Threads window to see what each thread was doing when the exception happened
View 2 RepliesI use this code to create dump files of my database.Now what I want, if possible, is to encrypt it so that when it is viewed in notepad or anything similar, average users cannot read it.
Code
Call isDirectoryExist()
Call createDbBackupName()
Dim myProcess As Process = New Process
Dim strUser As String = "superadmin"
[Code]...
I know it sounds an odd request, but in order for others to gain access to an executable's VB.Net source code long after I have left the project I wanted to add something that could output the source code to notepad. This would be triggered by calling the exe with a numbner of parameters passed, like a pass phrase.I know how to pass the parameters and can call a proc based on what is passed, but I don't know if it's possible within that proc to dump the entire program's source code to notepad.
View 3 RepliesI have a third party GIS tool that I'm using to view maps with. Occasionally we have to take a snapshot of a portion of the map and dump it to a bitmap. The third party tool has a function that will give me the upper left and lower right coordinates of the area selected on the map. These coordinates come out as system.drawing.point objects.
The two point objects are then used to generate a new system.drawing.size object that will give the height and width of the area selected. The height and width values are passed to the constructor for the system.drawing.bitmap.All this works fine most of the time. Sometimes, however, when the user selects a particularly large area, the bitmap constructor bombs with a 'parameter is not valid' error. There isn't any documentation on this error, but I'm assuming it means the height and width are too big.
So what I'm wondering is... is there some way to check my height and width values prior to creating the bitmap and make sure they are in acceptable bounds?
I am getting data from my database and I want to have that data as a table in excel file.
So, I have written the following :
[Code]...
I have this code which saves the dump file in a static path or destination Process.Start("C:xamppmysql inmysqldump.exe", "-u root ipoint -r C:Backupipoint.sql") MsgBox("Backup Database Created")
I want to choose the path by using the folder browser dialog which will put the path on a textbox but this code below doesn't work Dim path2 As String = tb_path.Text Process.Start("C:xamppmysqlinmysqldump.exe", "-u root ipoint -r '" & path2 & "'ipoint.sql") MsgBox("Backup Database Created")
In Windows 7 if I launch Task Manager and select a process (eg:Notepad.exe) I can right click on this and select "Create Dump File".
This creates a dump of the file to my hard drive.I would like to do this programmatically.
I use this code to create dump files of my database. Now what I want, if possible, is to encrypt it so that when it is viewed in notepad or anything similar, average users cannot read it.
Call isDirectoryExist()
Call createDbBackupName()
Dim myProcess As Process = New Process
Dim strUser As String = "superadmin"
[Code] .....
Of course, if it encrypted, it has to be decrypted before querying the dump file. I have no idea what encryption I can do in vb.net and mysql
I modified my first code
Process.Start("C:/MySQL/bin/mysqldump.exe", " --host=localhost --user='" & strUser & "' --password=1234 """ & strDbName & """ -r """ & strPath & newDBName & """, --cipher /e /a '" & newDBName & "' ")
But the output file contains nothing whatsoever.
how can i dump a small html code in a variable? do i need to take array ?i need to write below line to a file "as is"
$a = "<style>"
$a = $a + "BODY{background-color:skyblue;}"
$a = $a + "TABLE{border-width: 1px;border-style: solid;border-color: black;border-collapse: collapse;}"
$a = $a + "TH{border-width: 1px;padding: 0px;border-style: solid;border-color: black;background-color:thistle}"
[code]....
how can i make VB turn off recognition of it's operative characters like $,<,>,= etc. which appears on above code but i need to dump it "as it is" in a file during runtime.
I have a VB.NET 2008 program that crashes about once a month at a customer location. My log file does not include any clues of the crash, the program just dies with the infamous SEND / DONT SEND window.So I need to setup my customers so that in the event of a program crash, a DUMP file is created automatically, without any user intervention. Everything I read on internet indicates that the drwtsn32.exe program does that.
View 3 RepliesAre there any IP Address filters or masks available in Windows Forms as per following screenshot? A backslash shouldn't be allowed or it should be filtered somehow.
View 1 RepliesSocketException was Unhandled: Only one usage of each socket address (protocol/network address/port) is normally permitted I get this error every time i click collect a second time.
[Code]...
Can anyone point me to some code which can help obtain the network address from the host IP and subnet mask?
View 3 RepliesI made web browser which consist address bar that I use it to type addressess in it i.ewhen I type [URL] it opens [URL] but when I go to anther page in google it doesnot show it's link in address bar lix InterntExplorer or other international browsers so how to show any link or any sub page's link in my browser address bar ?
View 1 RepliesI'm trying to use the DHCP API (using the references on pinvoke.net) to retrieve a computer's MAC address when given the IP address but I can't get the code to work. I've run all the C# code on pinvoke.net through the C#-to-VB converter but I'm stuck now.
Here's what I have so far. The value of res is always 5 (should be 0). Thing is, I can't find any documentation on what the return codes mean
vb
Private Sub GetMACDim client As String = "1.1.1.1" Dim server As String = "0.0.0.0" Dim si As New NativeMethods.DHCP_SEARCH_INFO si.SearchType = NativeMethods.DHCP_SEARCH_INFO_TYPE.DhcpClientIpAddress si.ClientIpAddress = Convert.ToUInt32(StringIPAddressToUint32(client)) Dim res As UInteger Dim oInfo As IntPtr
[code]....
I am trying to create a Random Number Generator (dice roller) that will dump its results into an open chat window. I was lead towards using DDE but have never used it before. Is this the best method? if not, What is?
View 1 Replies ' Use Your work Group WinNT://&&&&(Work Group Name) Dim DomainEntry As New DirectoryEntry("WinNT://Wokgroup") DomainEntry.Children.SchemaFilte
[code].....
I have to write a code in vb.net (2010).To get a data from Database A table 1 and dump it to Database B Table 2.What's the best way to do this? Most efficient way? I know I can do this very easily in sql management studio but I need to write a code to do this in vb.net.
View 2 RepliesIn member register page, I added email address validation but it only check the email address format, such as .com, .net, .org.If user inputs fake account such as aaabbb01010@gmail.com, how to verify it and return an error?
View 2 Replies