Page 1 of 2

about afxres.h

PostPosted: Jul 13, 2007 @ 10:38am
by ravi
Hi,

I was following the tutorial of Edge installation for windows desktop. I am using Visual C++ express edition 2005. Everything went fine but when i build it the following error arised

Cannot find file afxres.h

I included the afxres.h containing the 3 lines code in the solution. But then another error arised

fatal error RC1015: cannot open include file 'windows.h'

I tried to include windows.h in many ways. I am builing the application in Edge Ide for windows desktop (vc2005). There are many windows.h files in my PC and I tried with all but still the error is persistent. Can you tell me what really the problem is and how to solve it??

Thank you
ravi

PostPosted: Jul 13, 2007 @ 1:52pm
by edge
Hi Ravi,

I think the error is caused by the resource file of your project. Edit your resource script (probably resource.rc) with a text editor (like notepad) and replace all occurences of 'afxres.h' with 'winres.h'. There should be 2 of them.

After making the change, save the file and try to rebuild.

PostPosted: Jul 16, 2007 @ 9:59am
by ravi
Hi,

I now am trying it for Visual C++ 6.0. I followed all the steps in the tutorial and when I compile or build it many errors are arising.

c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : error C2065: 'GUID_BTHPORT_DEVICE_INTERFACE' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(41) : error C2065: 'GUID_BLUETOOTH_RADIO_IN_RANGE' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(41) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(41) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(41) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(44) : error C2065: 'GUID_BLUETOOTH_RADIO_OUT_OF_RANGE' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(44) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(44) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(44) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(47) : error C2065: 'GUID_BLUETOOTH_PIN_REQUEST' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(47) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(47) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(47) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(50) : error C2065: 'GUID_BLUETOOTH_L2CAP_EVENT' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(50) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(50) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(50) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(53) : error C2065: 'GUID_BLUETOOTH_HCI_EVENT' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(53) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(53) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(53) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(58) : error C2065: 'Bluetooth_Base_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(58) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(58) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(58) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(64) : error C2065: 'SDP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(64) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(64) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(64) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(65) : error C2065: 'UDP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(65) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(65) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(65) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(66) : error C2065: 'RFCOMM_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(66) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(66) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(66) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(67) : error C2065: 'TCP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(67) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(67) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(67) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(68) : error C2065: 'TCSBIN_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(68) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(68) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(68) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(69) : error C2065: 'TCSAT_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(69) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(69) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(69) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(70) : error C2065: 'OBEX_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(70) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(70) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(70) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(71) : error C2065: 'IP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(71) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(71) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(71) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(72) : error C2065: 'FTP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(72) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(72) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(72) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(73) : error C2065: 'HTTP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(73) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(73) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(73) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(74) : error C2065: 'WSP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(74) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(74) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(74) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(75) : error C2065: 'BNEP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(75) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(75) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(75) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(76) : error C2065: 'UPNP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(76) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(76) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(76) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(77) : error C2065: 'HID_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(77) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(77) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(77) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(78) : error C2065: 'HCCC_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(78) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(78) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(78) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(79) : error C2065: 'HCDC_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(79) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(79) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(79) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(80) : error C2065: 'HN_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(80) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(80) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(80) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(81) : error C2065: 'AVCTP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(81) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(81) : error C2374: 'DEFINE_GUID' : redefinition; multiple initialization
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(38) : see declaration of 'DEFINE_GUID'
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(81) : error C2078: too many initializers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(82) : error C2065: 'AVDTP_PROTOCOL_UUID' : undeclared identifier
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(82) : error C2501: 'DEFINE_GUID' : missing storage-class or type specifiers
c:\program files\microsoft platform sdk for windows xp sp2\include\bthdef.h(82) : fatal error C1003: error count exceeds 100; stopping compilation
Error executing cl.exe.

helloworldtry.obj - 102 error(s), 0 warning(s)


All these errors pertain to the same header file bthdef.h. I do not know what the error is. Can you please tell me what the problem is?? Am I doing anything wrong?? It will be helpful if you can tell me about this.

Thank you,
ravi

PostPosted: Jul 16, 2007 @ 11:40am
by edge
Hi Ravi,

The errors may be caused by the order of which the Visual C++ environment scans for header files.

You can adjust this order in tools -> options and click on the 'directories tab'. We recommend putting the Windows XP platform SDK at the top of the list.

PostPosted: Jul 16, 2007 @ 1:24pm
by ravi
Hi,

Thank you very much for the reply.

ravi.

PostPosted: Aug 1, 2007 @ 12:13pm
by meiline

