Click here to Skip to main content
16,005,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralApplication event and messages "sniffer" Pin
27-Aug-04 12:16
suss27-Aug-04 12:16 
GeneralRe: Application event and messages "sniffer" Pin
darkbyte27-Aug-04 13:48
darkbyte27-Aug-04 13:48 
GeneralRe: Application event and messages "sniffer" Pin
Charlie Williams27-Aug-04 14:07
Charlie Williams27-Aug-04 14:07 
GeneralRe: Application event and messages "sniffer" Pin
LukeV27-Aug-04 18:28
LukeV27-Aug-04 18:28 
GeneralGetting Visual Studio .NET 2003 Add-Ins to work Pin
Franz Klein27-Aug-04 11:05
Franz Klein27-Aug-04 11:05 
GeneralRe: Getting Visual Studio .NET 2003 Add-Ins to work Pin
Kevin McFarlane28-Aug-04 0:07
Kevin McFarlane28-Aug-04 0:07 
GeneralRe: Getting Visual Studio .NET 2003 Add-Ins to work Pin
darkbyte28-Aug-04 4:07
darkbyte28-Aug-04 4:07 
GeneralMacro or another Way Pin
Grahamfff27-Aug-04 10:27
Grahamfff27-Aug-04 10:27 
I have stored in a database a rescaling factor "0.5/pow(2, 14)".

My question is as its stored as a string how do I use it?
I did try in my project:-

#define scaleFactor1 (data_details[index].scaling)<br />
float rescaledData =  currentField * scaleFactor1;

But this does not work; get error:-

c:\Export_Lib\Export_LibDlg.cpp(353): error C2297: '*' : illegal, right operand has type 'char [30]'

Also the macro would be redefined as the statements are in a loop.

Also I did try:-

float scaleFactor1 = signal_details[index].scaling;
But the same error, what I expected.

Are they any tricks that can be aplied to this string to make it usable in the code.

grahamfff
GeneralRe: Macro or another Way Pin
David Crow27-Aug-04 10:40
David Crow27-Aug-04 10:40 
GeneralRe: Macro or another Way Pin
Grahamfff27-Aug-04 21:52
Grahamfff27-Aug-04 21:52 
GeneralRe: Macro or another Way Pin
David Crow28-Aug-04 17:24
David Crow28-Aug-04 17:24 
GeneralRe: Macro or another Way Pin
Grahamfff30-Aug-04 9:24
Grahamfff30-Aug-04 9:24 
GeneralRe: Macro or another Way Pin
Bob Stanneveld28-Aug-04 7:40
Bob Stanneveld28-Aug-04 7:40 
GeneralsaveFileDialog Pin
jet91527-Aug-04 10:04
jet91527-Aug-04 10:04 
GeneralRe: saveFileDialog Pin
Maximilien27-Aug-04 10:14
Maximilien27-Aug-04 10:14 
GeneralRe: saveFileDialog Pin
toxcct28-Aug-04 7:58
toxcct28-Aug-04 7:58 
GeneralRegistry Corruption Pin
aman200627-Aug-04 9:10
aman200627-Aug-04 9:10 
GeneralRe: Registry Corruption Pin
David Crow27-Aug-04 9:25
David Crow27-Aug-04 9:25 
GeneralRe: Registry Corruption Pin
aman200627-Aug-04 10:42
aman200627-Aug-04 10:42 
GeneralRe: Registry Corruption Pin
David Crow27-Aug-04 11:00
David Crow27-Aug-04 11:00 
GeneralRe: Registry Corruption Pin
Michael Dunn27-Aug-04 21:01
sitebuilderMichael Dunn27-Aug-04 21:01 
QuestionNeed to insert text? Pin
Larsson27-Aug-04 9:04
Larsson27-Aug-04 9:04 
AnswerRe: Need to insert text? Pin
David Crow27-Aug-04 9:33
David Crow27-Aug-04 9:33 
GeneralRe: Need to insert text? Pin
Larsson27-Aug-04 10:03
Larsson27-Aug-04 10:03 
GeneralRe: Need to insert text? Pin
David Crow27-Aug-04 10:38
David Crow27-Aug-04 10:38 

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.