Hello everyone, I have encountered some problems now:
The first question is:
I want to use Rhino C ++ SDK to write a DLL called by C#, Similar @dale Dale’s Moose,And successfully and happily run in Rhino6 &(wip)7,I tried to do the same thing on Rhino5,Normal run in Rhino5x64_d.exe,In the official version of Rhino5 to debug,VS: The specified module cannot be found:
System.DllNotFoundException:“Unable to load DLL"myDll.dll”: The specified module cannot be found. (Exception fromHRESULT:0x8007007E).
I am confused about this. I tried to find the answer on forums and search engines, but it still failed to be solved. Does anyone know how to solve it? Or can you provide a simple example?
The second question is: CRhinoDisplayConduit
bool CSweep2Conduit::ExecConduit(CRhinoDisplayPipeline& dp, UINT nChannel, bool& bTerminate) { UNREFERENCED_PARAMETER(bTerminate); if (nChannel == CSupportChannels::SC_DRAWFOREGROUND) { ON_wString str; if (m_mixCount > 0) { for (int i = 0; i < m_pointsA.Count(); i++) { //Draw index str.Format(L"%d", i); dp.SetObjectColor(ON_Color(RGB(0, 0, 255))); dp.DrawString(str, m_pointsA[i], false, 18); //Draw point dp.DrawPoint(m_pointsA[i], 4, RPS_CONTROL_POINT,ON_Color(RGB(0, 0, 255))); } } } return true; }
This code can display string well in (wip)7,But on Rhino6, a string is not displayed. DrawPoint Normal,I don’t know whether it is a bug or a problem with my code, or something else.
The third question is:
doc.AddPointCloudObject(conduit.m_mixCount, conduit.m_pointsA);
This code can add normal points in (wip)7,But in Rhino6, there will only be very small points.
I didn’t find the answer to the last two questions in the forum. I don’t know if I am the only one who has encountered such a problem.
Thank you!