Click here to Skip to main content
15,918,808 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: excutable file location Pin
Michael Dunn15-Apr-04 15:30
sitebuilderMichael Dunn15-Apr-04 15:30 
GeneralRe: excutable file location Pin
Anonymous16-Apr-04 2:54
Anonymous16-Apr-04 2:54 
GeneralDebug MFC Pin
Member 61706715-Apr-04 11:21
Member 61706715-Apr-04 11:21 
QuestionCSplitterWnd - bug??? Pin
_-:: PhOeNiX ::-_15-Apr-04 10:34
_-:: PhOeNiX ::-_15-Apr-04 10:34 
GeneralNeed Urgent C++ help Pin
Anonymous15-Apr-04 10:34
Anonymous15-Apr-04 10:34 
GeneralRe: Need Urgent C++ help Pin
Christian Graus15-Apr-04 11:01
protectorChristian Graus15-Apr-04 11:01 
GeneralRemotely Connecting to SQL Server! Pin
abc87615-Apr-04 9:52
abc87615-Apr-04 9:52 
GeneralVB client for a C++ api Pin
Jim Crafton15-Apr-04 9:48
Jim Crafton15-Apr-04 9:48 
I have been given a rather unfortunate assignment at work:

I have to look into what it would take to put a COM wrapper around a small multi-threaded C++ API that I wrote. It seems a client is interested in the API if it can support VB. I have the option of telling my boss it's impossible and that he should tell them to toss off. My assumptions are that they are using VB6.

I've done ATL before but never in wrapping a multithreaded API that had to work in VB. Any suggestions? Besides the obvious that all the com objects need to be dual interface (IDispatch), is there any thing funky I need to do to handle the fact that the lib uses multiple threads internally?

Basically the VB client would do nothing more than

- create the app instance (the app would house my library)
- init the app (App.Init or something like that)
- run it (App.Run)
- respond to events

The VB client has no need to work in multiple threads, or be aware of their presence.

Any suggestions would be *most* appreciated!



¡El diablo está en mis pantalones! ¡Mire, mire!

Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!

SELECT * FROM User WHERE Clue > 0
0 rows returned

GeneralRe: VB client for a C++ api Pin
Gary R. Wheeler15-Apr-04 11:58
Gary R. Wheeler15-Apr-04 11:58 
GeneralWinApp::OnIdle Pin
_-:: PhOeNiX ::-_15-Apr-04 9:44
_-:: PhOeNiX ::-_15-Apr-04 9:44 
GeneralRe: WinApp::OnIdle Pin
PJ Arends15-Apr-04 11:53
professionalPJ Arends15-Apr-04 11:53 
GeneralSTACKS AND QUES Pin
PDALE15-Apr-04 8:04
PDALE15-Apr-04 8:04 
GeneralRe: STACKS AND QUES Pin
toxcct15-Apr-04 8:16
toxcct15-Apr-04 8:16 
GeneralRe: STACKS AND QUES Pin
Jim Crafton15-Apr-04 10:15
Jim Crafton15-Apr-04 10:15 
GeneralRe: STACKS AND QUES Pin
Jim Crafton15-Apr-04 10:17
Jim Crafton15-Apr-04 10:17 
GeneralMaskededit control Pin
C++NewBe15-Apr-04 7:49
C++NewBe15-Apr-04 7:49 
GeneralRe: Maskededit control Pin
David Crow15-Apr-04 10:14
David Crow15-Apr-04 10:14 
GeneralRe: Maskededit control Pin
C++NewBe15-Apr-04 10:19
C++NewBe15-Apr-04 10:19 
GeneralRe: Maskededit control Pin
David Crow15-Apr-04 10:33
David Crow15-Apr-04 10:33 
GeneralRe: Maskededit control Pin
C++NewBe15-Apr-04 10:42
C++NewBe15-Apr-04 10:42 
GeneralSerialize Pin
Demian Panello15-Apr-04 5:48
Demian Panello15-Apr-04 5:48 
GeneralMulti threading Pin
dreamerzz15-Apr-04 5:13
dreamerzz15-Apr-04 5:13 
GeneralRe: Multi threading Pin
David Crow15-Apr-04 7:16
David Crow15-Apr-04 7:16 
GeneralRe: Multi threading Pin
dreamerzz15-Apr-04 20:38
dreamerzz15-Apr-04 20:38 
GeneralRe: Multi threading Pin
David Crow19-Apr-04 2:28
David Crow19-Apr-04 2:28 

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.