Click here to Skip to main content
15,927,885 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalwrap a dll into another dll Pin
ppp0018-Mar-05 15:29
ppp0018-Mar-05 15:29 
GeneralRe: wrap a dll into another dll Pin
Anonymous8-Mar-05 16:06
Anonymous8-Mar-05 16:06 
Generalbarcode on C lang Pin
france_philippines8-Mar-05 14:35
france_philippines8-Mar-05 14:35 
GeneralRe: barcode on C lang Pin
PJ Arends8-Mar-05 14:48
professionalPJ Arends8-Mar-05 14:48 
GeneralMFC7 COleVariant and CString classes Pin
Serge Krynine8-Mar-05 12:17
Serge Krynine8-Mar-05 12:17 
GeneralRe: MFC7 COleVariant and CString classes Pin
PJ Arends8-Mar-05 14:44
professionalPJ Arends8-Mar-05 14:44 
GeneralRe: MFC7 COleVariant and CString classes Pin
Serge Krynine8-Mar-05 15:37
Serge Krynine8-Mar-05 15:37 
GeneralRe: MFC7 COleVariant and CString classes Pin
PJ Arends8-Mar-05 19:36
professionalPJ Arends8-Mar-05 19:36 
There are two things to remember, one: MSDN is not always correct, two: not everything is backwards compatible.

Serge Krynine wrote:
#if _MFC_VER >= 0x0700 // represents MFC version 7 and later
VT_BSTR);
#else
VT_BSTRT);
#endif


There are obviously differences between COleVariant v6 and v7 as they act differently. Just right click on VT_BSTRT in both VC6 and VC7 and you will be brought to different definitions.

Serge Krynine wrote:
CString s;
// why 's = v.pcVal' works, but 's = v' does not?
#if _MFC_VER >= 0x0700 // represents MFC version 7 and later
s = v;
#else
s = v.pcVal;
#endif


CString in VC6 does not have an operator = const VARIANT& and VC7 does.

Try different settings, and use the debugger's variable watch window to see what is happening.







"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralWaitCursor and form disable Pin
Esquif8-Mar-05 12:14
Esquif8-Mar-05 12:14 
GeneralRe: WaitCursor and form disable Pin
Sujan Christo8-Mar-05 22:41
Sujan Christo8-Mar-05 22:41 
Generalusing dll Pin
pnpfriend8-Mar-05 12:09
pnpfriend8-Mar-05 12:09 
GeneralRe: using dll Pin
PJ Arends8-Mar-05 15:02
professionalPJ Arends8-Mar-05 15:02 
GeneralWatermarking Pin
Lampros Giampouras8-Mar-05 11:52
Lampros Giampouras8-Mar-05 11:52 
GeneralRe: Watermarking Pin
Christian Graus8-Mar-05 12:24
protectorChristian Graus8-Mar-05 12:24 
GeneralRe: Watermarking Pin
Lampros Giampouras10-Mar-05 1:44
Lampros Giampouras10-Mar-05 1:44 
GeneralRe: Watermarking Pin
Lampros Giampouras10-Mar-05 7:48
Lampros Giampouras10-Mar-05 7:48 
GeneralRe: Watermarking Pin
Chris Losinger9-Mar-05 6:56
professionalChris Losinger9-Mar-05 6:56 
Generalneed guide implement dictionary Pin
dung nam8-Mar-05 11:52
dung nam8-Mar-05 11:52 
GeneralRe: need guide implement dictionary Pin
John M. Drescher8-Mar-05 12:08
John M. Drescher8-Mar-05 12:08 
Questionhow to disable button "change icon"? Pin
dung nam8-Mar-05 11:46
dung nam8-Mar-05 11:46 
GeneralHandling Multiple Keyboard Input Pin
Hyland Computer Systems8-Mar-05 10:58
Hyland Computer Systems8-Mar-05 10:58 
Generalhook a com Pin
Spiritofamerica8-Mar-05 10:48
Spiritofamerica8-Mar-05 10:48 
Generalnewdev.h and cfg.h files Pin
trupgmtuf8-Mar-05 10:36
susstrupgmtuf8-Mar-05 10:36 
Generalnewdev.h and cfg.h files Pin
trupgmtuf8-Mar-05 10:39
susstrupgmtuf8-Mar-05 10:39 
GeneralLoading Files into a List Box Pin
lino_i8-Mar-05 9:10
lino_i8-Mar-05 9:10 

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.