Click here to Skip to main content
15,899,475 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Deleting a file Pin
kyledunn7-May-02 9:35
kyledunn7-May-02 9:35 
GeneralRe: Deleting a file Pin
Joaquín M López Muñoz7-May-02 9:41
Joaquín M López Muñoz7-May-02 9:41 
GeneralRe: Deleting a file Pin
Carlos Antollini7-May-02 10:10
Carlos Antollini7-May-02 10:10 
QuestionWrap text? Pin
7-May-02 7:55
suss7-May-02 7:55 
AnswerRe: Wrap text? Pin
Joaquín M López Muñoz7-May-02 8:04
Joaquín M López Muñoz7-May-02 8:04 
AnswerRe: Wrap text? Pin
Navin7-May-02 8:18
Navin7-May-02 8:18 
AnswerRe: Wrap text? Pin
Shog97-May-02 12:06
sitebuilderShog97-May-02 12:06 
GeneralAccessing structs in other classes Pin
Steve L.7-May-02 7:54
Steve L.7-May-02 7:54 
In my Doc I have this:
struct ItemInfo
{
	CString name;
	CString catagory;
	CString description;
}itemInfo;

Then in my View I have this:
//get a pointer to the doc
CMyDoc* pDoc = GetDocument();
<br>
//get the item name
CString itemName = GetItemName();
<br>
//put the item name in the doc struct
pDoc->itemInfo.name = itemName;

But the program aborts when it reaches the last line of code, why?


-Raffi
GeneralRe: Accessing structs in other classes Pin
Joaquín M López Muñoz7-May-02 8:14
Joaquín M López Muñoz7-May-02 8:14 
GeneralRe: Accessing structs in other classes Pin
moliate7-May-02 8:24
moliate7-May-02 8:24 
GeneralRe: Accessing structs in other classes Pin
Steve L.7-May-02 8:39
Steve L.7-May-02 8:39 
GeneralRe: Accessing structs in other classes Pin
Joaquín M López Muñoz7-May-02 8:52
Joaquín M López Muñoz7-May-02 8:52 
GeneralRe: Accessing structs in other classes Pin
Steve L.7-May-02 9:00
Steve L.7-May-02 9:00 
GeneralRe: Accessing structs in other classes Pin
Joaquín M López Muñoz7-May-02 9:10
Joaquín M López Muñoz7-May-02 9:10 
GeneralRe: Accessing structs in other classes Pin
Steve L.7-May-02 9:19
Steve L.7-May-02 9:19 
GeneralRe: Accessing structs in other classes Pin
Joaquín M López Muñoz7-May-02 9:21
Joaquín M López Muñoz7-May-02 9:21 
GeneralRe: Accessing structs in other classes Pin
tongc7-May-02 14:11
tongc7-May-02 14:11 
GeneralDetecting Internet access Pin
Neil scsn7-May-02 7:38
Neil scsn7-May-02 7:38 
GeneralRe: Detecting Internet access Pin
Ravi Bhavnani7-May-02 7:43
professionalRavi Bhavnani7-May-02 7:43 
GeneralProblem with opening file... please read. Pin
redeemer7-May-02 7:31
redeemer7-May-02 7:31 
GeneralRe: Problem with opening file... please read. Pin
Joaquín M López Muñoz7-May-02 8:03
Joaquín M López Muñoz7-May-02 8:03 
GeneralRe: Problem with opening file... please read. Pin
Paul M Watt7-May-02 8:05
mentorPaul M Watt7-May-02 8:05 
GeneralRe: Problem with opening file... please read. Pin
redeemer7-May-02 8:45
redeemer7-May-02 8:45 
GeneralRe: Problem with opening file... please read. Pin
Joaquín M López Muñoz7-May-02 8:54
Joaquín M López Muñoz7-May-02 8:54 
GeneralRe: Problem with opening file... please read. Pin
redeemer7-May-02 9:18
redeemer7-May-02 9:18 

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.