Click here to Skip to main content
15,898,743 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: passing parameters Pin
Sirrius10-Oct-03 15:52
Sirrius10-Oct-03 15:52 
GeneralMFC Application with DTML GUI Pin
blueinred10-Oct-03 13:11
blueinred10-Oct-03 13:11 
GeneralRe: MFC Application with DTML GUI Pin
Scozturk10-Oct-03 22:16
professionalScozturk10-Oct-03 22:16 
GeneralTab Ctrl!! Pin
kannada10-Oct-03 13:02
kannada10-Oct-03 13:02 
QuestionHow to create sounds Pin
Deepak Samuel10-Oct-03 13:02
Deepak Samuel10-Oct-03 13:02 
AnswerRe: How to create sounds Pin
John M. Drescher10-Oct-03 13:38
John M. Drescher10-Oct-03 13:38 
GeneralRe: How to create sounds Pin
Scozturk10-Oct-03 22:12
professionalScozturk10-Oct-03 22:12 
Generallinked list problem Pin
K. Shaffer10-Oct-03 12:09
K. Shaffer10-Oct-03 12:09 
I wrote a linked list to hande some object that I created. When I try to print the list, it prints garbage. I made a temporary project to test my class and it works fine, so the problem is how I am using it in my project. I think that it is a memory issue and that the objects are being written over after I store them in my list.

This is how I am using the list.

//funtion to create object that will be stored in list.
CApproach ApproachPage::ParseApproach(CString string)
{
......

CApproach approach(Chart_Name, Chart_Num, Chart_Rev_Date);
return approach;
}

//Insert class in List.cpp
int PrintList::Insert(CApproach* approach )
{
.....
}


//main.h
PrintList* list;

//contructor of main
list = new PrintList();

//main
list->Insert(&ParseApproach(codestring));

//prints garbage to the outputfile, but works in another project
list->print()



I learned to program in java so pointers and c++ memory are far from my specialty. Any help would be great. Thanks.



Kevin Shaffer
kshaff03@msn.com
GeneralRe: linked list problem Pin
Phil Hamer10-Oct-03 12:24
Phil Hamer10-Oct-03 12:24 
GeneralRe: linked list problem Pin
John M. Drescher10-Oct-03 13:19
John M. Drescher10-Oct-03 13:19 
GeneralOpen and Read a PS/2 port (mouse) Pin
asd175310-Oct-03 11:50
asd175310-Oct-03 11:50 
GeneralThis is not visual, nor C++ Pin
totig10-Oct-03 11:13
totig10-Oct-03 11:13 
GeneralRe: This is not visual, nor C++ Pin
ZoogieZork10-Oct-03 11:40
ZoogieZork10-Oct-03 11:40 
GeneralRe: This is not visual, nor C++ Pin
Paul Oss10-Oct-03 11:51
Paul Oss10-Oct-03 11:51 
GeneralRe: This is not visual, nor C++ Pin
W. Hammer -sledge-10-Oct-03 20:53
W. Hammer -sledge-10-Oct-03 20:53 
GeneralCEditView problem Pin
aplamon10-Oct-03 11:07
aplamon10-Oct-03 11:07 
GeneralRe: CEditView problem Pin
Anthony_Yio10-Oct-03 22:46
Anthony_Yio10-Oct-03 22:46 
QuestionAnyone used groupware of some kind? Pin
JWood10-Oct-03 9:54
JWood10-Oct-03 9:54 
AnswerRe: Anyone used groupware of some kind? Pin
Ravi Bhavnani10-Oct-03 10:17
professionalRavi Bhavnani10-Oct-03 10:17 
GeneralRe: Anyone used groupware of some kind? Pin
Michael Dunn10-Oct-03 13:56
sitebuilderMichael Dunn10-Oct-03 13:56 
QuestionCRichEdit problem??? Pin
Ph@ntom10-Oct-03 9:28
Ph@ntom10-Oct-03 9:28 
GeneralMaking the transition from Win API SDK to MFC Pin
Kayembi10-Oct-03 9:15
Kayembi10-Oct-03 9:15 
GeneralRe: Making the transition from Win API SDK to MFC Pin
Ravi Bhavnani10-Oct-03 10:26
professionalRavi Bhavnani10-Oct-03 10:26 
GeneralRe: Making the transition from Win API SDK to MFC Pin
Kayembi11-Oct-03 8:50
Kayembi11-Oct-03 8:50 
GeneralCPropertyPage Title Pin
act_x10-Oct-03 8:48
act_x10-Oct-03 8:48 

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.