Click here to Skip to main content
15,886,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Windows Service cannot access mapped network drive Pin
Ranojay28-Sep-10 22:31
Ranojay28-Sep-10 22:31 
AnswerRe: Windows Service cannot access mapped network drive Pin
Kushagra Tiwari29-Sep-10 1:45
Kushagra Tiwari29-Sep-10 1:45 
GeneralRe: Windows Service cannot access mapped network drive Pin
Ranojay29-Sep-10 2:11
Ranojay29-Sep-10 2:11 
AnswerRe: Windows Service cannot access mapped network drive [modified] Pin
Kushagra Tiwari29-Sep-10 3:01
Kushagra Tiwari29-Sep-10 3:01 
QuestionHow to get the co-ordinates of rectangle Pin
raju_shiva28-Sep-10 21:10
raju_shiva28-Sep-10 21:10 
AnswerRe: How to get the co-ordinates of rectangle Pin
Stephen Hewitt28-Sep-10 21:17
Stephen Hewitt28-Sep-10 21:17 
GeneralRe: How to get the co-ordinates of rectangle Pin
raju_shiva28-Sep-10 23:14
raju_shiva28-Sep-10 23:14 
GeneralRe: How to get the co-ordinates of rectangle Pin
Stephen Hewitt29-Sep-10 0:25
Stephen Hewitt29-Sep-10 0:25 
Here's the API you gave in an earlier post:
Here is the API :
   L_INT GetAnnotationContainer(L_INT nCellIndex,L_INT nSubCellIndex,HANNOBJECT * PhAnnContainer,L_UINT uFlags);

I have this in .h file

typedef struct tagDISPCONTAINERCELLINFO
{
   L_UINT uStructSize;
   L_HDC  hDC;
   L_INT  nCellIndex;
   L_INT  nSubCellIndex;
   RECT   rcRect;
   RECT   rcBitmapRect;
   L_INT  nX;
   L_INT  nY;
}
DISPCONTAINERCELLINFO, * pDISPCONTAINERCELLINFO;


And here's the updated code you just posted (I've corrected the incorrect escaping):
DISPCONTAINERCELLINFO pCellInfo;
m_ImageViewer.GetAnnotationContainer(pCellInfo->nCellIndex, pCellInfo->nSubCellIndex, &PhAnnContainer, CONTAINER_ACTION_ANNOTATION_RECTANGLE);


The pCellInfo variable is still not inititalised! In fact this code is worse, it will not even compile: pCellInfo is not a pointer (despite it's name suggesting it is) but is used as if it is (pCellInfo->nCellIndex).
 
Steve

QuestionOutlook bar with variable number of controls fails to draw Pin
old_hacker28-Sep-10 17:48
old_hacker28-Sep-10 17:48 
QuestionHow to get control of another code's dialog box Pin
largenqcd28-Sep-10 16:17
largenqcd28-Sep-10 16:17 
AnswerRe: How to get control of another code's dialog box [modified] Pin
Luc Pattyn28-Sep-10 16:35
sitebuilderLuc Pattyn28-Sep-10 16:35 
GeneralRe: How to get control of another code's dialog box Pin
largenqcd29-Sep-10 13:11
largenqcd29-Sep-10 13:11 
QuestionHow to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
ns28-Sep-10 10:13
ns28-Sep-10 10:13 
AnswerRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
Aescleal28-Sep-10 10:39
Aescleal28-Sep-10 10:39 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
ns28-Sep-10 10:51
ns28-Sep-10 10:51 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
Eugen Podsypalnikov28-Sep-10 11:57
Eugen Podsypalnikov28-Sep-10 11:57 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
Tim Craig28-Sep-10 15:05
Tim Craig28-Sep-10 15:05 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
Eugen Podsypalnikov28-Sep-10 20:41
Eugen Podsypalnikov28-Sep-10 20:41 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
ns29-Sep-10 4:31
ns29-Sep-10 4:31 
AnswerRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
Luc Pattyn28-Sep-10 11:10
sitebuilderLuc Pattyn28-Sep-10 11:10 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
ns29-Sep-10 4:35
ns29-Sep-10 4:35 
GeneralRe: How to make the release version of a visual studio 2008 c++ project so i can step in and debug? Pin
Luc Pattyn29-Sep-10 4:47
sitebuilderLuc Pattyn29-Sep-10 4:47 
Questionmfc xp style Pin
alexander 198328-Sep-10 5:46
alexander 198328-Sep-10 5:46 
AnswerRe: mfc xp style Pin
Moak28-Sep-10 6:31
Moak28-Sep-10 6:31 
AnswerRe: mfc xp style Pin
Paresh Chitte28-Sep-10 20:13
Paresh Chitte28-Sep-10 20: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.