Post Reply 
[PSP] [Source code] Simple Popstation GUI v3.00 beta
Author Message
pka4916
Neophitic Presence

Posts: 5.1711
Threads: 0
Joined: 22nd Dec 2007
Reputation: 0
E-Pigs: 0.5000
Offline
Post: #28
RE: [PSP] [Source code] Simple Popstation GUI v3.00 beta
ZiNgA BuRgA Wrote:
pka4916 Wrote:I created a new Varptr procedure and that one is working fine.. I think.
In VB6, VarPtr, I think, is a language construct - you can't really just make your own.

VarPtr returns the pointer to a variable.  Kinda like the & operator in C/C++.  I don't know what .NET uses - you'll have to look into how to retrieve a pointer to a variable.

Also, thanks for the compliments :)  Good luck.


This is how it's done in VB.net

Visual Basic Code
 Public Function VarPtr(ByVal o As Object) As Integer
    Dim GC As System.Runtime.InteropServices.GCHandle =   System.Runtime.InteropServices.GCHandle.Alloc(o,System.Runtime.InteropServices.GCHandleType.Pinned)
     Return GC.AddrOfPinnedObject.ToInt32
  End Function



when I compare vb and and vb.net

bytbuffC has data in both and is also the exact same data
bytbuff has only data in vb6 and not vb.net

When I look at the ZS  at that point

I see that the numbers are way off for some of the variables.

guess I need to know what is filling bytbuff ??

(This post was last modified: 23/01/2008 04:13 AM by ZiNgA BuRgA.)
11/01/2008 09:55 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: [PSP] [Source code] Simple Popstation GUI v3.00 beta - pka4916 - 11/01/2008 09:55 AM
Thread Revived!!! - Necro-Bot - 15/08/2009, 09:47 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)

 Quick Theme: