Solved

Creating a DLL with Visual C++ 1.52

Posted on 1998-07-10
3
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying 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

Title # Comments Views Activity
centeredAverage challenge 8 185
child constructor and parent constructor, overriding and overloading 6 93
Way to decrease size of apk file 9 108
Work with App store 7 94
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.

749 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