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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    ProjectTool & visual studio: /DELAYLOAD

    Cinema 4D SDK
    windows 2024 c++
    2
    3
    402
    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.
    • B
      BruceC
      last edited by

      Re: ProjectTool & visual studio: /DELAYLOAD

      I tried

      AdditionalLinkOptions=/DELAYLOAD:"xxx.dll"
      

      And as FilipM said, the option gets added under

      Configuration Properties-> Linker ->All Options->Additional Options
      

      and, I still got link error:

      Error	LNK2019	unresolved external symbol __HrLoadAllImportsForDll referenced in function  "......................."
      

      But if I add xxx.dll to

      Configuration Properties-> Linker ->All Options->Delay Loaded DLLs
      

      The link error disappears.

      Configuration Properties->linker->Command Line looks the same except that /DELAYLOAD:"xxx.dll" is at the end of All Options if xxx.dll is added to Configuration Properties-> Linker ->All Options->Delay Loaded DLLs, but it will be at the Additional Options if it is added by AdditionalLinkOptions=/DELAYLOAD:"xxx.dll"

      Can you please let me know how to solve this problem? Thanks.
      I'm running

      Microsoft Visual Studio Professional 2019
      Version 16.11.31
      
      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @BruceC
        last edited by

        Hey @BruceC,

        thank you for reaching out to us. If you follow the thread from @Manuel there closely, you will see that he recommends the syntax:

        AdditionalLinkOptions=%(AdditionalOptions) /DELAYLOAD:"mydll.dll"
        

        But he does not seem to be so sure if that actually will work (and I also myself am not sure how that explicit mention of the insertion point %(AdditionalOptions) is supposed to work here, must be some magic only the project tool devs are aware of.

        Just like in the other case, you can alternatively also just modify the files the project tools uses to assemble a Visual Studio project. But you should be aware that doing that is out of scope of support.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

        1 Reply Last reply Reply Quote 0
        • B
          BruceC
          last edited by

          Thanks for the reply, @ferdinand.

          I can confirm that below syntax doesn't work. I still get the same error.

          AdditionalLinkOptions=%(AdditionalOptions) /DELAYLOAD:"mydll.dll"
          

          I'll see what alternatives I could use.

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