CRhinoDib::ToON_WindowsBitmap unresolved external

Hi,

i use the Rhino SDK 8.7 and in RhinoSdkDib.h there is a member ToON_WindowsBitmap, but there seems to be no implementation, because i get a linker error:
public: class ON_WindowsBitmap __cdecl CRhinoDib::ToON_WindowsBitmap(void)const " (_imp?ToON_WindowsBitmap@CRhinoDib@@QEBA?AVON_WindowsBitmap@@XZ)
fatal error LNK1120: 1 unresolved externals

Am i doing something wrong or is there something missing?

Hi @dsw,

Do you mean CRhinoDib::ToOnWindowsBitmap?

– Dale

No, there are two different methods to create a ON_WindowsBitmap:

  ON_WindowsBitmap ToON_WindowsBitmap(void) const;
  ON_WindowsBitmap* ToOnWindowsBitmap() const;

and i used the first one, but this gives me the unresolved external.

@dsw - does the latter function work?

— Dale

yeah it seems to work, did not check the image, but it returns a pointer to a ON_WindowsBitmap with the right size.
So what is ToON_WindowsBitmap for?

Hi @dsw,

Any idea what Rhino 7 C++ SDK version you have?

– Dale

They mentioned Rhino 8.7, not Rhino 7.

This looks like a function that was declared in the header files and never implemented. We will just need to remove the declaration.

Clearly I’m getting to old for this…

– Dale

RH-87563 is fixed in Rhino 8 Service Release 21 Release Candidate