dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: C++ Command Window to .xls file

  1. #1
    Join Date
    Apr 2008
    Posts
    161

    C++ Command Window to .xls file

    I want to save the result of some math operations to a .xls file for the ease to watch the math result.The math operations written in C++ functions. How i manage the .xls file using C++ functions

    Please help me !!!

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: C++ Command Window to .xls file

    Write them as text to a file and separate the indivudual results by a comma/TAB/semicolon or whatever. Such a file can be opened and interpreted by excel.

    To create the excel file directly you have to use excel automation (google for it) and that's quite a lot of work.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    https://visualstudio.microsoft.com/vs

  3. #3
    Join Date
    Oct 2006
    Posts
    616

    Re: C++ Command Window to .xls file

    If your'e into excel automation, you can take a look here.
    An easier and more expensive ($) way to achieve your goal can be found at http://libexcel.com.

    Regards,
    Zachm

  4. #4
    Join Date
    Apr 2008
    Posts
    161

    Re: C++ Command Window to .xls file

    Thank you friends!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)