Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 1997-05-30
2
Medium Priority
?
364 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 200 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

This article surveys and compares options for encoding and decoding base64 data.  It includes source code in C++ as well as examples of how to use standard Windows API functions for these tasks. We'll look at the algorithms — how encoding and decodi…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

886 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