?
Solved

Creating a DLL with Visual C++ 1.52

Posted on 1998-07-10
3
Medium Priority
?
389 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 800 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

752 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