USES_CONVERSION
-
Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error
Girish Software Developer
-
Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error
Girish Software Developer
Girish601 wrote:
am been getting Stuck in a macro USES_CONVERSION.
It is just a macro. Can you show code ?
Girish601 wrote:
It is unable to execute the statements following this macro.
How you know that ? Is function retuning from that line ?
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Girish601 wrote:
am been getting Stuck in a macro USES_CONVERSION.
It is just a macro. Can you show code ?
Girish601 wrote:
It is unable to execute the statements following this macro.
How you know that ? Is function retuning from that line ?
Prasad Notifier using ATL | Operator new[],delete[][^]
USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem... Is defined in atlconv.h #define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa) I don't know man, no idea what could be the problem
-
USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem... Is defined in atlconv.h #define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa) I don't know man, no idea what could be the problem
Kharfax wrote:
USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem... Is defined in atlconv.h #define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)
I know why its used. I asked OP the code following it.
Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error
Girish Software Developer
Before you use any of the A2W, W2A... macros, you must first define USES_CONVERSION. That macro is not a function itself, but defining it allows you to use the conversion macros.
-
Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error
Girish Software Developer
If you are using VC7.0 or later you should use the ATL7.0 conversion macros instead of the ATL3.0 ones. The ATL7.0 macros do not require USES_CONVERSION. See http://msdn2.microsoft.com/en-us/library/87zae4a3(VS.80).aspx[^].
You may be right
I may be crazy
-- Billy Joel --Within you lies the power for good, use it!!!