Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2004

Tip: Looking for answers? Try searching our database.

Cannot find "CTL3D32.LIB"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Neo - 23 Mar 2004 10:06 GMT
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
David Lowndes - 23 Mar 2004 11:34 GMT
>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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.