Search:

Type: Posts; User: Frank Cheng

Page 1 of 37 1 2 3 4

Search: Search took 0.01 seconds.

  1. Re: Can you make your application into the screensaver?

    Windows comes with a screen saver called "Photos". Can your app take a screenshot of itself once in a while and save the picture to the "Photos" screen saver's photo gallery location? IT can define...
  2. Replies
    11
    Views
    548

    Re: Leap year error

    Use UI
    Date feb march
    Move 02/28/1700 to feb
    Move 03/01/1700 to march
    showln (feb + 1) // 02/29/1700, should have been 03/01/1700
    showln (march - feb) // 2, should have been 1
    Showln (march -...
  3. Replies
    5
    Views
    345

    Re: Daylight saving

    Yes. The only way I know of is to call Win32 API from VDF to get that info.

    https://docs.microsoft.com/en-us/windows/win32/api/timezoneapi/nf-timezoneapi-gettimezoneinformation

    Frank Cheng
  4. Replies
    19
    Views
    703

    Re: Exporting 1 Million Records very slow

    I am just gonna throw it out there - any cursor based operation is gonna be slow if you are to fetch a lot of records.
    If you use the COM automation class for ADO, it will definitely be faster, but...
  5. Replies
    6
    Views
    453

    Re: Green swoosh of promise

    It's easy to do in C++/DLL. You just need to write a wrapper in C++ and export it as a DLL
    I have done it in my C++ programs. Haven't tried it in VDF. I don't imagine it to be difficult.
    ...
  6. Replies
    4
    Views
    410

    Re: VDF 7, Remove attribute

    This will work. I tested on VDF7



    Use Flexml

    Procedure Test
    Handle hXML hRoot hWorld hCollection hAttributes hRemoved
    Integer iVoid ilength
    String sFinal
  7. Re: Detect capslock enabled in a password cwebform

    I think Get_Key_State detects the key on machine that is hosting the WebApp. I don't think the code would work if you have some other people accessing your web site through another computer (or cell...
  8. Replies
    4
    Views
    347

    Re: B1 not installing

    Make sure you "unblock" the installer. See screenshot.

    The size is correct.

    14032

    Frank Cheng
  9. Replies
    5
    Views
    406

    Re: Suggestion for Auto_Label_State

    Vincent,

    If you would kindly show the entire DAW community what the recommended/official approach/guidelines for localizing a DAW desktop app (or share that sample you mentioned in the German...
  10. Replies
    5
    Views
    406

    Re: Suggestion for Auto_Label_State

    Is there any statistic behind that statement? I can't see how maintaining a set of source code per language can be considered "cheapest and easiest".

    Frank Cheng
  11. Thread: Byref bug

    by Frank Cheng
    Replies
    16
    Views
    666

    Re: Byref bug

    Oh, my bad, lol. I reported that in October of 2012. I guess I will check back to this thread in October of 2022. My money says it won't be fixed by that time.

    Frank Cheng
  12. Thread: Byref bug

    by Frank Cheng
    Replies
    16
    Views
    666

    Re: Byref bug

    I have written this some time ago

    http://www.frankcheng.com/byref.htm

    There are quite a few similar posts (ByRef + Auto type conversion) on this forum. You will find that DAW people will point...
  13. Replies
    4
    Views
    502

    Re: DF runtime bug

    Hi Harm,

    Thank you so much for the reply, and taking action for this subject matter. Compiler error/warning would be a great help.

    Frank Cheng
  14. Re: Suggestion: cJsonHttpTransfer new methods

    Hi Raveen,

    This is kinda OT. When calling ResponseHeader, all it does is to call HttpQueryInfo with HTTP_QUERY_CUSTOM from INTRANSF.dll. All DAW has to do is do change the flag to...
  15. Re: If at first you don't succeed, try, try, try again

    Why code review within the company while you can have your customers code reviewing for you ;)

    Frank Cheng
  16. Replies
    4
    Views
    502

    Re: DF runtime bug

    Lol, I am waiting for Vincent's reply.

    This topic has been brought up over and over and over again. DAW didn't fix it 15 years ago, they are probably not gonna fix it anytime soon.

    This is...
  17. Replies
    8
    Views
    1,219

    Re: New Array Question

    Hi Harm,

    Glad you like it. I was working with some COM related stuff and I suddenly thought about reference counting (AddRef/Release), then I thought about copy-on-write. The thought process was...
  18. Bug with Studio Editor with Accented character

    In the Studio, code editor,

    try typing in Alt+130 (use your numberpad), you will get the OEM character ♪ (which is character 13)
    try typing in Alt+131 (use your numberpad), you will get the...
  19. Replies
    11
    Views
    460

    Re: ASCII characters in studio editor

    Like Samuel said, I installed the keyboard layout "US International Keyboard" layout that allows me to do the accent e and other accented characters with ' + e. I am surprised that Alt+130 doesn't...
  20. Re: Possible AddHeader::cJsonHttpTransfer bug/issue

    I just confirmed the same thing with both 32 and 64 bit of DF 20 Alpha 2.

    Good find, Raveen!

    Frank Cheng
  21. Re: Possible AddHeader::cJsonHttpTransfer bug/issue

    The word "Authorization" is 13 characters in length. 13 + 1010 + 1 (null byte) = 1024 :cool:

    Frank Cheng
  22. Replies
    3
    Views
    326

    Re: Array Memory Leak?

    I tested it against VDF 16.1 and DF 20 Alpha 2 32 bit on Windows 10 Pro 64 Bit, Version 2004, Build 19041.508.

    Here are some numbers for memory consumption (in kilobyte) with each iteration with...
  23. Replies
    3
    Views
    326

    Array Memory Leak?

    Recently I was asked to look into the high memory/resource usage in our app. One of the things I am looking at is that we use lots of array of structs. We always manage to empty out those arrays when...
  24. Re: Possible AddHeader::cJsonHttpTransfer bug/issue

    Michael beats me to it. Was gonna suggest Postman or Wireshark.

    The common theme for this error is you somehow have a malformed token. Put a breakpoint on the AddHeader line, and examine the...
  25. Replies
    8
    Views
    1,219

    Re: New Array Question

    14 years later, I would like to answer my own question.

    If you have a property that stores a huge array (Let's say 2,000,000 of strings, and each string is 4,000 characters in length). Anytime you...
Results 1 to 25 of 909
Page 1 of 37 1 2 3 4