Delphi to C++ builder



  • hi every body ,
    i have completed my Components using delphi ( currently Delphi 7 )my components are devided into Full and trial version , with the Trial i use conditional defined so the result is a nag screen . and the packages are in Design and run time . so every thing goes good with delphi ( both Full or Trial version ) .
    but when i use C++ builder ( currently C++ builder 6 is used ) i don't have a problem with the full Version . the problem is with the Trial one No nag screen . all the appropriate *.hpp files are well generated .

    please is there any procedure i should follow to do this and why the nag screen is not shown in C++ builder while it's in Delphi .

    please help.



  • Hello

    we can't help without any code.

    akari



  • what do you mean by code should i give the whole pas code of my component or just the piece where i use the delphi Condtional Define:

    here is the delphi contional define :
    ..
    begin
    {$IFDEF TSHOW_NAGSCREEN} // the Conditional Define
    if not (csDesigning in AComponent.ComponentState) then
    begin
    MessageBox(0, PChar(NotReg),Appl,
    MB_OK ); // here is the Nag Screen

    end;

    {$ENDIF} // the end of the Conditional Define
    end;
    ..

    and it gives the requested result in delphi but in C++ builder ???????????



  • Hello

    I think that the define TSHOW_NAGSCREEN, setted in the Delphi project, does not influence the Builder Project.

    Maybe you can test it. Make a new simple Delphie project with an output influenced by a define. Then use that in a Builder project like the above one and check the output.

    akari



  • yes that's it the C++ builder is not influenced by that Compiler Define ,

    what do you suggest as an equivalant to that Compiler Define , or other ONE



  • In the options there should be an extra text field for Delphi defines.
    (currently I have no BCB installed here)


Anmelden zum Antworten