Hosted Forums => foobar2000 => Development - (fb2k) => Topic started by: FlashBuster on 2003-05-01 11:15:41

Title: how to create dll?
Post by: FlashBuster on 2003-05-01 11:15:41
Can anyone tell me how to use the SDK under msvc?
When i create a new dll-project, and klick "dependencies" the list is empty. ho wcan i add component_client and foobar200_sdk?
Title: how to create dll?
Post by: Curi0us_George on 2003-05-01 11:32:16
I'm not sure about MSVC6, but in MSVC.NET, you'll need to use the "add existing project" option to add the foobar2000_SDK and pfc projects to your "Solution".  Then set your plugin project to be dependent on both.  There is no "component_client" project.  You need to add the component_client.cpp file to your plugin project (not the solution; the actual plugin project).
Title: how to create dll?
Post by: Case on 2003-05-01 11:41:24
You need to manually insert component_client.cpp file and SDK and PFC projects into your workspace, you can add projects with MSVC6 by right clicking on your workspace name and selecting 'Insert Project into Workspace...'. To add component_client.cpp right click on your project name and select 'Add Files to Project...'.
Title: how to create dll?
Post by: steel_space on 2003-06-30 07:46:27
I have still the problem.

c:\projects\foo\pfc\string.h(14) : error C2501: 'mem_block_t' : missing storage-class or type specifiers

If you look inside pfc/string.h (mem_block_t<myChar> data;) you can see the file mem_block.h is not included, so it is unknown there.

Any suggestions?
SimplePortal 1.0.0 RC1 © 2008-2021