Cannot find "CTL3D32.LIB"

  • Thread starter Thread starter Neo
  • Start date Start date
N

Neo

Greetings!

I have a program that uses several "Ctl3d" calls and can be built with VC6. Here is part of my program:

#include <ctl3d.h> // http://www.mit.edu/afs/athena/astaff/project/bugsquash/wx/include/msw/ctl3d.h

BOOL CMyDialog::OnInitDialog()
{
// ...
Ctl3dSubclassDlg (m_hWnd, CTL3D_ALL);
// ...
}

void CMyDialog::OnNcPaint()
{
const MSG* pMsg = GetCurrentMessage();
::SetWindowLong(pMsg->hwnd, DWL_MSGRESULT, Ctl3dDlgFramePaint(pMsg->hwnd, pMsg->message, pMsg->wParam, pMsg->lParam));
}

BOOL CFSWinApp::InitInstance()
{
// ...
Ctl3dRegister(m_hInstance);
Ctl3dAutoSubclass(m_hInstance);
// ...
}

I want to build it with VS.NET 2003. The following error returns:

LINK : fatal error LNK1181: cannot open input file 'ctl3d32.lib'

I removed this .lib file from the project's setting, but it still doesn't work:

unresolved external symbol _Ctl3dSubclassDlg@8 referenced in function "protected: virtual int __thiscall CMyDialog::OnInitDialog(void)"
unresolved external symbol _Ctl3dDlgFramePaint@16 referenced in function "protected: void __thiscall CMyDialog::OnNcPaint(void)"
unresolved external symbol _Ctl3dCtlColorEx@12 referenced in function "protected: struct HBRUSH__ * __thiscall CMyFormView::OnCtlColor(class CDC *,class CWnd *,unsigned int)"

I don't want to use CTL3D32.LIB any longer. What should I do?

Thanks in advance!

Neo
 
I don't want to use CTL3D32.LIB any longer. What should I do?

Remove all the code that used it. Ctl3d hasn't been functional since
OS's before Windows 95.

Dave
 
Back
Top