reena_pramodh
March 24th, 2003, 02:40 AM
Hi,
Can anyone tell me how to use a queued component created in VC++.Net from a VC++.Net client. In the client I am calling the queued component using the BindToMoniker method as follows:
obj = dynamic_cast<IMySimpleMaths*>(Marshal::BindToMoniker("queue:/new:MyCalculator::SampleCalculator"));
where MyCalculator is the nemaespace and SampleCalculator is the class of the queued component. This code compiles without a hitch, however at runtime it gives COMException saying invalid synatx for the method BindToMoniker.
Can someone give me a clue as to what is wrong here???
:confused:
This is the syntax used in VB.Net and C# and they are working fine and even the MSDN shows that this is the syntax to be used for the BindToMoniker method. Please need some help on it.
:( :(
Can anyone tell me how to use a queued component created in VC++.Net from a VC++.Net client. In the client I am calling the queued component using the BindToMoniker method as follows:
obj = dynamic_cast<IMySimpleMaths*>(Marshal::BindToMoniker("queue:/new:MyCalculator::SampleCalculator"));
where MyCalculator is the nemaespace and SampleCalculator is the class of the queued component. This code compiles without a hitch, however at runtime it gives COMException saying invalid synatx for the method BindToMoniker.
Can someone give me a clue as to what is wrong here???
:confused:
This is the syntax used in VB.Net and C# and they are working fine and even the MSDN shows that this is the syntax to be used for the BindToMoniker method. Please need some help on it.
:( :(