Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CStatic-Derived class: painting background Pin
42888-Apr-08 7:23
42888-Apr-08 7:23 
GeneralRe: CStatic-Derived class: painting background Pin
Hamid_RT8-Apr-08 8:00
Hamid_RT8-Apr-08 8:00 
QuestionA very basic question about ODBC Pin
Joseph Marzbani4-Apr-08 5:34
Joseph Marzbani4-Apr-08 5:34 
GeneralRe: A very basic question about ODBC Pin
David Crow4-Apr-08 6:04
David Crow4-Apr-08 6:04 
GeneralRe: A very basic question about ODBC Pin
Mark Salsbery4-Apr-08 7:18
Mark Salsbery4-Apr-08 7:18 
GeneralChump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 4:34
Eurosid4-Apr-08 4:34 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
led mike4-Apr-08 5:04
led mike4-Apr-08 5:04 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 5:21
Eurosid4-Apr-08 5:21 
I'm new to using COM, so maybe I'm missing something obvious here.

The data I can verify is OK.

led mike wrote:
VARIANT DataValues[4];
V_R4( &DataValues[0]) = 0.0;


Those lines work for me, too.

The examples I'm looking show that you verify it's OK by doing this sort of thing:

if (!V_R4(&vDataValues[i]))
{
//Do some error stuff
}

And !V_R4(&vDataValues[i]) evaluates to false if the data is 0.0.

Why is that?Confused | :confused:

If I comment out that error check, everything seems to work fine. Is it not needed?
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
led mike4-Apr-08 5:32
led mike4-Apr-08 5:32 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 5:49
Eurosid4-Apr-08 5:49 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
Iain Clarke, Warrior Programmer4-Apr-08 5:43
Iain Clarke, Warrior Programmer4-Apr-08 5:43 
GeneralRe: Chump Is Stumped By VARIANT Problem Pin
Eurosid4-Apr-08 5:51
Eurosid4-Apr-08 5:51 
Generalprimary key Pin
Try4-Apr-08 4:34
Try4-Apr-08 4:34 
GeneralRe: primary key Pin
Nitheesh George4-Apr-08 4:45
Nitheesh George4-Apr-08 4:45 
QuestionRe: primary key Pin
David Crow4-Apr-08 6:08
David Crow4-Apr-08 6:08 
GeneralRe: primary key Pin
Try6-Apr-08 1:29
Try6-Apr-08 1:29 
GeneralRe: primary key Pin
Mark Salsbery4-Apr-08 7:26
Mark Salsbery4-Apr-08 7:26 
GeneralA strange problem with CRecordset derived class Pin
Joseph Marzbani4-Apr-08 3:27
Joseph Marzbani4-Apr-08 3:27 
GeneralRe: A strange problem with CRecordset derived class Pin
prasad_som4-Apr-08 3:37
prasad_som4-Apr-08 3:37 
GeneralRe: A strange problem with CRecordset derived class Pin
Cedric Moonen4-Apr-08 3:41
Cedric Moonen4-Apr-08 3:41 
GeneralRe: A strange problem with CRecordset derived class Pin
Joseph Marzbani4-Apr-08 3:56
Joseph Marzbani4-Apr-08 3:56 
GeneralRe: A strange problem with CRecordset derived class Pin
Cedric Moonen4-Apr-08 3:59
Cedric Moonen4-Apr-08 3:59 
GeneralRe: A strange problem with CRecordset derived class Pin
CPallini4-Apr-08 4:00
mveCPallini4-Apr-08 4:00 
GeneralRe: A strange problem with CRecordset derived class Pin
CPallini4-Apr-08 3:51
mveCPallini4-Apr-08 3:51 
GeneralRe: A strange problem with CRecordset derived class Pin
Joseph Marzbani4-Apr-08 3:58
Joseph Marzbani4-Apr-08 3:58 

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.