Click here to Skip to main content
15,887,683 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: hi all Pin
Tom Deketelaere10-Mar-09 23:05
professionalTom Deketelaere10-Mar-09 23:05 
GeneralRe: hi all Pin
Ashfield11-Mar-09 3:16
Ashfield11-Mar-09 3:16 
QuestionCompare two Table Pin
zaimah10-Mar-09 18:18
zaimah10-Mar-09 18:18 
AnswerRe: Compare two Table Pin
Luc Pattyn10-Mar-09 18:47
sitebuilderLuc Pattyn10-Mar-09 18:47 
GeneralRe: Compare two Table Pin
zaimah10-Mar-09 19:03
zaimah10-Mar-09 19:03 
GeneralRe: Compare two Table Pin
Sebastian Br.10-Mar-09 21:26
Sebastian Br.10-Mar-09 21:26 
GeneralRe: Compare two Table Pin
zaimah10-Mar-09 21:55
zaimah10-Mar-09 21:55 
QuestionHow to get string from ReadProcessMemory Pin
Oliverikawood10-Mar-09 18:04
Oliverikawood10-Mar-09 18:04 
This is a snippet of my code.
Declare Function ReadProcessMemory Lib "kernel32" _
                              (ByVal hProcess As Long, _
                              ByVal lpBaseAddress As Long, _
                              lpBuffer As Any, _
                              ByVal nSize As Long, _
                              lpNumberOfBytesRead As Long) As Long

Dim bytearray As String * 65526
Dim GetWindowsFormsID As String

Call ReadProcessMemory(processHandle, bufferMem, ByVal bytearray, size, lp)
GetWindowsFormsID = ByteArrayToString(bytearray, retLength)

Function ByteArrayToString(bytes As String, length As Long) As String
    Dim retValStr As String
    Dim l As Long
    retValStr = String$(length + 1, Chr(0))
    l = WideCharToMultiByte(CP_ACP, 0, bytes, -1, retValStr, length + 1, Null, Null)
    ByteArrayToString = retValStr
End Function

I am sure the bytearray is not empty. But I don't know how to convert it to String. I use WideCharToMultiByte but it's failed. What am I doing wrong?
AnswerRe: How to get string from ReadProcessMemory [modified] Pin
Oliverikawood10-Mar-09 18:53
Oliverikawood10-Mar-09 18:53 
QuestionHttpWebRequest define the language Pin
picolo510-Mar-09 17:44
picolo510-Mar-09 17:44 
AnswerRe: HttpWebRequest define the language Pin
picolo510-Mar-09 18:02
picolo510-Mar-09 18:02 
Questionafter installation Pin
sathyan_829410-Mar-09 17:05
sathyan_829410-Mar-09 17:05 
AnswerRe: after installation Pin
Johan Hakkesteegt11-Mar-09 7:53
Johan Hakkesteegt11-Mar-09 7:53 
QuestionHow do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
r_mohd10-Mar-09 16:33
r_mohd10-Mar-09 16:33 
AnswerRe: How do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
Dave Kreskowiak10-Mar-09 18:18
mveDave Kreskowiak10-Mar-09 18:18 
GeneralRe: How do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
Pankaj Garg10-Mar-09 19:55
Pankaj Garg10-Mar-09 19:55 
GeneralRe: How do i keep on top a currently clicked form in win application. (Vb.net 2005)? Pin
Dave Kreskowiak11-Mar-09 2:59
mveDave Kreskowiak11-Mar-09 2:59 
QuestionCharacter Encoding and .bat files Pin
Alan Burkhart10-Mar-09 15:34
Alan Burkhart10-Mar-09 15:34 
AnswerRe: Character Encoding and .bat files Pin
Dave Kreskowiak10-Mar-09 18:17
mveDave Kreskowiak10-Mar-09 18:17 
GeneralRe: Character Encoding and .bat files Pin
Alan Burkhart10-Mar-09 19:04
Alan Burkhart10-Mar-09 19:04 
QuestionVB 2008 Pin
Manfred ramirez10-Mar-09 10:22
Manfred ramirez10-Mar-09 10:22 
Questionclass structure Pin
captainmogo10-Mar-09 7:48
captainmogo10-Mar-09 7:48 
AnswerRe: class structure Pin
Luc Pattyn10-Mar-09 8:26
sitebuilderLuc Pattyn10-Mar-09 8:26 
GeneralRe: class structure Pin
captainmogo10-Mar-09 8:48
captainmogo10-Mar-09 8:48 
GeneralRe: class structure Pin
Luc Pattyn10-Mar-09 8:55
sitebuilderLuc Pattyn10-Mar-09 8:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.