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. Pointer

Pointer

Scheduled Pinned Locked Moved Managed C++/CLI
helpquestion
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

    Hi, i've a problem with a method that had to return a pointer. In this class, i've implemented a method tha return a pointer. class Camobj { public: Camobj(); ~Camobj(void); IplImage* capture(void){ //create a IplImage* img; return(img); } }; private: .... }; In another class(window form) form1.h, i want to visualize my IplImage returned from capture method of Camobj: #include "camobj.h" .... public ref class Form1 : public System::Windows::Forms::Form { ... protected: //Create a Camobj object Camobj *mycam; public: Form1(void) { InitializeComponent(); mycam=new Camobj(); } .... private: System::Void capimgbut_Click(System::Object^ sender, System::EventArgs^ e) { IplImage* kon=mycam->capture(); //it would return a IplImage* cvShowImage("try",kon);//cvShowImage(const char *name ,const Iplimage *image) } .... The problem is that it seems to not receive anything? is it possible? 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