Click here to Skip to main content
16,010,268 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionOCX vs Dll Pin
Marc Soleda6-Sep-05 0:58
Marc Soleda6-Sep-05 0:58 
AnswerRe: OCX vs Dll Pin
Dave Kreskowiak6-Sep-05 6:51
mveDave Kreskowiak6-Sep-05 6:51 
GeneralRe: OCX vs Dll Pin
Marc Soleda6-Sep-05 20:26
Marc Soleda6-Sep-05 20:26 
GeneralRe: OCX vs Dll Pin
Dave Kreskowiak7-Sep-05 1:03
mveDave Kreskowiak7-Sep-05 1:03 
GeneralRe: OCX vs Dll Pin
Marc Soleda7-Sep-05 20:51
Marc Soleda7-Sep-05 20:51 
GeneralRe: OCX vs Dll Pin
Dave Kreskowiak8-Sep-05 1:38
mveDave Kreskowiak8-Sep-05 1:38 
GeneralRe: OCX vs Dll Pin
Marc Soleda8-Sep-05 3:14
Marc Soleda8-Sep-05 3:14 
AnswerRe: OCX vs Dll Pin
rwestgraham7-Sep-05 9:47
rwestgraham7-Sep-05 9:47 
The main question you need to answer is "Does the component need to be hosted in a container (i.e a form, webpage) that the component needs to be aware of?" If the answer is yes, the component needs to be an OCX. If the answer is no, you should use a DLL because the performance is better than an OCX.

The Common Dialogs in VB6 are a good example of components that really do not need to be hosted as an OCX. Although VB6 gave you an OCX for Common Dialogs, many developers also rolled their own DLLs to provide the same functionality. The reason was the OCX was an unneccessary performance hit - Common Dialogs did not need any of the typical container notifications - resize, repaint etc. a modal dialog could be shown just as easily from a DLL as an OCX, so the OCX was an unneccessary additional layer.

On the other hand, a control that needs to paint, refresh otherwise process it's own graphical interface in response to things like form resizing should probably be packaged as an OCX.

As far as NET goes, you will require a Primary Interop component for ANY COM component, not just an OCX. So that is not a relevant factor to making a decsion of which to use.

If the component does not have a graphical interface at all, or has a graphical interace that consists of only showing modal dialogs, you in alll liklihood should be using a DLL.
GeneralRe: OCX vs Dll Pin
Marc Soleda7-Sep-05 20:57
Marc Soleda7-Sep-05 20:57 
QuestionProblem with ref params and InvokeMember Pin
Roirin6-Sep-05 0:51
Roirin6-Sep-05 0:51 
QuestionALogic Pin
Member 22525126-Sep-05 0:10
Member 22525126-Sep-05 0:10 
AnswerRe: ALogic Pin
toxcct6-Sep-05 0:16
toxcct6-Sep-05 0:16 
AnswerRe: ALogic Pin
Dave Kreskowiak6-Sep-05 2:22
mveDave Kreskowiak6-Sep-05 2:22 
Questionblock the mdiform Pin
ecentinela5-Sep-05 23:48
ecentinela5-Sep-05 23:48 
AnswerRe: block the mdiform Pin
toxcct6-Sep-05 0:12
toxcct6-Sep-05 0:12 
GeneralRe: block the mdiform Pin
ecentinela6-Sep-05 0:47
ecentinela6-Sep-05 0:47 
QuestionTAB KEY DATAGRID CELLS Pin
Greeky5-Sep-05 23:47
Greeky5-Sep-05 23:47 
QuestionEmbedded prog in vb.net Pin
iambijit5-Sep-05 23:21
iambijit5-Sep-05 23:21 
AnswerRe: Embedded prog in vb.net Pin
Roy Heil6-Sep-05 9:01
professionalRoy Heil6-Sep-05 9:01 
QuestionHow to Scan page in VB6.0 by using TWAIN? Pin
Candor Soft5-Sep-05 22:16
Candor Soft5-Sep-05 22:16 
QuestionVB and HTML Pin
Hoopla!5-Sep-05 20:51
Hoopla!5-Sep-05 20:51 
Questionopening and appending to a file in vb.net Pin
kankan_155-Sep-05 20:28
kankan_155-Sep-05 20:28 
AnswerRe: opening and appending to a file in vb.net Pin
Briga5-Sep-05 21:31
Briga5-Sep-05 21:31 
AnswerRe: opening and appending to a file in vb.net Pin
Rizwan Bashir5-Sep-05 22:29
Rizwan Bashir5-Sep-05 22:29 
AnswerRe: opening and appending to a file in vb.net Pin
eagertolearn8-Sep-05 8:50
eagertolearn8-Sep-05 8:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.