I have a .cpp chunk of code that captures some image data and writes that image to a file as follows ;
extern "C" _declspec(dllexport) HRESULT CaptureSample()
{
.....
.....
BmpSetImageData(&bmp, data, width, height);
BmpSave(&bmp, bmpFile); // << return &bmp image Byte to the calling VB6 app
CFile raw("[login to view URL]");
[login to view URL](&data[0], [login to view URL]());
[login to view URL]();
}
This line >> BmpSave(&bmp, bmpFile); saves the created bmp to the hard drive.
What I actually want to do is pass the image back to the calling app, not write it to the drive locally.
This is the Function called by the main VB6 app.
extern "C" _declspec(dllexport) HRESULT CaptureSample()
>> VB6 App
Public Declare Function CaptureSample Lib "[login to view URL]" () As Long
Private Sub CaptureImg_Click()
CaptureSample
so here I actually want the bmp returned from CaptureSample for example
Img [] = CaptureSample
Need it Now
Thanks
Hi,
I'm a Full Stack Developer having more than 6 years of Professional Experience in Software React.js,Visual Basic, .NET, C++ Programming React native, Mobile Apps development using react native.
I assure you 100% quality work for your Quick .CPP ina .Net project as per your given requirements.
Please have a look on my recent works
https://www.freelancer.com/u/hassangraf?w=f
Please Feel free to connect on private chat
.