Jump to content

Leaderboard


Popular Content

Showing content with the highest reputation on 05/15/23 in all areas

  1. PeterBelow

    Can anyone spot the errors?

    Char (singular) is an ordinal type and can thus be used as index for an array but a string is not an ordinal type. The compiler will convert a single char to a string if required, e.g. if you assign a value/variable of type char to one of type string, but not vice versa. Even a string consisting of only a single character cannot be assigned directly to a variable of type char.
  2. Remy Lebeau

    Intercept "WM_COPY" on Windows

    That is the OLD way to monitor the clipboard. Since Vista, the NEW way is using a Clipboard Format Listener instead, registered via AddClipboardFormatListener() and handling WM_CLIPBOARDUPDATE messages. Have you read Microsoft's documentation on Transferring Shell Objects with Drag-and-Drop and the Clipboard and Handling Shell Data Transfer Scenarios yet? Per Shell Clipboard Formats, you will likely want to implement the CFSTR_FILEDESCRIPTOR and CFSTR_FILECONTENTS formats. That way, you can put descriptions of the files onto the clipboard, and when they are pasted then you can stream in the actual file data as needed.
  3. programmerdelphi2k

    Intercept "WM_COPY" on Windows

    @gioma maybe exists some other msg about "file created on disk...", I dont know exactly because my knowledge it's not enough here! try send the msg after the files was copyed from your app...
  4. programmerdelphi2k

    Intercept "WM_COPY" on Windows

    I'm not an expert on Windows messages, but you would have to intercept the "WM_DRAWCLIPBOARD" message, to receive notification that MSExplorer intends to copy some object (file/folder/etc...). But first your app must be registered with a "Clipboard Viewer" ( SetClipboardViewer() ), and when you finish the app, do the "Un-Register" ( ChangeClipboardChain() ) try verify this message in your app: procedure WMDrawClipboard(var Msg: TMessage); message WM_DRAWCLIPBOARD; procedure WMChangeCBChain(var Msg: TMessage); message WM_CHANGECBCHAIN; NOTE: This does not guarantee that the file was actually copied, as you are only receiving the notification that something will be copied. The file may be large and the other application will need to check if the file "already exists on disk"
  5. Dave Nottage

    Android with Delphi 10.4.2 Sydney SDK API 32 /versions/12

    That's not your complete manifest, however given the error message, you need to add android:exported="true" To the activity, e.g.: <activity android:name="com.embarcadero.firemonkey.FMXNativeActivity" android:exported="true" etc
  6. @soft4u Bạn đã cài đặt đúng PAServer trên macOS chưa? Bạn có quyền truy cập vào các thư mục nơi nó được cài đặt và nơi dự án của bạn sẽ được tải lên không? Có bất kỳ tường lửa nào chặn truy cập hoặc bất kỳ quy tắc nào để kết thúc kết nối wifi trong một khoảng thời gian không? Have you installed PAServer correctly on macOS? Do you have access privileges to the directories where it is installed and where your project will be uploaded? Is there any firewall blocking access, or any rule to end a wifi connection during a period?
  7. DelphiUdIT

    Anyone know of an AVIF Image Decoder for Delphi?

    They only seems to have static library, not dll. There is a project for Lazarus / FPC that have this dll. This is the main branch: https://github.com/bgrabitmap/lazpaint The libraries "libavif.zip" (but i don't know nothing about them) are in subfolder "lazpaint/release/windows". Look at license of course. bye
  8. stacker_liew

    How To Debug This Memory Leak?

    No, just change the main form's StyleBook's properties to nil, and reassign it again. And it works, I don't know why.
  9. Came in the mail, got two copies, even though I only ordered one.
  10. David Heffernan

    Can anyone spot the errors?

    I don't really understand this either. I think @PeterBelow was just stating this clearly, and did a good job of it.
×