473,326 Members | 2,102 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Advice needed for programming project...

I'm working on a simple system which allows users to develop audio
plugins. The plugins take the form of dll's and I have constructed the
dll so that it looks for a simple text file which determines how the
plugin will work. I need to find a way of getting the dll to load the
right text file, as each text file may be a different effect.

My first idea was that a user would simply rename the dummy dll to the
name of the text file, for example delay.txt, then when the renamed
..dll is loaded it would search for a text file with the same name as
the dll, i.e., delay.txt. This would be the simplest solution from an
end-user point of view, but it's going to involve too much platform
specific code.

Another option would be to provide a little command line application
that would bundle the text file and the dll together but this seems a
little cumbersome. And I don't like the idea of the user needing this
little application in order to create their plugins.

Another solution might be to get users to place a generic .dll and the
text file into one folder whose name is the same as the text file. Then
I could use some kind of GetDir() function in the dll to retrieve the
name of the folder which in turn will give me the name of the text
file. The problem with this is that the host application likes all .dll
to be placed directly into the PlugIns folder, it does not see any dll
which are in a folder within the Plugins folder.

Can anyone think of some way to do this, I'm running out of ideas!

Rory.

Dec 15 '06 #1
2 1176
rory wrote:
Another solution might be to get users to place a generic .dll and the
text file into one folder whose name is the same as the text file. Then
I could use some kind of GetDir() function in the dll to retrieve the
name of the folder which in turn will give me the name of the text
file. The problem with this is that the host application likes all .dll
to be placed directly into the PlugIns folder, it does not see any dll
which are in a folder within the Plugins folder.

Can anyone think of some way to do this, I'm running out of ideas!
Well, you might start by asking in a newsgroup with Microsoft in its
name. The C++ Standard doesn't discuss dlls or GetDir or folders.

See the FAQ: http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Dec 15 '06 #2
Thanks.
Rory.
red floyd wrote:
rory wrote:
Another solution might be to get users to place a generic .dll and the
text file into one folder whose name is the same as the text file. Then
I could use some kind of GetDir() function in the dll to retrieve the
name of the folder which in turn will give me the name of the text
file. The problem with this is that the host application likes all .dll
to be placed directly into the PlugIns folder, it does not see any dll
which are in a folder within the Plugins folder.

Can anyone think of some way to do this, I'm running out of ideas!

Well, you might start by asking in a newsgroup with Microsoft in its
name. The C++ Standard doesn't discuss dlls or GetDir or folders.

See the FAQ: http://www.parashift.com/c++-faq-lit...t.html#faq-5.9
Dec 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

75
by: Howard Nease | last post by:
Hello, everyone. I would appreciate any advice that someone could give me on my future career path. Here is my situation: I am a bright Junior in a very well-respected private high school, taking...
11
by: Mark | last post by:
Hi, For the last 2 years I've been developing vehicle tracking/telemetric software for a company as a self employed individual. The project is quiet big, and is going to be there flagship...
9
by: Laban | last post by:
Hi, I find myself using static methods more than I probably should, so I am looking for some advice on a better approach. For example, I am writing an app that involves quite a bit of database...
5
by: Kevin Carne | last post by:
First, Merry Christmas. I have been doing intensive Java programming for two years in school (no choice on the language), but now I need to return to C++ because my resume is filled with it both in...
5
by: Steve | last post by:
Hi, I am sitting down to design our next set of internal apps. I would like to approach this in a way that would allow me to break logical parts of the application that handle specific tasks...
1
by: David Van D | last post by:
Hi there, A few weeks until I begin my journey towards a degree in Computer Science at Canterbury University in New Zealand, Anyway the course tutors are going to be teaching us JAVA wth bluej...
8
by: shuisheng | last post by:
Dear All, We meet some problem in our project development and sincerely ask for your kind advice. We took eight months to develop a project system with about 50,000 lines of code. The code is...
2
by: adodotnet20 | last post by:
Hi, I need to create an application in C# that will be fairly simple from a UI prospective and that will be able to retrieve some information from a db. The overall look and feel should be nice...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
7
by: jmar | last post by:
NOTE: the following has been posted in microsoft.public.vb.general.discussion and they have recommended I also post here. Let me apologize up front about the length of this post, but I want to...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.