Error: C4772 and Error:C2664 with HPC API sample code ...Hi all:<br/><br/>I am studying the HPC API (c++), therefore I install HPC Pack 2008 SDK (x86).<br/><br/>I copy the sample code from <a href="http://msdn.microsoft.com/en-us/library/cc853436(VS.85).aspx"><span style="color:#0033cc">http://msdn.microsoft.com/en-us/library/cc853436(VS.85).aspx</span></a><br/><br/>I use VS2005 to compile the code, and got the following errors<br/><br/>1&gt;------ Rebuild All started: Project: GetNodeInCluster, Configuration: Release Win32 ------<br/>1&gt;Deleting intermediate and output files for project 'GetNodeInCluster', configuration 'Release|Win32'<br/>1&gt;Compiling...<br/>1&gt;main.cpp<br/>1&gt;.\main.cpp(11) : error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder<br/>1&gt;.\main.cpp(189) : error C2664: 'ISchedulerNode::get_JobType' : cannot convert parameter 1 from 'JobType *__w64 ' to '__missing_type__ *'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;.\main.cpp(283) : error C2664: 'ISchedulerNode::get_State' : cannot convert parameter 1 from 'NodeState *__w64 ' to '__missing_type__ *'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;.\main.cpp(379) : error C2664: 'ISchedulerCore::get_TaskId' : cannot convert parameter 1 from 'ITaskId **__w64 ' to '__missing_type__ **'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;Build log was saved at &quot;<a><span style="color:#0033cc">file://d:\HPC_practice\GetNodeInCluster\Release\BuildLog.htm</span></a>&quot;<br/>1&gt;GetNodeInCluster - 4 error(s), 0 warning(s)<br/>========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========<br/><br/>I have added the include dir: C:\Program Files\Microsoft HPC Pack 2008 SDK\Lib\i386 where the Microsoft.Hpc.Scheduler.tlb and Microsoft.Hpc.Scheduler.Properties.tlb are located.<br/><br/>My OS is Windows XP Professional 32bit<br/><br/><br/>thank you.<br/><br/>regards,<br/><br/>Seifer <br/>© 2009 Microsoft Corporation. All rights reserved.Sat, 18 Jul 2009 04:26:18 Zab03c21c-cc43-4ced-8504-ee4efbf439c8http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#ab03c21c-cc43-4ced-8504-ee4efbf439c8http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#ab03c21c-cc43-4ced-8504-ee4efbf439c8Seifer Linhttp://social.microsoft.com/Profile/en-US/?user=Seifer%20LinError: C4772 and Error:C2664 with HPC API sample code ...Hi all:<br/><br/>I am studying the HPC API (c++), therefore I install HPC Pack 2008 SDK (x86).<br/><br/>I copy the sample code from <a href="http://msdn.microsoft.com/en-us/library/cc853436(VS.85).aspx"><span style="color:#0033cc">http://msdn.microsoft.com/en-us/library/cc853436(VS.85).aspx</span></a><br/><br/>I use VS2005 to compile the code, and got the following errors<br/><br/>1&gt;------ Rebuild All started: Project: GetNodeInCluster, Configuration: Release Win32 ------<br/>1&gt;Deleting intermediate and output files for project 'GetNodeInCluster', configuration 'Release|Win32'<br/>1&gt;Compiling...<br/>1&gt;main.cpp<br/>1&gt;.\main.cpp(11) : error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder<br/>1&gt;.\main.cpp(189) : error C2664: 'ISchedulerNode::get_JobType' : cannot convert parameter 1 from 'JobType *__w64 ' to '__missing_type__ *'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;.\main.cpp(283) : error C2664: 'ISchedulerNode::get_State' : cannot convert parameter 1 from 'NodeState *__w64 ' to '__missing_type__ *'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;.\main.cpp(379) : error C2664: 'ISchedulerCore::get_TaskId' : cannot convert parameter 1 from 'ITaskId **__w64 ' to '__missing_type__ **'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;Build log was saved at &quot;<a><span style="color:#0033cc">file://d:\HPC_practice\GetNodeInCluster\Release\BuildLog.htm</span></a>&quot;<br/>1&gt;GetNodeInCluster - 4 error(s), 0 warning(s)<br/>========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========<br/><br/>I have added the include dir: C:\Program Files\Microsoft HPC Pack 2008 SDK\Lib\i386 where the Microsoft.Hpc.Scheduler.tlb and Microsoft.Hpc.Scheduler.Properties.tlb are located.<br/><br/>My OS is Windows XP Professional 32bit<br/><br/><br/>thank you.<br/><br/>regards,<br/><br/>Seifer <br/>Fri, 15 May 2009 07:24:47 Z2009-05-15T07:24:47Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#85206c39-99d5-4892-a444-0b9fe946ea16http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#85206c39-99d5-4892-a444-0b9fe946ea16Josh Barnardhttp://social.microsoft.com/Profile/en-US/?user=Josh%20BarnardError: C4772 and Error:C2664 with HPC API sample code ...Hey Seifer,<br/>I believe this is a known issue with the SDK that should be fixed when we release our first Service Pack (coming soon!).  In the meantime, our COM API developer says it should actually work if you just compile it a second time (a strange workaround, I know).<br/><br/>Please let us know if that helps or not!<br/><br/>Thanks,<br/>Josh<hr class="sig">-JoshFri, 15 May 2009 23:47:34 Z2009-05-15T23:47:34Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#221f028f-80ad-4ccd-bc45-cfbc8478df3ehttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#221f028f-80ad-4ccd-bc45-cfbc8478df3eSeifer Linhttp://social.microsoft.com/Profile/en-US/?user=Seifer%20LinError: C4772 and Error:C2664 with HPC API sample code ...Hi Josh:<br/><br/>If I compile again ...<br/><br/>only <br/>&gt;.\main.cpp(11) : error C4772: #import referenced a type from a missing type library; '__missing_type__' used as a placeholder<br/>is disappeared.<br/><br/><br/>I still got the error<br/><br/>1&gt;.\main.cpp(189) : error C2664: 'ISchedulerNode::get_JobType' : cannot convert parameter 1 from 'JobType *__w64 ' to '__missing_type__ *'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;.\main.cpp(283) : error C2664: 'ISchedulerNode::get_State' : cannot convert parameter 1 from 'NodeState *__w64 ' to '__missing_type__ *'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/>1&gt;.\main.cpp(379) : error C2664: 'ISchedulerCore::get_TaskId' : cannot convert parameter 1 from 'ITaskId **__w64 ' to '__missing_type__ **'<br/>1&gt;        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast<br/><br/><br/>thank you.<br/><br/>regards,<br/><br/>Seifer <br/>Sat, 16 May 2009 07:45:21 Z2009-05-16T07:45:21Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#7c05968e-e60a-4b17-8bd5-bf3f0f1933b0http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#7c05968e-e60a-4b17-8bd5-bf3f0f1933b0Seifer Linhttp://social.microsoft.com/Profile/en-US/?user=Seifer%20LinError: C4772 and Error:C2664 with HPC API sample code ...Hi:<br/><br/>After 2 months, is there any solution available ?<br/><br/>thank you!<br/><br/>regards,<br/><br/>SeiferTue, 07 Jul 2009 02:22:49 Z2009-07-07T02:22:49Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#48219c60-1a77-4110-b1f2-418743ad2246http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#48219c60-1a77-4110-b1f2-418743ad2246Josh Barnardhttp://social.microsoft.com/Profile/en-US/?user=Josh%20BarnardError: C4772 and Error:C2664 with HPC API sample code ...Seifer,<br/>We've released SP1 now.  Have you tried upgrading?  I've linked below to the Service Pack (install on your client and cluster nodes) and to the refreshed SDK.  These should include fixes to the problems you saw; please post again if you still have a problem.  Starting a new thread might be a good idea to make sure we see it :-)<br/><br/>HPC SDK SP1- <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=3fe15731-b1b6-42de-b278-5ccd46c0863b">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=3fe15731-b1b6-42de-b278-5ccd46c0863b</a><br/>HPC Pack SP1- <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=a78520f1-de82-4442-b273-2ff7327b9140">http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=a78520f1-de82-4442-b273-2ff7327b9140</a><br/><br/>Thanks!<br/>Josh<hr class="sig">-JoshFri, 17 Jul 2009 17:59:21 Z2009-07-17T17:59:21Zhttp://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#b6cc6555-aa1d-47f0-b380-24c843593ea6http://social.microsoft.com/Forums/en-US/windowshpcdevs/thread/ab03c21c-cc43-4ced-8504-ee4efbf439c8#b6cc6555-aa1d-47f0-b380-24c843593ea6Seifer Linhttp://social.microsoft.com/Profile/en-US/?user=Seifer%20LinError: C4772 and Error:C2664 with HPC API sample code ...Hi Josh, thank you very much.<br/><br/>The sample code now works well !<br/><br/>regards,<br/><br/>SeiferSat, 18 Jul 2009 04:26:10 Z2009-07-18T04:26:10Z