Author Topic: How to set up Code::Blocks to success to compile a Windows plugin ?  (Read 4424 times)

Offline Pierre8r

  • Single posting newcomer
  • *
  • Posts: 5
Hello,

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

If you want you can download a trial release of this software here :
Dowload AmiBroker Page

You can also download the AmiBroker Development Kit (ADK) here :
AmiBroker Development Kit

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

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]
« Last Edit: January 07, 2008, 10:56:32 pm by Pierre8r »

Offline Vuki

  • Multiple posting newcomer
  • *
  • Posts: 41
Re: How to set up Code::Blocks to success to compile a Windows plugin ?
« Reply #1 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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: How to set up Code::Blocks to success to compile a Windows plugin ?
« Reply #2 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Pierre8r

  • Single posting newcomer
  • *
  • Posts: 5
Re: How to set up Code::Blocks to success to compile a Windows plugin ?
« Reply #3 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

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