Click here to Skip to main content
15,921,028 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what tool do u use to debug a COM object? Pin
devvvy15-Nov-02 22:46
devvvy15-Nov-02 22:46 
GeneralRe: what tool do u use to debug a COM object? Pin
Christian Graus15-Nov-02 22:57
protectorChristian Graus15-Nov-02 22:57 
AnswerRe: what tool do u use to debug a COM object? Pin
Daniel Turini15-Nov-02 22:37
Daniel Turini15-Nov-02 22:37 
GeneralRe: what tool do u use to debug a COM object? Pin
devvvy15-Nov-02 22:41
devvvy15-Nov-02 22:41 
AnswerRe: what tool do u use to debug a COM object? Pin
ian mariano16-Nov-02 8:45
ian mariano16-Nov-02 8:45 
GeneralCOM - data types. confusing. Pin
devvvy15-Nov-02 21:39
devvvy15-Nov-02 21:39 
GeneralRe: COM - data types. confusing. Pin
Christian Graus15-Nov-02 21:50
protectorChristian Graus15-Nov-02 21:50 
GeneralRe: COM - data types. confusing. Pin
Anonymous15-Nov-02 22:06
Anonymous15-Nov-02 22:06 
norm wrote:
QUESTION 1: are they the same? LPSTR and char *

That's the same. LPSTR is preferred if you want to minimize the * in the signatures (it's more object-like).


norm wrote:
QUESTION 2:
and what the heck is OLECHAR?


OLECHAR = WCHAR = 16-bits = UCS2 = Unicode (the OS uses unicode strings internally).




norm wrote:
QUESTION 3:
I cant find the documentation for:
a. OLECHAR
b. LPSTR


look in <wtypes.h>



norm wrote:
QUESTION 4:
_TEXT()
_T()


see <tchar.h>
This macro produces either a simple char* string or a WCHAR* string depending on whether you are compiling in "normal" mode (SBCS, DBCS, MBCS), or in UNICODE.
Use it instead of L"xxxx" which always produces a WCHAR* string regardless of the compilation mode.

Using _T(x) is also a good idea to remind yourself where are the hardcoded strings (internationalisation).



norm wrote:
QUESTION 5: if char is a Automation compliant data type, then why BSTR? and why Variant?

BSTR is an all-in-one string : Unicode, content itself, length.
A char* is not a typed string (can you figure out the codepage in it ? Answer = no). A char* does not have the length embedded (you could do a _tcslen(string) on it, provided it ends with a 0, etc., etc. ==> Many issues with a char*

VARIANT is a C-union struct. Introduced mostly because of VB (which hides all the type mapping for you) and other automation languages.
GeneralRe: COM - data types. confusing. Pin
Michael Dunn16-Nov-02 4:52
sitebuilderMichael Dunn16-Nov-02 4:52 
GeneralRe: COM - data types. confusing. Pin
devvvy16-Nov-02 8:21
devvvy16-Nov-02 8:21 
GeneralFloat Data Pin
TRae15-Nov-02 20:34
TRae15-Nov-02 20:34 
GeneralRe: Float Data Pin
Chris Losinger15-Nov-02 20:41
professionalChris Losinger15-Nov-02 20:41 
GeneralRe: Float Data Pin
Michael Dunn15-Nov-02 21:04
sitebuilderMichael Dunn15-Nov-02 21:04 
GeneralCTabCtrl and CListView Pin
Luke Murray15-Nov-02 19:52
Luke Murray15-Nov-02 19:52 
QuestionWhere can I find MEPG4 encode/decode samples? Pin
George215-Nov-02 19:43
George215-Nov-02 19:43 
AnswerRe: Where can I find MEPG4 encode/decode samples? Pin
ian mariano15-Nov-02 19:58
ian mariano15-Nov-02 19:58 
GeneralRe: Where can I find MEPG4 encode/decode samples? Pin
George215-Nov-02 22:18
George215-Nov-02 22:18 
AnswerRe: Where can I find MEPG4 encode/decode samples? Pin
Redeemer-dk15-Nov-02 23:51
Redeemer-dk15-Nov-02 23:51 
GeneralRe: Where can I find MEPG4 encode/decode samples? Pin
George216-Nov-02 3:06
George216-Nov-02 3:06 
GeneralCreating Waitable Timers Pin
Anonymous15-Nov-02 18:37
Anonymous15-Nov-02 18:37 
GeneralRe: Creating Waitable Timers Pin
ian mariano15-Nov-02 19:39
ian mariano15-Nov-02 19:39 
GeneralRe: Creating Waitable Timers Pin
Daniel Turini15-Nov-02 21:36
Daniel Turini15-Nov-02 21:36 
Generaladd another toolbar Pin
Anonymous15-Nov-02 16:37
Anonymous15-Nov-02 16:37 
QuestionHow to know when a process ends? Pin
IGx8915-Nov-02 15:41
IGx8915-Nov-02 15:41 
AnswerRe: How to know when a process ends? Pin
Michael Dunn15-Nov-02 16:13
sitebuilderMichael Dunn15-Nov-02 16:13 

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.