CListBox InsertString can't be called

Posted on 2005-04-04
Medium Priority
Last Modified: 2013-11-20
I have a dialog with a list box on it; I added a control to it called m_listBox that's a public variable, so others can access it from another class. When I go to use it like so:

//This is being called in another class that creates an object of the dialog that has the list box

// when I get to typing "m_listBox." I dont' see the system showing me a list of methods available to m_listBox (as it should)....

is there anything wrong in the way I'm using it?
Question by:jade03
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 30

Expert Comment

ID: 13699769
Hi jade03,
> >is there anything wrong in the way I'm using it?
Sometimes VC++ will fail to show proper list for your object.
This is a bug in VC++ IDE, and not a problem with your code.

David Maisonave :-)
LVL 48

Accepted Solution

AlexFM earned 200 total points
ID: 13700345
Close VC++, remove project .ncb and .opt files, run VC++ and open project again.

Author Comment

ID: 13708512
AlexFM, I couldn't find the .opt files...
LVL 30

Expert Comment

ID: 13708914
The ability for yoru IDE to list your object's methods is called Intellisense.

Because of the bugs in VC++, I don't use the build-in VC++ Intellisense.
Instead I use a third party application called Visual Assist.  This application adds additional features to VC++.
I highly, highly recommend that you try this tool out.
You can download a trial version from the following link:

I garantee once you try it, you'll never want to go back.

The Intellisense is much more reliable using the Visual Assist AddOn, compared to VC++ built-in Intellisense.

Author Comment

ID: 13709914
I removed just the .ncb file and restarted the application and it worked!


Featured Post

Percona Live Europe 2017 | Sep 25 - 27, 2017

The Percona Live Open Source Database Conference Europe 2017 is the premier event for the diverse and active European open source database community, as well as businesses that develop and use open source database software.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question