Click here to Skip to main content
15,919,422 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: GetObject Issues Pin
Carlos Mariano3-Jun-04 5:51
Carlos Mariano3-Jun-04 5:51 
GeneralRe: GetObject Issues Pin
Dave Kreskowiak3-Jun-04 12:13
mveDave Kreskowiak3-Jun-04 12:13 
GeneralGetting Email Address Pin
Member 112651927-May-04 16:44
Member 112651927-May-04 16:44 
GeneralRe: Getting Email Address Pin
Dave Kreskowiak28-May-04 2:53
mveDave Kreskowiak28-May-04 2:53 
GeneralSimple Syntax Question Pin
eggie527-May-04 13:28
eggie527-May-04 13:28 
GeneralRe: Simple Syntax Question Pin
Aaron Eldreth27-May-04 14:49
Aaron Eldreth27-May-04 14:49 
GeneralRe: Simple Syntax Question Pin
Anonymous27-May-04 14:51
Anonymous27-May-04 14:51 
GeneralVarPtr Function Pin
Pugman81227-May-04 12:29
Pugman81227-May-04 12:29 
i am tryin to convert a project that was made in 6.0 to .net and its a little tough. I was wondering if anyone knew of a way to mimic the function of the varptr in some way.

i have been trying to use the RTLmoveMemory dll call but in .net it is almost impossible to make it function. So i have been working to figure out how this function actually works. I would say i have it almost 75 percent pinned but when you send negative numbers to it comes back with numbers that i havent been able to put a mathmatical equation too. If there is any help with that it would be great.
Public Declare Sub CopyMem Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

but anycase i need to know how to use the varptr function because in the following snippet heres the problem and the reason i need to use it
<br />
    For i = 0 To (ROUNDS + 1)<br />
        dataX = 0<br />
        For K = 0 To 3<br />
            Call CopyMem(ByVal VarPtr(dataX) + 1, dataX, 3)<br />
            dataX = (dataX Or Key(j))<br />
            j = j + 1<br />
            If (j >= KeyLength) Then j = 0<br />
        Next<br />
        m_pBox(i) = m_pBox(i) Xor dataX<br />
    Next

rounds = 16
key contains a unicode work "text1"
key(0) = 116
key(1) = 101
key(2) = 120
key(3) = 116
key(4) = 49
when it first interates through the second for loop datax = 116
which is the first number in the byte array
but i have no idea where these other numbers are coming from

2 datax = 298313
3 datax = 7632253
4 datax = 1953856893

if i can figure out what varptr(datax) + 1 does and mimic its function and also figure out why when negative numbers are send to the api call it sends back really negative large numbers. Any help with any thing seen here would be awesome. thank you very much
GeneralRe: VarPtr Function Pin
Dave Kreskowiak28-May-04 2:37
mveDave Kreskowiak28-May-04 2:37 
GeneralData type conversion help needed when Using a VC++ dll with VB.NET Pin
Freddie Code27-May-04 12:23
Freddie Code27-May-04 12:23 
GeneralInVisble specify Column in ListView Ctrl Pin
skoizumi2911027-May-04 11:57
sussskoizumi2911027-May-04 11:57 
GeneralRe: InVisble specify Column in ListView Ctrl Pin
Dave Kreskowiak28-May-04 2:11
mveDave Kreskowiak28-May-04 2:11 
GeneralRe: InVisble specify Column in ListView Ctrl Pin
skoizumi2911028-May-04 15:02
sussskoizumi2911028-May-04 15:02 
GeneralSelecting a value from a combo box using code Pin
mincefish27-May-04 3:40
mincefish27-May-04 3:40 
GeneralRe: Selecting a value from a combo box using code Pin
Dave Kreskowiak27-May-04 4:26
mveDave Kreskowiak27-May-04 4:26 
GeneralRe: Selecting a value from a combo box using code Pin
mincefish27-May-04 6:10
mincefish27-May-04 6:10 
GeneralInterfacing COM Port with PC Pin
Lameta27-May-04 2:46
Lameta27-May-04 2:46 
GeneralRe: Interfacing COM Port with PC Pin
Dave Kreskowiak27-May-04 3:26
mveDave Kreskowiak27-May-04 3:26 
GeneralRe: Interfacing COM Port with PC Pin
Prerak28-May-04 2:50
Prerak28-May-04 2:50 
GeneralInterfacing COM Port with PC Pin
Lameta27-May-04 2:42
Lameta27-May-04 2:42 
GeneralRe: Interfacing COM Port with PC Pin
Dave Kreskowiak27-May-04 2:50
mveDave Kreskowiak27-May-04 2:50 
GeneralCostumizing .NET PropertyGrid at runtime Pin
thlund26-May-04 22:55
thlund26-May-04 22:55 
GeneralNeed help sending SMS with VB.NET Pin
Werner Vos26-May-04 22:05
Werner Vos26-May-04 22:05 
GeneralRe: Need help sending SMS with VB.NET Pin
Dave Kreskowiak27-May-04 1:01
mveDave Kreskowiak27-May-04 1:01 
GeneralFree Visual Studio VB.NET Std. Edition Pin
TigerNinja_26-May-04 16:13
TigerNinja_26-May-04 16:13 

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.