文档详情

Get the Address of Variables in Visual Basic获取VB变量地址.doc

发布:2015-07-27约7.99千字共4页下载文档
文本预览下载声明
Get ? the ? Address ? of ? Variables ? in ? Visual ? Basic ? PRODUCT ? :Microsoft ? Visual ? Basic ? for ? Windows PROD/VER:WINDOWS:5.0,6.0 OPER/SYS:WINDOWS KEYWORDS:kbVBp ? kbVBp500 ? kbVBp600 ? kbGrpVB ====================================================================== ------------------------------------------------------------------------------- The ? information ? in ? this ? article ? applies ? to: - ? Microsoft ? Visual ? Basic ? Learning, ? Professional, ? and ? Enterprise ? Editions ? for ? Windows, ? versions ? 5.0, ? 6.0 ? ------------------------------------------------------------------------------- SUMMARY ======= It ? is ? uncommon ? for ? a ? Visual ? Basic ? programmer ? to ? need ? to ? obtain ? low ? level information ? on ? a ? variable, ? such ? as ? its ? memory ? address. ? However, ? there ? are ? some API ? functions ? that ? require ? such ? information. ? This ? article ? describes ? the following ? Visual ? Basic ? functions ? that ? may ? help ? a ? Visual ? Basic ? programmer ? obtain this ? information: VarPtr ? - ? Returns ? the ? address ? of ? a ? variable. VarPtrArray ? - ? Returns ? the ? address ? of ? an ? array. StrPtr ? - ? Returns ? the ? address ? of ? the ? UNICODE ? string ? buffer. VarPtrStringArray ? - ? Returns ? the ? address ? of ? an ? array ? of ? strings. ObjPtr ? - ? Returns ? the ? pointer ? to ? the ? interface ? referenced ? by ? an ? object variable. MORE ? INFORMATION ================ WARNING: ? One ? or ? more ? of ? the ? following ? functions ? are ? discussed ? in ? this ? article; VarPtr, ? VarPtrArray, ? VarPtrStringArray, ? StrPtr, ? ObjPtr. ? These ? functions ? are ? not supported ? by ? Microsoft ? Technical ? Support. ? They ? are ? not ? documented ? in ? the ? Visual Basic ? documentation ? and ? are ? provided ? in ? this ? Knowledge ? Base ? article ? as ? is. Microsoft ? does ? not ? guarantee ? that ? they ? will ? be ? available ? in ? future ? releases ? of
显示全部
相似文档