Home > Software engineering >  MFC EXCEL operation problem
MFC EXCEL operation problem

Time:10-01

In doing the experiment, according to http://blog.csdn.net/yukin_xue/article/details/11209283, as a basic the same code, and then reading excel file, out of the question: first stick your own code:

Eventually prompted the problem are as follows:

Who can tell me about excel_work_book_. Get_Worksheets () specific how to do? Thank you very much!
The scores were to you!

CodePudding user response:

How no one response? His top! D=====( ̄ del  ̄ *) b who can provide a good OLE programming information book! I bought to see, learning how to learn!

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, don't understand when double click on the next line, until we can read ,

CodePudding user response:

You don't initialize the OLE libraries
: : CoInitialize (NULL);

Release: : CoUninitialize ();

CodePudding user response:

Before work have written some excel operation code, I remember there have been a kind of situation, is the only support low version of office, suffix must be. XLS, computer version of office cannot be too high, for this I also specially changed an, you can have a try,
  • Related