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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Error C2664

Error C2664

Scheduled Pinned Locked Moved Managed C++/CLI
questionregexhelp
1 Posts 1 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.
  • D Offline
    D Offline
    dodoxor
    wrote on last edited by
    #1

    I've ref class. I 've to use a function "ccap_start_capturing" that take a ptr,and a ptr to a callback function(on_jpeg_received) and another ptr to a function on_exit_capturing defined in this class. Both "ccap_start_capturing" and "on_jpeg_received" functions are defined in a file c that i can't modify. //#include ... ref class CamPanObj{ public: CamPanObj(){ camaddr=new camaddr_t(); } protected: ~CamPanObj() {//... } public: static void on_exit_capturing(int code) {/.. } CAPID rec_start(void) { ... capid=ccap_start_capturing(camaddr,on_jpeg_received,on_exit_capturing); return (capid); } }; It returns a compile error error C2664: 'ccap_start_capturing' : cannot convert parameter 3 from 'void (__clrcall *)(int)' to 'void (__cdecl *)(int)' None of the functions with this name in scope match the target type How can i resolve it? Thanks, regards.

    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