Re: Menu Path solve

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Rule #1: NEVER MODIFY GENERATED CODE!

If you're building an exe (and you should be for distribution), the project
manager will resolve all pathing internally at compile time so this is a
non-issue.

Dan



dp wrote:
> Taking the "IN LOCFILE(.....) portion out of the menu generator allows
> menues truely to be integrated in APP/EXE files. With the standard
> menu generator you will have to include the menu.mpx in the original
> location which also does not allow to make a true setup where the
> enduser selects the destination directory.
>
> Scenario.
> app directory: F:\myproject
> source fiels: F:\myproject\source
>
> The menu on the developing machine with the other SCX and prg is in
> the source directory.
> Running the "standard" Menu generator will generate some code like
> ON SELECTION PAD _1hv06ai6t OF (m.cMenuName) ;
>
> DO _1hv06ai6u ;
>
> IN LOCFILE("\Myproject\sourc\MyMENU" ,"MPX;MPR|FXP;PRG" ,"WHERE is
> MyMENU?")
>
> Now if on the destination machine there is no directory
> Myproject\source then the above menu code will popup that file
> selection box asking for the MyMENU even though the menu had been
> included in the project and compiled into the app file and had been
> already executed with the "DO Mymenu.mpr ....." Command earlier in
> the code.
>
> Changing the code to
>
> ON SELECTION PAD _1hv06ai6t OF (m.cMenuName) ;
>
> DO _1hv06ai6u
>
> - ommitting the LOCFILE part will work and resolve the above problem.


.



Relevant Pages

  • Re: Why C++ is so widespread (and Pascal is no fun)
    ... further on before it can resolve a construct. ... As a result, there is a lot more "stacked" during compile, waiting to be resolved. ... I always thought that preprocessor is the only issue that makes the C/C++ build process so slow. ... float F2 ...
    (borland.public.delphi.non-technical)
  • Re: C++/TCL Need Solution to Compile Error c2784
    ... jnior_300.h"}" and created other errors where it didn't even compile. ... C4273: 'GetVersion': inconsistent dll linkage ... jnior310tcl2.obj: error LNK2019: unresolved external symbol ... does resolve any function contained in it. ...
    (comp.lang.tcl)
  • Re: Why C++ is so widespread (and Pascal is no fun)
    ... further on before it can resolve a construct. ... lot more "stacked" during compile, ... C/C++ needs to know all types and function prototypes before it ... The preprocessor, and the way it is used for importing. ...
    (borland.public.delphi.non-technical)
  • Re: Compile error in hidden module - Trying to Open in Access 2002 a file which was built in Acc
    ... Decompile before conversion (google for more information). ... and Compile All modules are greyed out. ... Any ideas on how to resolve ...
    (microsoft.public.access.security)
  • Re: C++/CLI wrapper generator
    ... Is there a generator that would use reflexion to generate a ... C++/CLI wrapper. ... Can you not just compile with /clr and use the classes directly? ...
    (microsoft.public.dotnet.languages.vc)