由于Visual Basic语言中缺少指针这种现代编程语言中很重要的数据类型,使一些程序的编制复杂而运行低效。介绍了在VisualBasic语言中,通过API函数调用间接实现指针操作的技术,并将常用的指针操作集成到一个标准模块中。在未来的软件开发中,只需要简单调用这个标准模块,就可以编写出简洁高效的程序。给出并分析了一些实际利用指针操作的程序源代码,这些源代码解决了软件开发中经常遇到的几个问题。最后讨论了这些利用指针可能带来的弊端。
Due to lack of pointer which is a very important data type in modern computer languages,many programs compile complex and run inefficient by Visual Basic language.Some skills are introduced to indirectly manipulate pointers by Visual Basic API functions.Some common used methods of manipulating pointers are integrated into a module.In the software developing process in the future,it will be easy to write concise and efficient programs by calling this module.Source code of some pointer-used programs have been illus-trated and analyzed.Those programs can solve some common problems in software development.At last,shortcomings of using pointers are discussed.