Thread: exception Handling

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    12

    Exclamation exception Handling

    Hi, I need to include into my program exception handling on my fuction/objects in my
    program but am unsure on how to go about this, i looked on the information that has
    been given on this site and still am no closer to solving the issue, please could
    anybody explain this too me or if possible show me on sum coding that i have
    placed below:
    Code:
    void ViewPublication::OnBnClickedButton6()
    {
    	Node *viewPublication =  mylist.end();
    	
    	
    	publisher.SetWindowTextW((*viewPublication).publication.Add_publisher);
    	isbn.SetWindowTextW((*viewPublication).publication.Isbn);
    	view_type.SetWindowTextW((*viewPublication).publication.Type);
    	title1.SetWindowTextW((*viewPublication).books.title1);
    	author.SetWindowTextW((*viewPublication).books.author);
    	title2.SetWindowTextW((*viewPublication).Title.title1);
    	editor.SetWindowTextW((*viewPublication).probooks.editor);
    	date.SetWindowTextW((*viewPublication).probooks.date);
    	
    }
    or if this makes things easier:

    Code:
    Node* List::end()
    
    
    {
    	Node *Navigator =_head; 
    
    	while ((*Navigator).next !=NULL)
    	{
    		Navigator = (*Navigator).next;
    		_last=Navigator;
    	}
    
    	_current=_last;
    	return _last;
    }
    Thanks
    Last edited by 1troy123; 08-25-2011 at 06:53 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. signal handling and exception handling
    By lehe in forum C++ Programming
    Replies: 2
    Last Post: 06-15-2009, 10:01 PM
  2. Exception handling
    By Mr.Sellars in forum C++ Programming
    Replies: 16
    Last Post: 08-10-2007, 10:44 PM
  3. CIN and exception handling
    By OldSchool in forum C++ Programming
    Replies: 4
    Last Post: 05-14-2006, 05:02 PM
  4. ATL exception handling
    By rzcodeman in forum Windows Programming
    Replies: 1
    Last Post: 06-10-2004, 06:19 PM
  5. Exception handling
    By kuwait in forum C++ Programming
    Replies: 4
    Last Post: 12-11-2003, 06:20 AM