Solved

Creating a DLL with Visual C++ 1.52

Posted on 1998-07-10
3
370 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

930 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

11 Experts available now in Live!

Get 1:1 Help Now