Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What steps are required to convert a VC++ 2.2 OCX project to Visual C++ 4.0?

convert ocx project steps visual c
0
Posted

What steps are required to convert a VC++ 2.2 OCX project to Visual C++ 4.0?

0

• Load and convert the project in VC++ 4.0. • Under Build/Settings remove the references to the OCS*.dll files. You’ll find the references under the “Link” tab in the “Object/library Modules” area. You’ll need to do this for all of your targets (e.g., Debug/Release/ANSI/Unicode). • Try to compile and link. If you get any errors check out steps 4 and 5 below. • Due to a more stringent conformance to the draft C++ standard, some of your method calls may not compile. Here’s an example of where I had to make some changes: • ///////////////////////////////////////////////////////////////////////////// // CMyCtrl::OnDraw – Drawing function void CMyCtrl::OnDraw(CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid) { … // Get the text and draw it pdc->DrawText( InternalGetText(), -1, rcBounds, DT_LEFT | DT_WORDBREAK ); // This worked in VC++ 2.x, but it won’t work now. You will get a 2664 error because // we are passing a const reference to a method that requires a non-const pointer // Cr

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123