Click here to Skip to main content
15,921,959 members
Home / Discussions / COM
   

COM

 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Ashwin kumar Gurujala1-Sep-05 1:37
Ashwin kumar Gurujala1-Sep-05 1:37 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Jörgen Sigvardsson1-Sep-05 9:48
Jörgen Sigvardsson1-Sep-05 9:48 
GeneralRe: ActiveX Control's Bitmaps in ToolBox Pin
Ashwin kumar Gurujala9-Sep-05 0:02
Ashwin kumar Gurujala9-Sep-05 0:02 
QuestionCalling remote components method Pin
Anonymous27-Aug-05 0:16
Anonymous27-Aug-05 0:16 
QuestionRe: Calling remote components method Pin
sudeesht31-Aug-05 0:12
sudeesht31-Aug-05 0:12 
QuestionLNK2019 Pin
bondguru26-Aug-05 2:33
bondguru26-Aug-05 2:33 
Questionactivex question... Pin
l a u r e n25-Aug-05 20:20
l a u r e n25-Aug-05 20:20 
GeneralRe: activex question... Pin
Jörgen Sigvardsson26-Aug-05 9:55
Jörgen Sigvardsson26-Aug-05 9:55 
I would create a new DLL project, based on the ATL/DLL wizard template. Then I'm assuming that you want to encapsulate the original two functions, into a COM class, which you can instantiate and use from within VB. Simply create a new class in VS.NET by right clicking the project in the solutions view, and chose Add -> Add Class, and then pick ATL Simple Object.

In the ATL Simple Object Wizard, enter a name for the class, and hit OK. The default options will do just fine, unless you're doing something fancy with your apartments. You might want to turn on IErrorInfo-support if you want to provide error messages when you return error codes from your COM methods.

Anyway, when you're done, add your two functions to the interface that was created alongside your class. You'll find it in the class view. As you add interface members through the GUI in the class view, all related files will be updated (including .idl, .h and .cpp files). Then you just fill in the blanks (which is presumably the content of your two functions).

Good music: In my rosary[^]
GeneralRe: activex question... Pin
Anonymous26-Aug-05 10:10
Anonymous26-Aug-05 10:10 
GeneralRe: activex question... Pin
Jörgen Sigvardsson26-Aug-05 22:35
Jörgen Sigvardsson26-Aug-05 22:35 
GeneralRe: activex question... Pin
l a u r e n27-Aug-05 6:58
l a u r e n27-Aug-05 6:58 
GeneralRe: activex question... Pin
l a u r e n27-Aug-05 8:29
l a u r e n27-Aug-05 8:29 
GeneralRe: activex question... Pin
Jörgen Sigvardsson27-Aug-05 13:20
Jörgen Sigvardsson27-Aug-05 13:20 
GeneralRe: activex question... Pin
l a u r e n27-Aug-05 16:46
l a u r e n27-Aug-05 16:46 
Questionsocket problem Pin
Ganesh_T25-Aug-05 18:58
Ganesh_T25-Aug-05 18:58 
QuestionDriver interface Pin
Paresh emb25-Aug-05 5:52
Paresh emb25-Aug-05 5:52 
QuestionTopics for DCOM Pin
V.G25-Aug-05 2:55
V.G25-Aug-05 2:55 
QuestionManifest Pin
Alex_Y25-Aug-05 2:37
Alex_Y25-Aug-05 2:37 
QuestionDistinguish IObjectWithSite instance in IOleCommandTarget.Exec? Pin
song88824-Aug-05 23:51
song88824-Aug-05 23:51 
GeneralExchange 2000 - Event Sink receives EVT_SYNC_COMMITTED twice (!!!) Pin
Michael B. Hansen24-Aug-05 23:12
Michael B. Hansen24-Aug-05 23:12 
Generalwhen should i implement interface IExternalConnection Pin
HeartFriend24-Aug-05 19:59
HeartFriend24-Aug-05 19:59 
Generalcomponent registration Pin
Maddie from Dartford24-Aug-05 3:05
Maddie from Dartford24-Aug-05 3:05 
GeneralRe: component registration Pin
User 21559724-Aug-05 17:28
User 21559724-Aug-05 17:28 
GeneralActiveX and OLE server - destroyed! Pin
john john mackey23-Aug-05 8:52
john john mackey23-Aug-05 8:52 
Generaldirectshow avi source filter Pin
villalvilla22-Aug-05 20:22
villalvilla22-Aug-05 20:22 

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.