Home > Software engineering >  CWebPage class call CallJScript function error
CWebPage class call CallJScript function error

Time:09-26

In CSDN download CWebPage, WebPage respectively. H and WebPage. CPP, when in the main program reference CallJScript function, call js method times wrong, , the program to run, no problem, when click the button to call js method error, is very depressed, a great god don't know how to?
 void CMFCWebDlg: : OnBnClickedButtonTest () 
{
//TODO: add the control notification handler code
CComVariant varResult;
Cstrings m_longitude (" 117.17740915 ");
Cstrings m_latitude (" 31.50803508 ");
SetLocation cstrings csFun (" ");
CStringArray caParam;
CaParam. Add (m_longitude);
CaParam. Add (m_latitude);
CMFCWebDlg: : web CallJScript (csFun caParam);
}
, which is a function call,

CodePudding user response:

Collapsed in the pop-up dialog box, press the corresponding button to enter debugging press Alt + 7 key to view the Call Stack, namely "the Call Stack" from the inside to the following out of from the inner to outer function Call history, double-click a row to the cursor to the Call of the source code or assembly instruction, double-click on the next line when don't understand, until can understand,

CodePudding user response:

Thank you, I have to solve this problem, it is my own reason,,

CodePudding user response:

The building Lord how to solve

CodePudding user response:

CodePudding user response:

Upstairs to meet the same problem?

CodePudding user response:

To discuss mutual learning
  • Related