ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Convert demo to C++ Builder XE
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

sungho

Korea
14 Posts

Posted - Sep 23 2015 :  20:00:43  Show Profile  Reply
Hi
I am used C++ Builder XE and ImageEn 4.3.0.
I want Get Image File by Nikon D3300.
You are provide sample code is good acting.

-ImageAcquisition/CameraGetImages
-ImageAcquisition/PortableDevices

Occur Error.
TIEPortableDevices is not found.
TIEWiaItem is error compile.

Thanks.

xequte

39056 Posts

Posted - Sep 23 2015 :  21:38:00  Show Profile  Reply
Hi

Have you added iexDCIM and iewia to your uses clause?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

sungho

Korea
14 Posts

Posted - Sep 23 2015 :  23:27:00  Show Profile  Reply
Thanks fast reply.
Below code occur error.
Delphi code transfer is c++ Builder

Delphi code
ImageEnView1.IO.WIAParams.Transfer( TIEWiaItem(Node.Data) , false);

C++ builder Code
ImageEnView1->IO->WIAParams->Transfer(TIEWiaItem(Node->Data), false);

I don't know fix solution.

Thanks
Sungho Park
Go to Top of Page

xequte

39056 Posts

Posted - Sep 24 2015 :  05:24:22  Show Profile  Reply
The code looks OK. What is the error you get?

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

sungho

Korea
14 Posts

Posted - Sep 24 2015 :  08:45:45  Show Profile  Reply
Hi.
Below code is compile and occur error.(attach photo)

void __fastcall TForm1::TreeView1Change(TObject *Sender, TTreeNode *Node)
{
ImageEnView1->IO->WIAParams->TransferFormat = ietfJpeg;
ImageEnView1->IO->WIAParams->Transfer(TIEWiaItem(Node->Data) , false) ;
}
//---------------------------------------------------------------------------

Thanks.
Sungho Park.


68 KB
Go to Top of Page

xequte

39056 Posts

Posted - Sep 25 2015 :  05:53:05  Show Profile  Reply
Hi

You are not typecasting correctly for C++. Try:

ImageEnView1->IO->WIAParams->Transfer( ((TIEWiaItem*)(Node->Data)), false);

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

sungho

Korea
14 Posts

Posted - Sep 25 2015 :  08:34:51  Show Profile  Reply
Hi
Your code is no error code.
Thanks.
Sungho Park.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: