Solved

Borland 5.02,  Win95, BWCC with "C" code problem

Posted on 1997-05-30
2
337 Views
Last Modified: 2013-12-03


I have Borland 5.02 running on a Win95 pc.

Can anyone tell me what I need to do to get a Borland Windows Control (like a "borbutton") to work with 32-bit "C" code, such as the comdlg32 example (\bc5\examples\win95\comdlg32)

When I add a simple Borland button or Borland shade to the About Box in the comdlg32 example, the about box dialog window refuses to open.

I've tried clicking the BWCC library option in the TargetExpert.
That didn't work.

I've tried using 'LoadLibrary("BWCC32.DLL")'
That didn't work.

I've tried using 'BWCCRegister'
That didn't work.

'BWCCGetVersion' returns 0x10200, as it should

Did Borland just screw something up?

Ultimately, I'm trying to convert a very large project originally programmed for Win32s with Borland 4.52 to run in Windows95.

0
Comment
Question by:RED6
2 Comments
 
LVL 15

Accepted Solution

by:
NickRepin earned 50 total points
ID: 1397773
Insert following code in WinMain function:

#include <bwcc.h>
int APIENTRY WinMain(HINSTANCE hInst,...)
{
     // Local declarations...

     BWCCRegister(hInst);

    // Your code...

}

Make sure 1) you are linking BWCC32.LIB
                  2) there are path to BWCC32.DLL

My \bc5\examples\win95\comdlg32 works fine with borland's button and shade.



0
 

Author Comment

by:RED6
ID: 1397774
Thanks.  I realized that when I used BWCCRegister before, I passed in the instance returned by the LoadLibrary("BWCC32.DLL") function which I had also tried, not the WinMain hInstance; and who knows what that did.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This tutorial is about how to put some of your C++ program's functionality into a standard DLL, and how to make working with the EXE and the DLL simple and seamless.   We'll be using Microsoft Visual Studio 2008 and we will cut out the noise; that i…
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now