Solved

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

Posted on 1997-05-30
2
344 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show how to use the Ribbon IDs Tool Window to assign the built-in Office icons to a ribbon button.  This tool will help us to find the OfficeImageId that corresponds to our desired built-in Office icon. The tool is part of…
zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
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 a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

828 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