Search:

Type: Posts; User: Frank Cheng

Page 1 of 45 1 2 3 4

Search: Search took 0.03 seconds.

  1. Replies
    14
    Views
    504

    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...
  2. Replies
    14
    Views
    504

    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
  3. Replies
    14
    Views
    504

    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...
  4. Replies
    3
    Views
    303

    Re: Calling DLL in DataFlex

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

    Frank Cheng
  5. Replies
    4
    Views
    188

    Re: Command Line utility using DF 20.1

    Thanks Matt. It's definitely worth looking into.

    Frank Cheng
  6. Replies
    4
    Views
    188

    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()
    {
  7. Replies
    25
    Views
    679

    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...
  8. Replies
    3
    Views
    303

    Calling DLL in DataFlex

    A quick tutorial on how to create and consume DLL.

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

    Frank Cheng
  9. Re: Simple unconditional constraint not working

    Good call!

    Frank Cheng
  10. 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...
  11. 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...
  12. 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
  13. 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
  14. Replies
    12
    Views
    529

    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...
  15. Replies
    12
    Views
    529

    Re: Create New Com Automation Class

    TypeLib for Excel in OleView

    15389

    Frank Cheng
  16. 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
  17. 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
  18. Thread: Windows 11

    by Frank Cheng
    Replies
    21
    Views
    3,072

    Sticky: Re: Windows 11

    22000.652 (April 25th) fixed it.

    Frank Cheng
  19. 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...
  20. 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...
  21. 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
  22. Re: Find text in files - ignore commented lines

    I wrote my own a long time ago. It can also search words they are inside strings only. I knew better to wait for the feature to be added to the Studio...

    Frank Cheng
  23. Replies
    3
    Views
    185

    Re: hashed values

    Before 19.1+, the quickest way to load a string to an array of CHAR is to do pointer/address manipulation, and that is exactly what the code is doing.
    See Sonny's explanation here -...
  24. Re: is there a faster way to split a string to an array?

    My company gave me a new laptop less than a year ago (it's still in tip-top shape). When I saw your numbers (in VM!), I started questioning my own reality, lol. Then it dawned on me about the...
  25. Re: is there a faster way to split a string to an array?

    On a related note - since the function StrSplitToArray uses the function "Mid". I thought I would test the performance of the "Mid" function

    On VDF 16.1, the following program takes 483ms (0.5...
Results 1 to 25 of 1106
Page 1 of 45 1 2 3 4