PostPosted: Aug 2, 2007 @ 11:50am
by edge
Hi Meiline,

The Edge IDE generates the resource file automatically, and deletes it when the build is complete (or when it has failed).

You can modify the template file to use winres.h instead of afxres.h. Go to your Edge IDE installation folder (probably: C:\projects\Edge\tools\EdgeIde) and open the 'templates' folder. You can open the file win32rc.ini and replace 'afxres.h' with 'winres.h'.

Let me know if it fixed the problem.

PostPosted: Aug 2, 2007 @ 1:15pm
by meiline
Hello Edge,

Thank you very much. It fixed the problem. :)

Same Problem (Windows Mobile 5.0)

PostPosted: Oct 17, 2007 @ 10:17pm
by reQunix
Hi Edge,

I'm having the same problem while trying to build the actual sample code provided for the multiplatform Hello World app. I'm building for WM Pocket PC 2005, but I haven't got the Vista SDK installed. I don't think it should matter, but it might. Here is the error I get:

C:\projects\helloworld_multiplatform\workspace_eide\resource.rc(4) : fatal error RC1015: cannot open include file 'afxres.h'.

Changing the templates only caused it to say it couldn't find winres.h instead.
Any ideas?

Thanks,
reQunix

PostPosted: Oct 19, 2007 @ 8:06am
by edge
Hi reQunix,

Can you tell me which version of Visual Studio 2005 you've installed? Also, can you try a search to see if you have the winres.h header file (it's probably located somewhere in C:\Program Files\Microsoft Visual Studio 8 )?

Also, are you able to build the helloworld executable using the project located in samples\helloworld\workspace_ppc2005?

PostPosted: Oct 19, 2007 @ 9:37pm
by reQunix
Hi edge,

I've got Visual Studio 2005 Professional installed on Windows Vista, with Service Pack 1 and some updates.

No, I don't have the winres.h file anywhere, I suppose that is becuase I don't have a Platform SDK installed.

I can build the workspace_ppc2005 solution from Visual Studio (I have the Windows Mobile 5.0 SDK installed), but from the Edgelib Builder Tool I get a similar error message:

C:\projects\helloworld_multiplatform\workspace_eide\resource.rc(4) : fatal error RC1015: cannot open include file 'afxres.h'.

Thanks for the help.
reQunix

PostPosted: Oct 20, 2007 @ 11:52pm
by reQunix
Just an update,

I've installed the Platform SDK for XP SP2 since the Vista Platform SDK failed on all the machines I tried it on.

Still having the same problem. I changed the afxres.h references in some files to winres.h and then to windows.h, but it didn't make a difference. Building in VS works but not in EDGELIB builder tool.

I changed the template file, now it actually looks for a different file but still doesn't find it.

I checked which additional folders are in the include folders list in the builder tool, and there doesn't seem to be any. Shouldn't there perhaps be something in there?

P.S.

I'm also having trouble figuring out where to put files I want to open to create a sprite surface. I've put it everywhere (res folder, release and debug folders, etc.) I've even tried specifying a relative path, but nothing works. The CreateSurface call is returning E_ERROR but I copied it from another sample so it should work. I suspect once I build with the builder it will work, hence the need to sort out the problem above.

Thanks,
reQunix

PostPosted: Oct 22, 2007 @ 7:55am
by edge

PostPosted: Oct 23, 2007 @ 8:43pm
by reQunix
Thanks edge

OK, I've found afxres.h and winres.h headers all under Visual Studio 8\VC\ce\atlmfc\include (amongst one or two other folders).

Should I now add this path to the project as well? I wasn't aware that these were ATL/MFC specific projects.

I did put the images in the Debug, Release and the folder where the program is running on the phone. All without success. I was thinking of trying packages but I need to get it to build first. (I just found the image behind the evaluation slider half-off the screen. I'll see if I can get it to work on the machine as well.)

I'll try some things, see what I come up with. Let me know if there's any help you can give.

Thanks again,
reQunix

PostPosted: Oct 24, 2007 @ 8:06am
by edge
It's odd that the afxres.h or winres.h header files are needed to build the resource file. I can tell for sure that EDGELIB isn't using any ATL or MFC objects in its source code. Maybe you can try to copy these header files into your workspace folder, and see if it works.

To fix the problem with the images, it may be a good idea to install a .CAB file of an existing EDGELIB sample and check where the files are installed and how these are loaded in the source code of the sample.

Another problem might be that your images aren't supported by any of the EDGELIB loaders. I recommend also trying to load an image file from the samples and check the return value.