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

ATL / WTL / STL

 
GeneralRe: How to send mail in ATL? Pin
Anders Molin24-Feb-03 13:05
professionalAnders Molin24-Feb-03 13:05 
GeneralQuestion about ambiguous overloading operator >> in STL. Pin
George220-Feb-03 21:24
George220-Feb-03 21:24 
GeneralRe: Question about ambiguous overloading operator >> in STL. Pin
George220-Feb-03 23:14
George220-Feb-03 23:14 
GeneralRe: Question about ambiguous overloading operator >> in STL. Pin
Tim Smith21-Feb-03 2:23
Tim Smith21-Feb-03 2:23 
GeneralRe: Question about ambiguous overloading operator >> in STL. Pin
George221-Feb-03 2:42
George221-Feb-03 2:42 
GeneralRe: Question about ambiguous overloading operator >> in STL. Pin
Joaquín M López Muñoz21-Feb-03 2:55
Joaquín M López Muñoz21-Feb-03 2:55 
GeneralRe: Question about ambiguous overloading operator >> in STL. Pin
George221-Feb-03 3:08
George221-Feb-03 3:08 
GeneralPassing string to ATL interface function Pin
Shah Shehpori20-Feb-03 19:52
sussShah Shehpori20-Feb-03 19:52 
I want my ATL component to expose a function that can accept string as an argument. What i am doing is:

STDMETHODIMP CProduction::SetCountry(BSTR name)
{

MesageBox(NULL, reinterpret_cast<char *>name, "Country" , MB_OK);

return S_OK;
}

i.e i accept string as BSTR in argument and display it in message box.

Similarly from the client side i am calling this function as
myobject.SetCountry("Indonesia");

The problem is that this is not working correctly. Both client and server program runs successfully. But the string is not correctly passed in the ATL exposed function. The MessageBox only show one character i.e "I"

Can any one tell me what is the problem and how can i acceept string in ATL exposed function. Currently i am using
[in] BSTR name.

Is this correct ?
GeneralRe: Passing string to ATL interface function Pin
Steve S21-Feb-03 1:51
Steve S21-Feb-03 1:51 
QuestionVC6.0 map.insert method is not STL standard? Pin
George220-Feb-03 18:11
George220-Feb-03 18:11 
AnswerRe: VC6.0 map.insert method is not STL standard? Pin
Joaquín M López Muñoz20-Feb-03 20:42
Joaquín M López Muñoz20-Feb-03 20:42 
GeneralRe: VC6.0 map.insert method is not STL standard? Pin
George220-Feb-03 20:50
George220-Feb-03 20:50 
GeneralMy solution is correct? (about funtion parameter in STL) Pin
George220-Feb-03 16:27
George220-Feb-03 16:27 
GeneralRe: My solution is correct? (about funtion parameter in STL) Pin
Christian Graus20-Feb-03 16:52
protectorChristian Graus20-Feb-03 16:52 
GeneralRe: My solution is correct? (about funtion parameter in STL) Pin
George220-Feb-03 17:23
George220-Feb-03 17:23 
GeneralQuestion about overloading operator >> in STL. Pin
George220-Feb-03 3:01
George220-Feb-03 3:01 
GeneralRe: Question about overloading operator >> in STL. Pin
Joaquín M López Muñoz20-Feb-03 6:44
Joaquín M López Muñoz20-Feb-03 6:44 
GeneralRe: Question about overloading operator >> in STL. Pin
George220-Feb-03 15:52
George220-Feb-03 15:52 
GeneralNeed a hint on implementing path picker WTL control. Pin
Ilushka20-Feb-03 2:40
Ilushka20-Feb-03 2:40 
GeneralRe: Need a hint on implementing path picker WTL control. Pin
AlexO20-Feb-03 2:51
AlexO20-Feb-03 2:51 
GeneralRe: Need a hint on implementing path picker WTL control. Pin
Ilushka20-Feb-03 4:47
Ilushka20-Feb-03 4:47 
GeneralATL input parameter Pin
Anonymous19-Feb-03 23:54
Anonymous19-Feb-03 23:54 
GeneralRe: ATL input parameter Pin
Steve S20-Feb-03 1:36
Steve S20-Feb-03 1:36 
GeneralMax value in collection (STL) Pin
Kevin McFarlane19-Feb-03 11:19
Kevin McFarlane19-Feb-03 11:19 
GeneralRe: Max value in collection (STL) Pin
Ryan_Roberts19-Feb-03 11:40
Ryan_Roberts19-Feb-03 11:40 

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.