Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MSChart OCX in VC++.NET

MSChart OCX in VC++.NET

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++data-structures
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salaikumar
    wrote on last edited by
    #1

    Hi I am using MSchart control in vc.net... my program goes like this... double ChartArray __nogc[50][2]; { ...... ChartArray[k][1]= k; ChartArray[k][2]=mse; ...... } axMSChart1->set_ChartData(System::Convert::ToString(ChartArray)); //axMSChart1->ChartData = System::Convert::ToString(ChartArray); when i assign the array to Chartdata, i encountered an error "An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mschart20lib.dll Additional information: Bad function argument" Could anyone solve this problem Thanks in advance Salai

    P 1 Reply Last reply
    0
    • S salaikumar

      Hi I am using MSchart control in vc.net... my program goes like this... double ChartArray __nogc[50][2]; { ...... ChartArray[k][1]= k; ChartArray[k][2]=mse; ...... } axMSChart1->set_ChartData(System::Convert::ToString(ChartArray)); //axMSChart1->ChartData = System::Convert::ToString(ChartArray); when i assign the array to Chartdata, i encountered an error "An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in axinterop.mschart20lib.dll Additional information: Bad function argument" Could anyone solve this problem Thanks in advance Salai

      P Offline
      P Offline
      Prakash Nadar
      wrote on last edited by
      #2

      i dont know much about VC.NET but does System::Convert::ToString(ChartArray) return a array ?!?


      -Prakash

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups