Click here to Skip to main content
15,910,234 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to Pass c++ object across ATL DLL Pin
annjose2426-Jan-06 18:15
annjose2426-Jan-06 18:15 
GeneralRe: How to Pass c++ object across ATL DLL Pin
Gizzo26-Jan-06 21:22
Gizzo26-Jan-06 21:22 
AnswerRe: How to Pass c++ object across ATL DLL Pin
Gizzo26-Jan-06 1:49
Gizzo26-Jan-06 1:49 
GeneralRe: How to Pass c++ object across ATL DLL Pin
annjose2426-Jan-06 16:36
annjose2426-Jan-06 16:36 
QuestionHelp with ENTRYID type and ENTRYLIST type Pin
Chris Meech24-Jan-06 10:40
Chris Meech24-Jan-06 10:40 
QuestionRe: Help with ENTRYID type and ENTRYLIST type Pin
Chris Meech26-Jan-06 7:15
Chris Meech26-Jan-06 7:15 
QuestionCOM DLL with IShellPropSheetExt Pin
souso2024-Jan-06 4:00
souso2024-Jan-06 4:00 
Questionsend error message to vb from c++ com Pin
mack scynox24-Jan-06 3:07
mack scynox24-Jan-06 3:07 
hi,

i want to send my custom error message to vb (or asp) from my c++ com object. i wrote a simple dll with one method

// C++ code
STDMETHODIMP _Test::TestErr ( ){
//AFX...

AfxThrowOleDispatchException( 1001 , "error occured" ); //just wrote this but tried many other methods

return S_OK;
}

'' VB code
Public Sub Test()
Dim obj as object
set obj = CreateObject("TestObj.Test")

on error goto ErrOccured
obj.TestErr
set obj = nothing
exit sub


ErrOccured:
MsgBox err.Description
set obj = nothing
End Sub

i want to see "error occured" message and also get 1001 as error number from vb exe.

i have tried many things but couldnot solve it.

Help needed!!!

thanx.

NOTE: com dll registrations WORKS, if i do not throw exception then no problem but i want to throw some error message to vb...
AnswerRe: send error message to vb from c++ com Pin
Gizzo24-Jan-06 5:00
Gizzo24-Jan-06 5:00 
GeneralRe: send error message to vb from c++ com Pin
mack scynox24-Jan-06 20:55
mack scynox24-Jan-06 20:55 
Questionprinter shell extension Pin
eisbaer311223-Jan-06 22:53
eisbaer311223-Jan-06 22:53 
AnswerRe: printer shell extension Pin
eisbaer31122-Feb-06 4:27
eisbaer31122-Feb-06 4:27 
QuestionICopyHook Pin
ragavan23-Jan-06 3:00
ragavan23-Jan-06 3:00 
QuestionCOM client must recompile when server compiled? Pin
WernerP23-Jan-06 1:55
WernerP23-Jan-06 1:55 
Questionwhat is a interface? Pin
vikas amin22-Jan-06 19:28
vikas amin22-Jan-06 19:28 
AnswerRe: what is a interface? Pin
Stephen Hewitt22-Jan-06 22:35
Stephen Hewitt22-Jan-06 22:35 
AnswerRe: what is a interface? Pin
Danish jibbran29-Jan-06 1:37
Danish jibbran29-Jan-06 1:37 
Questionabout IMediaSeeking Pin
abstarsss22-Jan-06 17:57
abstarsss22-Jan-06 17:57 
QuestionAttempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
godspeed12322-Jan-06 7:39
godspeed12322-Jan-06 7:39 
AnswerRe: Attempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
Stephen Hewitt22-Jan-06 15:55
Stephen Hewitt22-Jan-06 15:55 
GeneralRe: Attempting to return a BSTR * from a MFC ActiveX to VB .NET Pin
Vi224-Jan-06 4:21
Vi224-Jan-06 4:21 
Questionpass asp byte array to com object? Pin
mack scynox20-Jan-06 23:38
mack scynox20-Jan-06 23:38 
QuestionHow to export a class in c++ dll. Pin
srinu.m20-Jan-06 3:35
srinu.m20-Jan-06 3:35 
AnswerRe: How to export a class in c++ dll. Pin
Stephen Hewitt20-Jan-06 14:53
Stephen Hewitt20-Jan-06 14:53 
AnswerRe: How to export a class in c++ dll. Pin
Stephen Hewitt20-Jan-06 16:33
Stephen Hewitt20-Jan-06 16:33 

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.