Click here to Skip to main content
15,168,906 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Add tool tip to menu Pin
NoviceEx20-May-19 1:57
MemberNoviceEx20-May-19 1:57 
GeneralRe: Add tool tip to menu Pin
phil.o20-May-19 2:04
mvephil.o20-May-19 2:04 
QuestionHow to associate a row selected by ListControl with a specified path and file Pin
tianzhili439915-May-19 4:52
Membertianzhili439915-May-19 4:52 
AnswerRe: How to associate a row selected by ListControl with a specified path and file Pin
Richard MacCutchan15-May-19 4:59
mveRichard MacCutchan15-May-19 4:59 
QuestionRe: How to associate a row selected by ListControl with a specified path and file Pin
David Crow15-May-19 7:57
MemberDavid Crow15-May-19 7:57 
AnswerRe: How to associate a row selected by ListControl with a specified path and file Pin
tianzhili439915-May-19 15:40
Membertianzhili439915-May-19 15:40 
SuggestionRe: How to associate a row selected by ListControl with a specified path and file Pin
David Crow15-May-19 17:28
MemberDavid Crow15-May-19 17:28 
GeneralRe: How to associate a row selected by ListControl with a specified path and file Pin
tianzhili439915-May-19 23:42
Membertianzhili439915-May-19 23:42 
wow,thank you for your advice!I will try later!
I tried to solve the problem myself by means of using "CStringArray".But it fails when I debug and I do not know the reason.Would you please tell me the bug?
Here are the addition codes:
CStringArray filePaths;
CStringArray folderPaths;

filePaths.Add("D:\\robot_new\\Data\\4kg_simplified\\SR4_SIASUN.rbt");
filePaths.Add("D:\\robot_new\\Data\\IRB4400\\IRB4400 m.rbt");
folderPaths.Add("D:\\robot_new\\Data\\4kg_simplified");
folderPaths.Add("D:\\robot_new\\Data\\IRB4400");

CWaitCursor cur;
XObject obj;
bool bIsRobotLoad = false, bIsObjectLoad = false, bIsWorkPieceLoad = false, blsToolLoad = false;
int iObjSize = m_pDoc->m_vObj.size();
int iRobot = -1, iObj = -1;
CMainFrame* pMainFrame = (CMainFrame*)AfxGetMainWnd();
if( m_pDoc->LoadRbt(filePaths[nId-1],folderPaths[nId-1])) //here is the change
    {
        bIsRobotLoad = true;
        iRobot=  m_pDoc->m_vRobot.size()-1;
        pMainFrame->m_wndModelTreeView.DisplayRobotTree();
    }

GeneralRe: How to associate a row selected by ListControl with a specified path and file Pin
Richard MacCutchan16-May-19 0:32
mveRichard MacCutchan16-May-19 0:32 
GeneralRe: How to associate a row selected by ListControl with a specified path and file Pin
tianzhili439916-May-19 1:06
Membertianzhili439916-May-19 1:06 
Questionsolved Linking "foreign" library - not build on running system ? Pin
Vaclav_12-May-19 18:46
MemberVaclav_12-May-19 18:46 
AnswerRe: Linking "foreign" library - not build on running system ? Pin
Richard MacCutchan12-May-19 22:19
mveRichard MacCutchan12-May-19 22:19 
QuestionC++, java Pin
Benjamin Apire9-May-19 11:47
MemberBenjamin Apire9-May-19 11:47 
QuestionRe: C++, java Pin
David Crow9-May-19 18:10
MemberDavid Crow9-May-19 18:10 
AnswerRe: C++, java Pin
CPallini9-May-19 22:22
mveCPallini9-May-19 22:22 
AnswerRe: C++, java Pin
Richard MacCutchan9-May-19 22:38
mveRichard MacCutchan9-May-19 22:38 
QuestionAnalyzing make error output - one problem solved.... Pin
Vaclav_8-May-19 7:38
MemberVaclav_8-May-19 7:38 
AnswerRe: Analyzing make error output Pin
CPallini8-May-19 8:42
mveCPallini8-May-19 8:42 
GeneralRe: Analyzing make error output Pin
Vaclav_8-May-19 9:08
MemberVaclav_8-May-19 9:08 
GeneralRe: Analyzing make error output Pin
Vaclav_8-May-19 18:05
MemberVaclav_8-May-19 18:05 
GeneralRe: Analyzing make error output Pin
Stefan_Lang9-May-19 1:08
mveStefan_Lang9-May-19 1:08 
AnswerRe: Analyzing make error output Pin
Richard MacCutchan8-May-19 10:35
mveRichard MacCutchan8-May-19 10:35 
AnswerRe: Analyzing make error output Pin
Richard MacCutchan8-May-19 22:21
mveRichard MacCutchan8-May-19 22:21 
AnswerRe: Analyzing make error output Pin
Stefan_Lang9-May-19 0:49
mveStefan_Lang9-May-19 0:49 
GeneralRe: Analyzing make error output Pin
Vaclav_9-May-19 14:20
MemberVaclav_9-May-19 14:20 

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.