Skip to main content
Corrected pointer to reference.
Source Link
Brett Ryan
  • 27.9k
  • 34
  • 133
  • 171

A constant will be compiled into the consumer as a literal value while the static string will serve as a pointerreference to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.

A constant will be compiled into the consumer as a literal value while the static string will serve as a pointer to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.

A constant will be compiled into the consumer as a literal value while the static string will serve as a reference to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.

Spelling correction.
Source Link
Brett Ryan
  • 27.9k
  • 34
  • 133
  • 171

A constant will be compiled into the consumeerconsumer as a literal value while the static string will serve as a pointer to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.

A constant will be compiled into the consumeer as a literal value while the static string will serve as a pointer to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.

A constant will be compiled into the consumer as a literal value while the static string will serve as a pointer to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.

Source Link
Brett Ryan
  • 27.9k
  • 34
  • 133
  • 171

A constant will be compiled into the consumeer as a literal value while the static string will serve as a pointer to the value defined.

As an exercise, try creating an external library and consume it in a console application, then alter the values in the library and recompile it (without recompiling the consumer program), drop the DLL into the directory and run the EXE manually, you should find that the constant string does not change.