Click here to Skip to main content
15,920,217 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 5:41
Joaquín M López Muñoz9-Apr-02 5:41 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 5:45
Jamie Hale9-Apr-02 5:45 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 6:12
Joaquín M López Muñoz9-Apr-02 6:12 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:38
Jamie Hale9-Apr-02 6:38 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 6:15
Joaquín M López Muñoz9-Apr-02 6:15 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:39
Jamie Hale9-Apr-02 6:39 
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 7:07
Joaquín M López Muñoz9-Apr-02 7:07 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 7:34
Jamie Hale9-Apr-02 7:34 
Joaquín M López Muñoz wrote:
Well, this is shooting in the dark, but I guess your desperation justifies desperate measures.

I shot, and it wasn't at all the problem, but it led me to it!!

I guess I don't quite understand templates yet... In the same way you add a forward declaration of a classA to a header file defining classB if a classB contains a pointer to classA (has-a), I had added a forward declaration of my template to one of the other header files.

When I copied the CObjectCache definition in front of the CFLAWDoc class, a bunch of things broke because of redefinitions... and in removing everything that caused the redefinitions, I came across that forward declaration.

Anyways, the forward is gone, the template definition is back to where it should be, and everything compiles and runs just fine.

Thank you sir. While you didn't actually find my problem, it probably would have taken me another day or two to find it without your suggestions. Smile | :)

Next time you're in Toronto, beers are on me. Smile | :)

J
GeneralRe: template members Pin
Joaquín M López Muñoz9-Apr-02 7:44
Joaquín M López Muñoz9-Apr-02 7:44 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:18
Jamie Hale9-Apr-02 6:18 
GeneralRe: template members Pin
CodeGuy9-Apr-02 6:28
CodeGuy9-Apr-02 6:28 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 6:44
Jamie Hale9-Apr-02 6:44 
GeneralRe: template members Pin
Christian Graus8-Apr-02 10:26
protectorChristian Graus8-Apr-02 10:26 
GeneralRe: template members Pin
Tim Smith8-Apr-02 10:42
Tim Smith8-Apr-02 10:42 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 4:57
Jamie Hale9-Apr-02 4:57 
GeneralRe: template members Pin
Jamie Hale9-Apr-02 4:55
Jamie Hale9-Apr-02 4:55 
GeneralSaving Icons Pin
Shog98-Apr-02 9:00
sitebuilderShog98-Apr-02 9:00 
GeneralRe: Saving Icons Pin
Roman Nurik8-Apr-02 9:57
Roman Nurik8-Apr-02 9:57 
GeneralRe: Saving Icons Pin
Shog98-Apr-02 10:23
sitebuilderShog98-Apr-02 10:23 
GeneralPopup Menu Pin
icerapper@k.ro8-Apr-02 8:23
icerapper@k.ro8-Apr-02 8:23 
GeneralRe: Popup Menu Pin
Rickard Andersson208-Apr-02 8:38
Rickard Andersson208-Apr-02 8:38 
GeneralRe: Popup Menu Pin
icerapper@k.ro9-Apr-02 10:44
icerapper@k.ro9-Apr-02 10:44 
Generalassigning a CString to a char*/char Pin
Rickard Andersson208-Apr-02 8:09
Rickard Andersson208-Apr-02 8:09 
GeneralRe: assigning a CString to a char*/char Pin
Shog98-Apr-02 8:30
sitebuilderShog98-Apr-02 8:30 
GeneralRe: assigning a CString to a char*/char Pin
Rickard Andersson208-Apr-02 8:36
Rickard Andersson208-Apr-02 8:36 

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.