<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Tak z tohodle jsem nic rozumného nevyzískal.<br>
    <br>
    Ale už předtím mi selhala snaha dostat to do<br>
    1. <span style="color: rgb(35, 38, 41); font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(227, 230, 232); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">List<String^>^</span>
    - ani nešla deklarovat proměnná takového typu<br>
    2. <span style="color: rgb(35, 38, 41); font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", "Liberation Mono", Menlo, Monaco, Consolas, monospace; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(227, 230, 232); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">std::vector<std::string>
</span>o kterých se tam zmiňují<br>
    <br>
    jediné co jse, je<br>
    auto lst = e->Data->GetData(DataFormats::FileDrop, false);<br>
    (je jedno zda fale/true)<br>
    <br>
    lst->GetType() vyplivne samořejmě zase System.String[]<br>
    <br>
    ale nemá žádný ->Items, nebo něco takovýho, přes co bych z něj
    dostal ty stringy<br>
    <br>
    PH<br>
    <br>
    <div class="moz-cite-prefix">Dne 22.09.2022 v 16:49 Nesvacil Jiri
      napsal(a):<br>
    </div>
    <blockquote type="cite"
      cite="mid:ae6a6749-56de-6109-39fb-a69d2f62e4d1@posys.cz"><a class="moz-txt-link-freetext" href="https://stackoverflow.com/questions/32786187/passing-an-array-of-strings-from-c-to-c-sharp">https://stackoverflow.com/questions/32786187/passing-an-array-of-strings-from-c-to-c-sharp</a>
      <br>
      <br>
      Dne 22.09.2022 v 16:43 Pavel Hudeček napsal(a):
      <br>
      <blockquote type="cite">Trochu jsem s tím pohnul:
        <br>
        Collections::Specialized::StringCollection ^ list =
        (Collections::Specialized::StringCollection
        ^)e->Data->GetData(DataFormats::FileDrop, true);
        <br>
        for (int n=0; n<list->Count; n++)
        listBox1->Items->Add(list[n]);
        <br>
        To jde aspoň přeložit:-)
        <br>
        Ale stejně to skončí na chybě, že System.String[] nelze
        přetypovat na System.Collections.Specialized.StringCollection.
        <br>
        Takže je ten výstup jinej než z Clipboard.GetFileDropList
        <br>
        <br>
        Pořád tedy to samé: Jak v c++ udělat System.String[]?
        <br>
        <br>
        PH
        <br>
        <br>
        <br>
        Dne 22.09.2022 v 16:25 Pavel Hudeček napsal(a):
        <br>
        <blockquote type="cite">No to přepínátko funguje jen částečně,
          asi podle toho, které části mají udělané a když stránka
          neobsahuje alternativní jazyk, tak ho nezobrazí vůbec. Např. u
          toho clipboardu se tím do c++ přepne definice, ale example už
          ne. Ten jde přepnout třeba do vb.
          <br>
          <br>
          PH
          <br>
          <br>
          Dne 22.09.2022 v 16:04 Ladislav Vaiz napsal(a):
          <br>
          <blockquote type="cite">Asi nechcete slyšet knížecí radu, ale
            já bych přešel na C# :-(
            <br>
            V MSDN se někdy dají jazyky přepnout, např. v
<a class="moz-txt-link-freetext" href="https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.clipboard.getdata?view=netframework-4.0">https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.clipboard.getdata?view=netframework-4.0</a><br>
            je přepínátko nad nadpisem vpravo.
            <br>
            L.
            <br>
            <br>
            On 22.09.2022 15:55, Pavel Hudeček wrote:
            <br>
            <blockquote type="cite">Dobrý den všem,
              <br>
              <br>
              tady
              <br>
              Provide file drag and drop functionality - Visual C++ |
              Microsoft Learn
<a class="moz-txt-link-rfc2396E" href="https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/language-compilers/provide-file-drag-drop-functionality"><https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/cpp/language-compilers/provide-file-drag-drop-functionality></a><br>
              je popis jak udělat, aby se v listboxu zobrazil seznam na
              něj hozeých souborů.
              <br>
              To funguje.
              <br>
              <br>
              Jak totéž udělat v C++ CLR?
              <br>
              <br>
              První část s DragEnter funguje:
              <br>
              private: System::Void listBox1_DragEnter(System::Object^
              sender, System::Windows::Forms::DragEventArgs^  e) {
              <br>
                          if
              (e->Data->GetDataPresent(DataFormats::FileDrop))
              <br>
                              e->Effect = DragDropEffects::All;
              <br>
                          else
              <br>
                              e->Effect = DragDropEffects::None;
              <br>
                      }
              <br>
              <br>
              Ale všechny pokusy o DragDrop selhaly na tom, že nem;žu
              najít C ekvivalent pro
              <br>
              string[] s = (string[])
              e.Data.GetData(DataFormats.FileDrop, false);
              <br>
              Nějaké nápady?
              <br>
              <br>
              Díky,
              <br>
              PH
              <br>
            </blockquote>
            <br>
            _______________________________________________
            <br>
            HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
            <br>
            <a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
            <br>
            <a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
            <br>
          </blockquote>
          <br>
          _______________________________________________
          <br>
          HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
          <br>
          <a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
          <br>
          <a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
          <br>
        </blockquote>
        <br>
        _______________________________________________
        <br>
        HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
        <br>
        <a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
        <br>
        <a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
        <br>
      </blockquote>
      _______________________________________________
      <br>
      HW-list mailing list  -  sponsored by <a class="moz-txt-link-abbreviated" href="http://www.HW.cz">www.HW.cz</a>
      <br>
      <a class="moz-txt-link-abbreviated" href="mailto:Hw-list@list.hw.cz">Hw-list@list.hw.cz</a>
      <br>
      <a class="moz-txt-link-freetext" href="http://list.hw.cz/mailman/listinfo/hw-list">http://list.hw.cz/mailman/listinfo/hw-list</a>
      <br>
    </blockquote>
    <br>
  </body>
</html>