Help!! C++ SDK, VS 2017 Community [SOLVED]
-
On 22/05/2017 at 15:24, xxxxxxxx wrote:
main.cpp
#include "c4d.h" #include <string.h> Bool RegisterPluginTemplate(); Bool PluginStart(void) { if (!RegisterPluginTemplate()) return FALSE; return true; } void PluginEnd(void) { } Bool PluginMessage(Int32 id, void* data) { if (!resource.Init()) return FALSE; if (!RegisterPluginTemplate()) return FALSE; return false; }
-
On 22/05/2017 at 15:38, xxxxxxxx wrote:
I started from the structure of your samples..
Here the Screen ..https://www.dropbox.com/s/qwbnsq8695ezezz/2017-05-23.png?dl=0
Thanks in advance for any help you are able to provide.
-
On 22/05/2017 at 17:22, xxxxxxxx wrote:
c4d_symbols.h
enum { // Dialog definitions of IDD_PLUGIN_TEMPLATE start here IDD_PLUGIN_TEMPLATE, IDC_EDIT1, IDC_EDIT2, IDC_EDIT3, // Dialog definitions of IDD_PLUGIN_TEMPLATE end here // End of symbol definition _DUMMY_ELEMENT_ };
-
On 22/05/2017 at 22:54, xxxxxxxx wrote:
Did you copy that code from somewhere else? It doesn't compile because R18 doesn't use 'Real' or 'SetReal', it uses Float and SetFloat instead. Likewise gNew and gDelete don't exist any longer. Correct those errors and the missing semicolons errors will go away.
If you're going to reuse old code fair enough, but you need to read about the changes in the SDK to get it to build.
Steve
-
On 23/05/2017 at 02:27, xxxxxxxx wrote:
Good morning Lorenzo,
with reference to your code, as already spotted out by Steve, make it compliant with the API you're supposed to use (in you case R18?) and beware of syntax errors.I warmly invite you to review the full set of examples shipped with Cinema 4D in the cinema4dsdk folder maybe starting with the C++ SDK - Example Dialog or maybe with something even simpler.
On top of that, i similarly invite to deep dive into our documentation to read about the supported types as well as the instances creation/destruction; all the content found under "Overviews" can be considered of invaluable help for Cinema 4D developers newbie.
Finally, as stated yesterday, please avoid posting multiple time adding small chips of information; collapse instead everything in a single post where all you questions are properly explained and use an external code dropping services in case you need to share code (rather than a snippet). This will dramatically community's improve issue understanding as well as topic readability.Best, Riccardo
-
On 23/05/2017 at 06:04, xxxxxxxx wrote:
Hi there Riccardo
I correctly configured the sdk sample. The problem when i go to build the project i get these errors ..Here My Settings ..
cinema4dsdk.snl fileMicrosoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2013 VisualStudioVersion = 12.0.30501.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cinema4dsdk", "cinema4dsdk.vcxproj", "{21895B69-DE91-7035-0009-38CB8C5CDEA3}" EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cinema.framework", "C:\Program Files\MAXON\CINEMA 4D R18\frameworks\cinema.framework\project\cinema.framework.vcxproj", "{69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|x64 = Debug|x64 Intel|x64 = Intel|x64 Release|x64 = Release|x64 EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {21895B69-DE91-7035-0009-38CB8C5CDEA3}.Debug|x64.ActiveCfg = Debug|x64 {21895B69-DE91-7035-0009-38CB8C5CDEA3}.Debug|x64.Build.0 = Debug|x64 {21895B69-DE91-7035-0009-38CB8C5CDEA3}.Intel|x64.ActiveCfg = Intel|x64 {21895B69-DE91-7035-0009-38CB8C5CDEA3}.Intel|x64.Build.0 = Intel|x64 {21895B69-DE91-7035-0009-38CB8C5CDEA3}.Release|x64.ActiveCfg = Release|x64 {21895B69-DE91-7035-0009-38CB8C5CDEA3}.Release|x64.Build.0 = Release|x64 {69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}.Debug|x64.ActiveCfg = Debug|x64 {69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}.Debug|x64.Build.0 = Debug|x64 {69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}.Intel|x64.ActiveCfg = Intel|x64 {69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}.Intel|x64.Build.0 = Intel|x64 {69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}.Release|x64.ActiveCfg = Release|x64 {69BF9B7D-7EB2-7FC5-0009-38CB8C5CDEA3}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection EndGlobal
projectsettings file
<?xml version="1.0" encoding="utf-8"?> <Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <PropertyGroup Label="UserMacros"> <MAXON_ROOTDIR>..\..</MAXON_ROOTDIR> </PropertyGroup> <PropertyGroup> <_ProjectFileVersion>10.0.40219.1</_ProjectFileVersion> </PropertyGroup> <ItemGroup> <BuildMacro Include="MAXON_ROOTDIR"> <Value>$(MAXON_ROOTDIR)</Value> </BuildMacro> </ItemGroup> </Project>
Debugger Error ...
Error 20 error C2065: 'COLOR' : undeclared identifier c:\program files\maxon\cinema 4d r18\plugins\cinema4dsdk\source\gui\gradientuserarea.cpp 336 1 cinema4dsdk Error 21 error C2065: 'COLOR' : undeclared identifier c:\program files\maxon\cinema 4d r18\plugins\cinema4dsdk\source\gui\gradientuserarea.cpp 337 1 cinema4dsdk Error 22 error C2065: 'COLOR' : undeclared identifier c:\program files\maxon\cinema 4d r18\plugins\cinema4dsdk\source\gui\gradientuserarea.cpp 338 1 cinema4dsdk Error 23 error C2065: 'COLOR' : undeclared identifier c:\program files\maxon\cinema 4d r18\plugins\cinema4dsdk\source\gui\gradientuserarea.cpp 361 1 cinema4dsdk Error 24 error C2065: 'COLOR' : undeclared identifier c:\program files\maxon\cinema 4d r18\plugins\cinema4dsdk\source\gui\gradientuserarea.cpp 362 1 cinema4dsdk Error 25 error C2065: 'COLOR' : undeclared identifier c:\program files\maxon\cinema 4d r18\plugins\cinema4dsdk\source\gui\gradientuserarea.cpp 363 1 cinema4dsdk 26 IntelliSense: identifier "COLOR" is undefined c:\Program Files\MAXON\CINEMA 4D R18\plugins\Cinema4DSDK\source\gui\gradientuserarea.cpp 336 30 cinema4dsdk 27 IntelliSense: identifier "COLOR" is undefined c:\Program Files\MAXON\CINEMA 4D R18\plugins\Cinema4DSDK\source\gui\gradientuserarea.cpp 361 21 cinema4dsdk
-
On 23/05/2017 at 06:38, xxxxxxxx wrote:
Ok I solved the problem, a question, I want to put a dialog box at bottom right in Cinema 4D . How can i do that?
-
On 23/05/2017 at 23:52, xxxxxxxx wrote:
Good morning Lorenzo,
the GeDialog::Open() method has the optional parameter xpos and ypos to specify the position of the dialog. As stated in the documentation if these parameters are left unset the dialog will be opened at the current mouse position. Beside this small hints please have a look at the User Interface Manuals where plenty of details are discussed.
Best, Riccardo
-
On 27/09/2017 at 23:25, xxxxxxxx wrote:
since i moved to a new pc i have visual studio 2017 installed (during the installation of unity3d). now i am having a hard time. is there a way to get things working with vs2017?
i am not able to find a download for vs2013.. they always lead me to newer versions.
any idea where i find it or a way to make things work in 2017?
cheers,
ello -
On 28/09/2017 at 01:20, xxxxxxxx wrote:
Hi Ello, thanks for writing us.
Please note that you can download previous version of VS at https://www.visualstudio.com/vs/older-downloads/.
Best, Riccardo
-
On 28/09/2017 at 06:11, xxxxxxxx wrote:
ah, thank you... finally gon it to install after renaming the installer now in need to port the plugin over, guess this will be a nightmare due to the changes