VB + MFC

Hi,

I have vc++ 2005. Is it possible to make a windows control in VB, then somehow insert it into an MFC dialog? Furthormore, would it be possible to access member functions of this VB control? I am brand new to VB, any information would be great.

Im trying to implement this ms chart control into my MFC app but it seems to be a most impossible task, the only examples I've found are for VB. I was hoping if I can get it to work in VB I could then insert it into my MFC project magically as a contained control of some sort.

Thanks
LVL 7
minnirokAsked:
Who is Participating?
 
mahesh1402Connect With a Mentor Commented:
Refer helpful :

Beginner's Tutorial: Calling Visual Basic ActiveX DLLs from Visual C++
http://www.codeproject.com/com/vb_from_vc.asp

-MAHESH
0
 
mahesh1402Commented:
VB control preferably ActiveX control..you may develop in  any language like VB/DELPHI and can insert in MFC application.

Here is good link explainning how writing ActiveX controls in Visual Basic is different from writing them in C++..
ALso article with src code about implementing control in VB.

http://msdn.microsoft.com/msdnmag/issues/0800/visualprog/

-MAHESH
0
 
mahesh1402Commented:
>>Furthormore, would it be possible to access member functions of this VB control?


when you create OCX control using any languages like VB, DELPHI etc you may register your OCX control..When you right click on MFC dialog you will find link Insert ActiveX control.....this inserts registerd OCX control in your dialog....you may then access properties and methods implemented by that OCX.

-MAHESH
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

 
Dariusz DziaraProgrammerCommented:
I think it won't be necessary
0
 
mahesh1402Commented:
mrblue its relavent comment or just bymistake for other q. ?

0
 
Dariusz DziaraProgrammerCommented:
Not by mistake, comment related to other question.
0
 
mahesh1402Commented:
I think I have answered it well with necessary link.

-MAHESH
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.