Skip to main content


Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: how to create dll? (Read 4161 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how to create dll?

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?

how to create dll?

Reply #1
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).

how to create dll?

Reply #2
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...'.


how to create dll?

Reply #3
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?