Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
CPallini12-Jun-09 1:00
mveCPallini12-Jun-09 1:00 
QuestionRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
David Crow12-Jun-09 3:10
David Crow12-Jun-09 3:10 
AnswerRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar12-Jun-09 22:49
krish_kumar12-Jun-09 22:49 
QuestionRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
David Crow13-Jun-09 12:44
David Crow13-Jun-09 12:44 
AnswerRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar14-Jun-09 3:43
krish_kumar14-Jun-09 3:43 
QuestionResolution Problem in SDI application Pin
Saleem Anwar12-Jun-09 0:18
Saleem Anwar12-Jun-09 0:18 
AnswerRe: Resolution Problem in SDI application Pin
Niklas L12-Jun-09 0:33
Niklas L12-Jun-09 0:33 
AnswerRe: Resolution Problem in SDI application Pin
CPallini12-Jun-09 0:42
mveCPallini12-Jun-09 0:42 
To map the data image to the window client area you need the following values
int xMinData;
int xMaxData;
int yMinData;
int yMaxData;

(as maximum and minimum values of the bounding rectangle of the data image)

then perform (assuming your client area is {0, 0, widthWnd-1, heightWnd-1}:
xWnd =(int) (((double) xData - xMinData) / (xMaxData-xMinData) * widthWnd + .5);
yWnd =(int) (((double) yData - yMinData) / (yMaxData-yMinData) * heightWnd + .5);


formula correctness test is left to the reader
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

QuestionSetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
callousfantom12-Jun-09 0:01
callousfantom12-Jun-09 0:01 
AnswerRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
Niklas L12-Jun-09 0:08
Niklas L12-Jun-09 0:08 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
callousfantom12-Jun-09 0:31
callousfantom12-Jun-09 0:31 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
Niklas L12-Jun-09 0:46
Niklas L12-Jun-09 0:46 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
Randor 12-Jun-09 6:59
professional Randor 12-Jun-09 6:59 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! [modified] Pin
callousfantom16-Jun-09 18:48
callousfantom16-Jun-09 18:48 
QuestionXML DOM insertBefore() Method Pin
p_196011-Jun-09 23:59
p_196011-Jun-09 23:59 
AnswerRe: XML DOM insertBefore() Method Pin
Niklas L12-Jun-09 0:05
Niklas L12-Jun-09 0:05 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:07
p_196012-Jun-09 0:07 
GeneralRe: XML DOM insertBefore() Method Pin
Niklas L12-Jun-09 0:13
Niklas L12-Jun-09 0:13 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:28
p_196012-Jun-09 0:28 
GeneralRe: XML DOM insertBefore() Method Pin
Niklas L12-Jun-09 0:37
Niklas L12-Jun-09 0:37 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:45
p_196012-Jun-09 0:45 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 1:19
p_196012-Jun-09 1:19 
QuestionCControlBars always on top of CMDIChildWnd Pin
Niklas L11-Jun-09 23:27
Niklas L11-Jun-09 23:27 
QuestionHow to Generate a Installer in VC++??? Pin
Jayaraman K11-Jun-09 23:17
Jayaraman K11-Jun-09 23:17 
AnswerRe: How to Generate a Installer in VC++??? Pin
Cedric Moonen11-Jun-09 23:23
Cedric Moonen11-Jun-09 23:23 

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.