Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    How to download a file from the internet? [SOLVED]

    SDK Help
    0
    65
    60.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      On 20/10/2014 at 11:35, xxxxxxxx wrote:

      Hi Rui,

      Thanks for letting me know, we're trying our best to guide you guys in the right direction.  When you use languages like C/C++, you're automatically going into the 'advanced' / 'hardcore' areas of software development.  Combine that with plugin development, and you're going into an area only few dare venture. 🙂

      As for Windows specific issues, various Microsoft related 'policies' create these situations for which you must be very much aware of multiple factors that you clearly don't have on Mac OS X.  The 32 / 64 bit issue is due to prioritizing backward compatibility over simplicity, and most of the rest is to provide power and choice, much like why C/C++ are hard to learn and use.  All I can say is don't give up, and we're here to help.  Also, the best explanations aren't on the Internet, they're found in books (if anywhere)... That's why software devs have big personal libraries, and yet they'll tell you they're still missing some on the latest topics!

      As for WinInet, sorry, but that's very far from the scope of coverage on the Plugin Cafe SDK Support for Cinema 4D.  There seems to be a few good books about the subject, and you can get started on MSDN.  Internet communications programming is definitely a big topic.

      http://msdn.microsoft.com/en-us/library/windows/desktop/aa385331(v=vs.85).aspx

      I hope that helps,

      Joey

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        On 23/03/2015 at 05:32, xxxxxxxx wrote:

        Hi Scott,

        Originally posted by xxxxxxxx

        Installation instructions///////////////////////////////////////////////////////////////////////////////////////////////////////////
        -Unzip to c:\curl
        -Build curl to generate the .dll and .lib files needed, I used this in the VC console to build it: nmake /f Makefile.vc mode=dll
        -Set up VS to use them:
            Put libcurl.lib in the Linker->Input "Additional Dependencies" top window
            Put C:\curl\builds\libcurl-vc-x86-release-dll-ipv6-sspi-winssl\include\curl   in "Include Directories"
             Put C:\curl\builds\libcurl-vc-x86-release-dll-ipv6-sspi-winssl\lib            in "Library Directories"//////////////////////////////////////////////////////////////////////////////////////////////////////////////[/ CODE]

        Do you know how to, or what to do, to add something like this using it's complete source files? I can't stand the whole MinGW and command line build rubbish. I'd rather just add the plain complete source files. But they never seem to come with just that?

        I'm needing a download process in my plugin and came across curl like Rui, and thought I'd use this as an experiment on creating the following:

        I'd like to try make a single header which contains all the define's needed for the thing to work, cross-platform, with something like the following:

        // Single Curly.h header file

        #ifndef __MY_CURLY_H
        #define __MY_CURLY_H

        #include <curl.h>

        ifndef "pc"
        ...etc...
        elifdef "mac"
        ...etc...

        ...anything else important here etc...

        #endif

        I then want to use this header in the plugin's MyPlugin.cpp file, so that there's an easy move-over between the two different platforms withouthaving to deal with the library rubbish. The size of the resulting plugin is irrelevant, so building the complete curl system into the plugin is fine.

        Do you know how to setup something like this? Or have you been able to do this with something similar before? Or is there no way to avoid MinGW and the likes?

        WP.

        EDIT: this forum has a hopeless way of dealing with the code brackets! Double lines, messed up new lines... I've edited Scott's partial quote above to resemble the posted original.

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          On 07/07/2015 at 02:31, xxxxxxxx wrote:

          Originally posted by xxxxxxxx

          Damn!! It is soooo easy in python.
          How come it is something so complicated in C++?

          It's only so easy in Python because the Python developers have already done all the tedious C work for you 😉

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            On 07/07/2015 at 15:28, xxxxxxxx wrote:

            Yes, I understand that.
            And I did managed to make it work on Mac OS X, in C++
            But not in Windows. Windows makes it all so much more complicated 😞

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              On 26/01/2016 at 05:36, xxxxxxxx wrote:

              Hi Rui,

              could you please share the way you have implemented the internet access on Mac OS X? For me, it's exactly reverse. On the Mac things are complicated, that are easy in Windows. So, it's a matter of practice, I think.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post