Solved

Stability of DLLs using controls

Posted on 2003-12-04
4
260 Views
Last Modified: 2013-11-13
Hi all,

   I understand that if I were to call an OCX component from a ActiveX DLL, it will be unstable. Is it true? The DLL will be written by me.

thanks
tg
0
Comment
Question by:chngtg
4 Comments
 
LVL 9

Assisted Solution

by:Dang123
Dang123 earned 50 total points
ID: 9874348
chngtg,
    I have writen a ActiveX DLL writen in VB6 that contains a Winsock control. It is used on a number of servers by VB6 apps and on one of our web servers by ASP. I have not encountered any problems in the year and a half it has been in use.

Dang123


0
 
LVL 48

Assisted Solution

by:AlexFM
AlexFM earned 25 total points
ID: 9874406
All VB is about calling COM components from various Dll. Don't care, it will be OK.
This adds additional dependency to your project and you need to distribute both exe and ActiveX Dll.
0
 
LVL 13

Expert Comment

by:crazyman
ID: 9874564
who ever told you this is lying, using this method should introduce no more instability.
0
 
LVL 4

Accepted Solution

by:
PBuck earned 50 total points
ID: 9875065
Just another sample of using ActiveX DLL with ocx controls.  We use ActiveX DLLs for each of our 80+ screens, display them all within an MDI form.  Each screen DLL using many many labels, textboxes, listviews, combos, etc and we have no stability issues.  

The only concern we have is memory usage when displaying many DLLs in a sorta workbook mode.  But with proper clean up and optimization - no problems have occurred with GPF's or lock ups.  

Hope this helps.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Access 2013 combo box not working 3 51
numbers ascending pyramid 101 212
Macro Excel - Multiple If conditions 2 81
Problem to refer to value 8 62
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

856 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