Results 1 to 9 of 9

Thread: Fehlermeldung bei Aufruf eines Themes

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Germany, Mannheim
    Posts
    393

    Default Solved: Fehlermeldung bei Aufruf eines Themes

    Hallo liebe Leute,

    ich hätte da mal wieder ein Problem:

    Ich will meinem Programm ein (vermeindlich) schöneres Aussehen verpassen. (Mit haben die Beispiele von VDF19 gut gefallen)
    Also schnell den Aufruf des Themes eingebaut:
    Set peVisualTheme to xtpThemeOffice2013Word

    Alles läuft. Jedenfalls bei mir.
    Bei meinen Kollegen, die mit dem Client arbeiten kommt die Fehlermeldung
    4402 "Cannot load Theme resource file Office2013.dll Office2013Word.ini"

    Die Office2013.dll existiert bei den Clients im Programs-Verzeichnis, die Ini-Datei finde ich auf meinem Computer nirgendwo. Das Programm läuft (bei mir) aber fehlerfrei.

    Irgendwelche Ideen, wo ich diese Ini-Datei herbekomme, oder liegt mein Problem an einer ganz anderen Stelle?
    Last edited by Roman Köhler; 6-Dec-2017 at 09:40 AM. Reason: solved
    Regards / Viele Grüße

    Roman Köhler
    Gartenstadt-Genossenschaft Mannheim eG

  2. #2
    Join Date
    Jan 2009
    Location
    Richmond, VA
    Posts
    5,152

    Default Re: Fehlermeldung bei Aufruf eines Themes

    Roman,

    The set of theme DLLs should be in a "Styles" subfolder in Bin (where DataFlex 19.0 is installed) - not in the Programs folder of the workspace. The 19.0 client installation should already have them in place.

    Also, there is no .ini file - that's just the error message that happens when the theme dlls are not in the proper location. If you rename that folder on your dev machine and run your app you'll get the same error.
    Best regards,

    -SWM-

  3. #3
    Join Date
    Feb 2009
    Location
    Germany, Mannheim
    Posts
    393

    Default Re: Fehlermeldung bei Aufruf eines Themes

    Hi Stephen,

    I recognize the problem.

    None of the clients has an installed client-version. We don't want to update over 30 PCs for every new Version of VDF.
    There's a directory on our fileserver, where all Client-files are placed. With a manifest-file, which initializes all needed ocx-files, it is only necessary to replace this directory for every new version of VDF and every user can work without installing the vdf-client. (Don't worry: we have bought a sufficient number of clients)

    This seems to be the first restriction of this configuration I discovered.

    OK. Then themes will not work with us. That's a pity but not changable.
    Regards / Viele Grüße

    Roman Köhler
    Gartenstadt-Genossenschaft Mannheim eG

  4. #4
    Join Date
    Jan 2009
    Location
    Richmond, VA
    Posts
    5,152

    Default Re: Fehlermeldung bei Aufruf eines Themes

    Roman,

    Have you tried placing the theme dlls in a Styles subfolder in the all-in-one folder you created?
    Best regards,

    -SWM-

  5. #5
    Join Date
    Feb 2009
    Location
    Germany, Mannheim
    Posts
    393

    Default Re: Fehlermeldung bei Aufruf eines Themes

    Stephen,
    yes. After your first answer, I've tried this immediately.
    Our folder-structure now looks in this way:
    Click image for larger version. 

Name:	Ashampoo_Snap_2017.12.06_13h59m54s_002_.jpg 
Views:	71 
Size:	8.8 KB 
ID:	11555
    In both styles-folders are the following files: Office2007.dll, Office2010.dll, Office2013.dll, VisualStudio2012.dll, VisualStudio2015.dll, Windows7.dll
    Regards / Viele Grüße

    Roman Köhler
    Gartenstadt-Genossenschaft Mannheim eG

  6. #6
    Join Date
    Feb 2009
    Location
    Maasland, The Netherlands
    Posts
    2,353

    Default Re: Fehlermeldung bei Aufruf eines Themes

    Do you have a Programs folder for each user??? Otherwise put Office 2013.dll in the Programs folder.
    Best regards,

    Peter van Mil
    Appvantage b.v.

  7. #7
    Join Date
    Feb 2009
    Location
    Germany, Mannheim
    Posts
    393

    Default Re: Fehlermeldung bei Aufruf eines Themes

    Hi Peter,
    I've solved the problem and published the source-code.
    Please look at this.
    The problem was the ResourceImagePath, which isn't created, when you haven't installed the VDF-Client or -Developper.
    Thx for your answer.
    Regards / Viele Grüße

    Roman Köhler
    Gartenstadt-Genossenschaft Mannheim eG

  8. #8
    Join Date
    Feb 2009
    Location
    Germany, Mannheim
    Posts
    393

    Default Re: Fehlermeldung bei Aufruf eines Themes

    So, I've found a solution (debugger thank you).
    I have seen that the procedure LoadResourceImagesFromFile in cCJCommandBarSystem.pkg sets the directory for the styles.
    So, I have copied this procedure in my own subclass and changed in in the way, that the styles are searched in the program-path for users, who haven't installed the client and the ResourceImagePath for the programmers, who have installed VDF.
    The source-code for this procedure now looks like this:

    Code:
        Function LoadResourceImagesFromFile String sFile String sIni Returns Boolean
            Handle hoGlobal hoRes hoWorkspace
            Variant vGlobal vRes
            Boolean bOk bFound
            String sDir sProgramPath
    
             Get phoWorkspace of oApplication to hoWorkspace
            Get psProgramPath of hoWorkspace to sProgramPath
            Move (sProgramPath + "\Styles") to sProgramPath
            File_Exist sProgramPath bFound
    
            Get Create (RefClass(cCJCommandBarsGlobalSettings)) to hoGlobal
            Send CreateComObject of hoGlobal
            If (not(IsFileNameQualified(sFile))) Begin
                 If (bFound = True) Begin
                    Move sProgramPath to sDir 
                End
                If (bFound = False) Begin
                    Get ResourceImagesPath to sDir
                 End
                Move (sDir + "\"+ sFile) to sFile
            End
            Get ComResourceImages of hoGlobal to vRes
            Get Create (RefClass(cCJResourceImages)) to hoRes
            Set pvComObject of hoRes to vRes
            Get ComLoadFromFile of hoRes sFile sIni to bOk
            Send Destroy of hoRes
            Send Destroy of hoGlobal
            Function_Return bOk
        End_Function
    This works fine.
    Regards / Viele Grüße

    Roman Köhler
    Gartenstadt-Genossenschaft Mannheim eG

  9. #9
    Join Date
    Feb 2009
    Posts
    1,420

    Default Re: Solved: Fehlermeldung bei Aufruf eines Themes

    Gute Arbeit Roman,

    leider gibt es keine Möglichkeit den DBExplor und den DBBldr aufzurufen.
    Da müßte DataFlex ran und ein Update anbieten.
    Aber wie DataFlex kenne (was die Scheiben bei ihrem neuen Auto fehlen, wenn sie das nächste Auto kaufen sind wieder welche drin) passiert nichts.
    Regards,
    Dittmar Stiebitz

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •