Click here to Skip to main content
15,891,567 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: How can i add simple object in ATL? Pin
$uresh $hanmugam19-Mar-07 3:24
$uresh $hanmugam19-Mar-07 3:24 
AnswerRe: How can i add simple object in ATL? Pin
prasad_som19-Mar-07 3:32
prasad_som19-Mar-07 3:32 
QuestionError when accessing an object in an object Pin
xelontr14-Mar-07 2:53
xelontr14-Mar-07 2:53 
QuestionWeb services and win 32 dll. Pin
LCI13-Mar-07 5:27
LCI13-Mar-07 5:27 
AnswerRe: Web services and win 32 dll. Pin
led mike13-Mar-07 5:42
led mike13-Mar-07 5:42 
Questionqueries regarding working of an application in win2000 but wrong calculation in winxp Pin
Member 385320113-Mar-07 0:34
Member 385320113-Mar-07 0:34 
QuestionPrinting a form larger than the screen [modified] Pin
Enriad12-Mar-07 19:12
Enriad12-Mar-07 19:12 
QuestionLanguage Problem Pin
xelontr11-Mar-07 23:11
xelontr11-Mar-07 23:11 
Hi,

I'm creating a DLL and there is a code listing below that gets and puts an array of characters named minput. When I send English characters to the put function, there is no problem. I can get back the correct characters with get function. But when I send non-English characters (like Turkish characters ı,ç,ö,ş,ğ,ü), the function returns some strange characters.

Is there any idea why this is happening?

Thanks

PS: The project's character set is set to "Use Unicode Character Set" as default.

//Input.h
...
public:
char minput[100];
public:
STDMETHOD(get_m_input)(BSTR* pVal);
public:
STDMETHOD(put_m_input)(BSTR newVal);
...


//Input.cpp
...
STDMETHODIMP CInput::get_m_input(BSTR* pVal)
{
// TODO: Add your implementation code here
CComBSTR bstStr(this->minput);

*pVal=bstStr.Detach();

return S_OK;
}

STDMETHODIMP CInput::put_m_input(BSTR newVal)
{
// TODO: Add your implementation code here
::wcstombs(this->minput,newVal,99);

return S_OK;
}
...
AnswerRe: Language Problem Pin
prasad_som11-Mar-07 22:15
prasad_som11-Mar-07 22:15 
GeneralRe: Language Problem Pin
xelontr11-Mar-07 23:32
xelontr11-Mar-07 23:32 
AnswerRe: Language Problem Pin
prasad_som11-Mar-07 23:39
prasad_som11-Mar-07 23:39 
GeneralRe: Language Problem Pin
xelontr12-Mar-07 0:06
xelontr12-Mar-07 0:06 
AnswerRe: Language Problem Pin
prasad_som12-Mar-07 0:09
prasad_som12-Mar-07 0:09 
QuestionATL ActiveX destructor not called Pin
TClarke8-Mar-07 4:53
TClarke8-Mar-07 4:53 
AnswerRe: ATL ActiveX destructor not called Pin
prasad_som8-Mar-07 18:10
prasad_som8-Mar-07 18:10 
GeneralRe: ATL ActiveX destructor not called Pin
TClarke8-Mar-07 22:45
TClarke8-Mar-07 22:45 
GeneralRe: ATL ActiveX destructor not called Pin
prasad_som8-Mar-07 22:51
prasad_som8-Mar-07 22:51 
GeneralRe: ATL ActiveX destructor not called Pin
TClarke8-Mar-07 22:57
TClarke8-Mar-07 22:57 
GeneralRe: ATL ActiveX destructor not called Pin
prasad_som8-Mar-07 23:01
prasad_som8-Mar-07 23:01 
GeneralRe: ATL ActiveX destructor not called Pin
TClarke8-Mar-07 23:04
TClarke8-Mar-07 23:04 
QuestionCreating IE instance Pin
rana748-Mar-07 3:54
rana748-Mar-07 3:54 
QuestionATL with wxWidgets ,is it possible???? Pin
capello.tn7-Mar-07 23:15
capello.tn7-Mar-07 23:15 
QuestionATL server session state keeping between two different web services? Pin
falsevapor7-Mar-07 10:41
falsevapor7-Mar-07 10:41 
Questionpush_back vector function - Not working Pin
LCI6-Mar-07 6:58
LCI6-Mar-07 6:58 
QuestionFiring events doesn't work Pin
Romiks5-Mar-07 21:57
Romiks5-Mar-07 21:57 

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.