skin a dll form

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #42670
    Support
    Keymaster

      Hello
      You saw other topics related to using AlphaControls and DLL's?
      Can you show a demo, how you call a form from Dll?

      #42772
      musti
      Participant

        QUOTE (Support @ May 28 2010, 04:09 PM)
        Hello
        You saw other topics related to using AlphaControls and DLL's?
        Can you show a demo, how you call a form from Dll?

        yes i saw other topics but couldnt find my answer <img src="style_emoticons//rolleyes.gif” style=”vertical-align:middle” emoid=”:roll:” border=”0″ alt=”rolleyes.gif” />

        here some info:

        Function in my DLL/Module

        function SetAppDetails(AppHandle, ParentWindow: Cardinal):TForm;stdcall;
        begin
        Application.Handle := AppHandle;
        Mainform := TMainForm.CreateParented(ParentWindow);
        MainForm.Left := 6;
        MainForm.Top := 12;
        MainForm.Visible := True;
        Result := MainForm;
        end;

        Load function:
        Procedure load(filedll: string; t : pchar);
        var
        form: TFormDLL;
        begin
        handle := loadlibrary(PChar(filedll));
        if (handle = 0) then begin
        showmessage('[Error – 9090] Loading Module problem!');
        exit;
        end;
        @form := GetProcAddress( Handle, t );
        f := Form(Application.Handle, Mainform.LoadPanel.Handle);
        end;

        buttoncode:
        Load('CleanModuleMP.dll','SetAppDetails');

        Demo Download :
        http://www.mediafire.com/?kzhw5lnemzh

        hope you can help me…

        br,
        Musti

        #42834
        Support
        Keymaster

          Hello
          If you have created the SkinManager component in the main application and have forms in DLL's, then easiest solution will be – to use run-time linking of the acntDx_R.bpl library.
          You have an experience with that? Application and Dll's must be compiled with enabled “build with run-time libraries” and must be used the acntDx_R.bpl library as run-time linked.

          #42864
          musti
          Participant

            QUOTE (Support @ Jun 21 2010, 07:36 AM)
            Hello
            If you have created the SkinManager component in the main application and have forms in DLL's, then easiest solution will be – to use run-time linking of the acntDx_R.bpl library.
            You have an experience with that? Application and Dll's must be compiled with enabled “build with run-time libraries” and must be used the acntDx_R.bpl library as run-time linked.

            hi,

            Thank you for your reply but it didn't work <img src="style_emoticons//unsure.gif” style=”vertical-align:middle” emoid=”:???:” border=”0″ alt=”unsure.gif” /> .
            I read the forum and saw there are some related threads but in russian.
            If you have a demo version which wil load forms in a panel i will be happy <img src="style_emoticons//laugh.gif” style=”vertical-align:middle” emoid=”:lol:” border=”0″ alt=”laugh.gif” />

            br,
            Musti

            #42892
            Support
            Keymaster

              QUOTE (musti @ Jul 3 2010, 01:11 PM)
              Thank you for your reply but it didn't work


              Please describe a problem which you have.

              There is a demo of dll using with acntD7_r.bpl package linked dynamically (“Build with run-time acntD7_R package” must be checked in both projects). Compiled in Delphi 7.

              #42904
              musti
              Participant

                QUOTE (Support @ Jul 8 2010, 11:42 AM)
                Please describe a problem which you have.

                There is a demo of dll using with acntD7_r.bpl package linked dynamically (“Build with run-time acntD7_R package” must be checked in both projects). Compiled in Delphi 7.

                Thank you <img src="style_emoticons//biggrin.gif” style=”vertical-align:middle” emoid=”:D” border=”0″ alt=”biggrin.gif” />
                This works

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.