What is Native Code?
Native code is a form of computer programming code that is configured to function with the use of a specified processor. The exact structure of the native code is set up to respond to the instructions that are issued by the processor. All types of software function with native code, and are written to function at optimal efficiency with a selected type of processor or with processors that are manufactured to mirror the configuration of the specified processor. Because native code is written to allow full functionality when ran on a system using particular processing components, choosing to run the software using a given native code on a system without the required processor will result in limited access to the functions of the software package. In some cases, the software may not function at all. One way to run software using an incompatible native code is to make use of an intermediary software package that essentially converts the signals from the processor into data that the native
Native Code came out with Visual Basic 6.0. Running Native code is much faster than running P-Code in an exe case. When compiling to Native Code, Visual Basic compiles your software into the instruction set of the processor chip on your system One thing Ive noticed in Native Code, that unlike P-Code, it might give you strange bugs. Many of you might not have faced such a problem but I have. My code runs perfectly in the IDE as it runs P-Code. But after I compile it, I sometimes (very rarely) get strange errors. Most of them occur while unloading forms or some of them occur while displaying the Printer Dialog box over a modal form. I resolved these problems by putting the DoEvents statement in-between the code. I repeat, this happens only rarely and with some types of software. So what should you use? Leave it to Native Code. Optimize For Fast Code: This option is only available if you decide to compile your software to Native Code. This tries optimizing the code to make it faster but i