R
R. Irudezu
Guest
I know this problem is pretty common but in my case things are some specific. I will explain my problem clearly.
First, developmen environment: Visual C++/CLR Desktop Application.
I have a native dll imported to project and a header.
test.h:
#pragma once
#include <stdint.h>
struct config;
typedef void (* testCallBack)(TestHandle *conn, uint64_t timeStamp,
uint8_t *frameData, uint32_t frameDataLen,
TestFace *faces, uint32_t faceCount);
struct config
{
testCallBack liveCallBack;
};
I wrote a function into
public ref class
function is:
void onFrame
(
TestHandle *conn, uint64_t timeStamp,
uint8_t *frameData, uint32_t frameDataLen,
TestFace *faces, uint32_t faceCount)
)
{
/*
* Some Stuff with parameters here
*/
}
and a button function is like:
private: System::Void testBtn_Click(System::Object^ sender, System::EventArgs^ e)
{
config cfg;
cfg.testCallBack = onFrame;
//It gives error here, under he onFrame, a pointer-to-member is not valid for a managed class...
// How can i solve this, please help about this.
}
Continue reading...
First, developmen environment: Visual C++/CLR Desktop Application.
I have a native dll imported to project and a header.
test.h:
#pragma once
#include <stdint.h>
struct config;
typedef void (* testCallBack)(TestHandle *conn, uint64_t timeStamp,
uint8_t *frameData, uint32_t frameDataLen,
TestFace *faces, uint32_t faceCount);
struct config
{
testCallBack liveCallBack;
};
I wrote a function into
public ref class
function is:
void onFrame
(
TestHandle *conn, uint64_t timeStamp,
uint8_t *frameData, uint32_t frameDataLen,
TestFace *faces, uint32_t faceCount)
)
{
/*
* Some Stuff with parameters here
*/
}
and a button function is like:
private: System::Void testBtn_Click(System::Object^ sender, System::EventArgs^ e)
{
config cfg;
cfg.testCallBack = onFrame;
//It gives error here, under he onFrame, a pointer-to-member is not valid for a managed class...
// How can i solve this, please help about this.
}
Continue reading...