Search:

Type: Posts; User: Frank Cheng

Page 1 of 45 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Get the keyboard language when 2 different languages are installed

    Untested



    External_Function LoadKeyboardLayout "LoadKeyboardLayoutA" User32d.dll String pwszKLID UInteger Flags Returns Handle
    External_Function ActivateKeyboardLayout "ActivateKeyboardLayout"...
  2. Replies
    10
    Views
    317

    Re: The desktop

    vSHGetFolderPath will work as well. There are multiple Windows APIs that would get you the result. vSHGetFolderPath is basically calling SHGetFolderPath...
  3. Replies
    10
    Views
    317

    Re: The desktop

    Please don't do that. The official and documented way to find out the user desktop location is to call SHGetSpecialFolderPath / SHGetSpecialFolderLocation. Please do not "derive" the location by...
  4. Replies
    5
    Views
    234

    Re: Prevent closing of the app

    Use DfAllEnt

    Object oPanel is a Panel
    Set Size to 300 300
    Function Verify_Exit_Application Returns Integer
    Function_Return 1
    End_Function
    End_Object

    Start_UI
  5. Replies
    14
    Views
    612

    Re: Office/Word integration errors

    Hi Pieter,

    We have a VM that has Office 365 on, and we are able to replicate the issue. However, there is a lot more to the problem

    1) We tried your suggestion, however the user template path...
  6. Replies
    14
    Views
    612

    Re: Office/Word integration errors

    After spending the entire day debugging, we have ruled out DCOM being the culprit. We are at a loss at this moment unfortunately.

    Frank Cheng
  7. Replies
    14
    Views
    612

    Re: Office/Word integration errors

    1) We have encountered those errors recently with quite a few customers. The customers started calling in last week. There must have been a recent Office/Windows update that broke it. (We are able to...
  8. Replies
    3
    Views
    369

    Re: Calling DLL in DataFlex

    Another tutorial on DLL and callback function - https://www.youtube.com/watch?v=MpSBYfL1hnA

    Frank Cheng
  9. Replies
    4
    Views
    243

    Re: Command Line utility using DF 20.1

    Thanks Matt. It's definitely worth looking into.

    Frank Cheng
  10. Replies
    4
    Views
    243

    Command Line utility using DF 20.1

    Hi all,

    How do I write command line utility using DF 20.1?

    In C++, I just create a console project, and I can simply do



    int main()
    {
  11. Replies
    25
    Views
    917

    Re: Corrupt dbg file

    This error usually happens when the EXE and the DBG don't match. I suspect that you have a stray .DBG somewhere in your workspace paths, and the Studio picked up the wrong .DBG while trying to debug...
  12. Replies
    3
    Views
    369

    Calling DLL in DataFlex

    A quick tutorial on how to create and consume DLL.

    https://www.youtube.com/watch?v=lKds4Mqf7Og

    Frank Cheng
  13. Re: Simple unconditional constraint not working

    Good call!

    Frank Cheng
  14. Re: Has anyone implemented MS Compression APIs in DataFlex ?

    See this thread - https://support.dataaccess.com/Forums/showthread.php?66859-Win32-metadata-project

    The metadata is stored in a format that is very similar to the type library you use for creating...
  15. Re: Has anyone implemented MS Compression APIs in DataFlex ?

    Hi Raveen,

    Huffman encoding is good for compressing pure text because it uses something called a "frequency table" (I am pretty sure you can Google that for more details).
    If you are compressing...
  16. Re: Has anyone implemented MS Compression APIs in DataFlex ?

    I did a quick tutorial here. I am a YouTuber now! (no, not really)

    https://www.youtube.com/watch?v=X_jm4coa3qY

    Frank Cheng
  17. Re: Has anyone implemented MS Compression APIs in DataFlex ?

    It looks pretty straight forward to implement in DF. It should be a fun little project to implement.

    Frank Cheng
  18. Replies
    12
    Views
    604

    Re: Create New Com Automation Class

    I have no doubt that this is available to the generator since OleView is able to obtain that information from the type library, and the DF generator is merely loading/reading the exact same type...
  19. Replies
    12
    Views
    604

    Re: Create New Com Automation Class

    TypeLib for Excel in OleView

    15389

    Frank Cheng
  20. Re: Problems with gFileDateTime and DF20.1

    Actually, it might be. Again, untested.


    Move (UCharArrayToString(Win32_Find_Data.cFileName)) to FileDateTime[iFile].sFileName


    Frank Cheng
  21. Re: Problems with gFileDateTime and DF20.1

    Untested, but you can try the following for DF 20.0+


    Move (PointerToString(AddressOf(Win32_Find_Data.cFileName))) to FileDateTime[iFile].sFileName


    Frank Cheng
  22. Thread: Windows 11

    by Frank Cheng
    Replies
    21
    Views
    3,398

    Sticky: Re: Windows 11

    22000.652 (April 25th) fixed it.

    Frank Cheng
  23. Re: is there a faster way to split a string to an array?

    When appending an item to the end of the array, I don't think it calls "ResizeArray" every time.




    Use Windows

    #IF !@<201
    External_Function GetTickCount "GetTickCount" KERNEL32.DLL...
  24. Re: is there a faster way to split a string to an array?

    Use Windows
    Use FlexCom20.pkg

    #IF !@<201
    External_Function GetTickCount "GetTickCount" KERNEL32.DLL Returns DWORD
    #ENDIF

    Object oRegularExpression is a cComAutomationObject
    Set...
  25. Re: Find text in files - ignore commented lines

    Just an external tool. I don't use the Studio much. Like Wil said, just use the Hammer :D

    Frank Cheng
Results 1 to 25 of 1110
Page 1 of 45 1 2 3 4