Click here to Skip to main content
15,914,160 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: WTL User Defined Message Pin
damir_tk17-Feb-07 10:37
damir_tk17-Feb-07 10:37 
GeneralRe: WTL User Defined Message Pin
Igor Vigdorchik17-Feb-07 11:26
Igor Vigdorchik17-Feb-07 11:26 
GeneralRe: WTL User Defined Message Pin
damir_tk17-Feb-07 11:34
damir_tk17-Feb-07 11:34 
AnswerRe: WTL User Defined Message Pin
Michael Dunn17-Feb-07 11:17
sitebuilderMichael Dunn17-Feb-07 11:17 
GeneralRe: WTL User Defined Message Pin
damir_tk17-Feb-07 12:04
damir_tk17-Feb-07 12:04 
QuestionIntellisense Pin
Dracan216-Feb-07 4:53
Dracan216-Feb-07 4:53 
AnswerRe: Intellisense Pin
Stuart Dootson16-Feb-07 5:37
professionalStuart Dootson16-Feb-07 5:37 
QuestionAccessViolationException Pin
Brimer Orit15-Feb-07 4:35
Brimer Orit15-Feb-07 4:35 
Hi, I'm writing a C++ ATL/COM service on visual studio 20005, my client is written in vb.net also on visual studio 2005.
When I'm trying to call a dcom (on local machine) function the client gets an AccessViolationException.
I have two functions with the same parameters on my interface ,when I call the first function everything is ok and I get the exception only when calling the second function.
I used the attributed flag when I've created the atl class, and I've used custom interface and apartment threading model.

Here are some code lines from my h file:

[helpstring("method Read")] HRESULT Read([in] ULONG address, [in] USHORT dataSize, [in] USHORT stride, [in] USHORT partialDataCount, [in,out, satype("BYTE")] SAFEARRAY **dataBuff, [out,retval] LONG *result);

[helpstring("method Write")] HRESULT Write([in] ULONG address, [in] USHORT dataSize, [in] USHORT stride, [in] USHORT partialDataCount, [in,out, satype("BYTE")] SAFEARRAY **dataBuff, [out,retval] LONG *result);

STDMETHOD(Read)(ULONG address, USHORT dataSize, USHORT stride, USHORT partialDataCount, SAFEARRAY **dataBuff, LONG *result);

STDMETHOD(Write)(ULONG address, USHORT dataSize, USHORT stride, USHORT partialDataCount, SAFEARRAY **dataBuff, LONG *result);

Can any one help me? Please?

Thanks,

Orit



AnswerRe: AccessViolationException Pin
prasad_som15-Feb-07 18:16
prasad_som15-Feb-07 18:16 
GeneralRe: AccessViolationException Pin
Brimer Orit18-Feb-07 22:15
Brimer Orit18-Feb-07 22:15 
GeneralRe: AccessViolationException Pin
prasad_som19-Feb-07 3:09
prasad_som19-Feb-07 3:09 
QuestionUsing a enum created in another project Pin
FouziaSham14-Feb-07 22:42
FouziaSham14-Feb-07 22:42 
QuestionContext Sensitive Help in an ATL Dialog Pin
Barry True14-Feb-07 10:07
Barry True14-Feb-07 10:07 
AnswerRe: Context Sensitive Help in an ATL Dialog Pin
Michael Dunn14-Feb-07 12:31
sitebuilderMichael Dunn14-Feb-07 12:31 
GeneralRe: Context Sensitive Help in an ATL Dialog Pin
Barry True15-Feb-07 18:56
Barry True15-Feb-07 18:56 
GeneralRe: Context Sensitive Help in an ATL Dialog Pin
Barry True17-Feb-07 3:08
Barry True17-Feb-07 3:08 
QuestionNeed Tutorial on ATL/WTL/STL Pin
Pankaj.Jain13-Feb-07 22:14
professionalPankaj.Jain13-Feb-07 22:14 
AnswerRe: Need Tutorial on ATL/WTL/STL Pin
Roger Stoltz13-Feb-07 22:45
Roger Stoltz13-Feb-07 22:45 
AnswerRe: Need Tutorial on ATL/WTL/STL Pin
Michael Dunn13-Feb-07 22:58
sitebuilderMichael Dunn13-Feb-07 22:58 
AnswerRe: Need Tutorial on ATL/WTL/STL Pin
Sceptic Mole14-Feb-07 10:28
Sceptic Mole14-Feb-07 10:28 
GeneralRe: Need Tutorial on ATL/WTL/STL Pin
Michael Dunn14-Feb-07 12:31
sitebuilderMichael Dunn14-Feb-07 12:31 
AnswerRe: Need Tutorial on ATL/WTL/STL Pin
Hamid_RT14-Feb-07 18:28
Hamid_RT14-Feb-07 18:28 
Questionwana close word application after sending mail Pin
salman kazi13-Feb-07 19:46
salman kazi13-Feb-07 19:46 
QuestionQuestion about PostMessage in ATL Pin
godspeed12312-Feb-07 13:57
godspeed12312-Feb-07 13:57 
AnswerRe: Question about PostMessage in ATL Pin
Igor Vigdorchik12-Feb-07 16:16
Igor Vigdorchik12-Feb-07 16:16 

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.