Code::Blocks Forums

User forums => Help => Topic started by: Pierre8r on January 07, 2008, 09:37:43 pm

Title: How to set up Code::Blocks to success to compile a Windows plugin ?
Post by: Pierre8r on January 07, 2008, 09:37:43 pm
Hello,

I want to do a data plugin for this software :
http://www.amibroker.com (http://www.amibroker.com)

If you want you can download a trial release of this software here :
Dowload AmiBroker Page (http://www.amibroker.com/download.html#amibroker)

You can also download the AmiBroker Development Kit (ADK) here :
AmiBroker Development Kit  (http://www.amibroker.com/devlog/index.php?s=ADK)

Comes whith this post the zip file ASCII.zip, which is the data plugin sample extracted from ADK.exe.
If you dont want execute ADK.exe to extract the sample.

My OS is Windows 2000 Pro

I have already try with the Microsoft tools following something like that :
Using Visual C++ 2005 Express Edition with the Microsoft Platform SDK  (http://epfl.neoch.net/forum/viewtopic.php?p=1571&sid=e085d3472d5bbfc0a7ef5e31ff558f47)

Without success.

I have also did a import projet into Code::Blocks, then try to compile.
I have the same kind of error :

Quote
fatal error RC1015: cannot open include file 'afxres.h'

Could you give me some advises to successfuly compile the ASCII data plugin sample which comes with ADK.exe ?
Which compiler to choose ?
How to set up Code::Blocks to success to compile this sample.

Thanks,

Pierre8r


[attachment deleted by admin]
Title: Re: How to set up Code::Blocks to success to compile a Windows plugin ?
Post by: Vuki on January 08, 2008, 12:03:58 am
This plugin needs MFC which is not free and is available only with retail versions of Visual Studio. You can't compile it with VS Express Edition or other free compillers. Sorry.  :(
It may be possible however to rewrite the code so that MFC is not needed but I' not sure about this.
Title: Re: How to set up Code::Blocks to success to compile a Windows plugin ?
Post by: MortenMacFly on January 08, 2008, 08:49:26 am
Quote
fatal error RC1015: cannot open include file 'afxres.h'
Seems the project requires the MFC (MS foundation classes) to compile. This is not part of the C++ Toolkit. It used to be part of the platform SDK but in recent ones it seems to have been removed. Maybe MFC is not free (anymore)?! So to quickly come to a solution I'd say you need the Visual Studio Compiler / SDK. Hence you can use this with C::B if you like.
With regards, Morten.
Title: Re: How to set up Code::Blocks to success to compile a Windows plugin ?
Post by: Pierre8r on January 08, 2008, 10:32:57 am
Hi,

Thanks all.

I found other link :
http://msdn2.microsoft.com/en-us/library/ms235626(VS.80).aspx (http://msdn2.microsoft.com/en-us/library/ms235626(VS.80).aspx)

Try it, and it dont work with the ASCII sample.

I think it's all about MFC.

GUI with Win32 API it's OK.
GUI with MFC dont works.

Regards,

Pierre8r