Solved

Creating a DLL with Visual C++ 1.52

Posted on 1998-07-10
3
365 Views
Last Modified: 2013-11-19
I want to create a 16-bit DLL with MS Visual C++ 1.52 using MFC and custom VBX. Is this possible? How?
0
Comment
Question by:mskohut
3 Comments
 
LVL 2

Expert Comment

by:kinkajou
ID: 1318995
I know how to create DLL's in MSVC++ 1.52. I'm not sure what VBX is. Maybe I can help?
0
 

Expert Comment

by:DanJenkins
ID: 1318996
Possible: Yes.
How: Several ways.

Use any standard Dll template. (ie for the samples directory)
After the initial files are in place, it is the same as adding the control to a Exe program.
0
 
LVL 7

Accepted Solution

by:
psdavis earned 200 total points
ID: 1318997
I have created my own customized VBXs and have installed them inside of my own DLL.  The VBX was a user interface control (most win31 ones are).  You can include them just like you would include them in any Win31 application.  

Step #1 is to insure that your DLL has resources such as dialogs with standard implementation.  Once you can display a dialog from your DLL, you're pretty much home free.  You need to surround every entry point in your DLL with AfxSetResourceHandle functions to make sure your application will be looking in your DLL files instead of your application.

Step #2 is the VBXs.  They really didn't play a difference when converting my application to a DLL.  Just make sure you use your Set/GetNumProperty functions to edit the status of your controls.

e.g.
((CVBControl*) GetDlgItem( iPrompt ))->GetNumProperty( "Value" );

For the control itself, use the standard implementation.  Add a user field, set your class to VBControl, style to 0x5401000 and your ExStyle to 0x0.

All in all, just getting the dialogs to show up in the DLL should prove to be your hardest part.  The VBX is just a minor annoyance until then.

Good luck and I hope you're able to upgrade to Win95 programs before I can!!  (Use the "Hey, isn't Win31 not year 2000 compliant?  I heard that on the web!!" )  It spooked my boss into converting!!

Phillip

0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 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

20 Experts available now in Live!

Get 1:1 Help Now