473,378 Members | 1,411 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,378 software developers and data experts.

Track use of codelibrary?

Is it possible to detect which mdb 'uses' a specific codelibrary?
I would like deliver an app (mdb) with some specific code in a codelibrary (mde).
I want to be sure that this codelib is NOT used by another mdb.

Is this possible ? How ?

The only thing I can think of right now, is to change one or more specific functions in
this codelib and 'demand' a param like Currentdb.Name
Other ideas?

Thanks,
Arno R
Nov 13 '05 #1
5 1168
DFS
Arno R wrote:
Is it possible to detect which mdb 'uses' a specific codelibrary?
I would like deliver an app (mdb) with some specific code in a
codelibrary (mde).
I want to be sure that this codelib is NOT used by another mdb. Is this possible ? How ?
Look into the References collection.

The only thing I can think of right now, is to change one or more
specific functions in this codelib and 'demand' a param like
Currentdb.Name
Other ideas?

Thanks,
Arno R

Nov 13 '05 #2
Hi DFS
Thanks for the reply but I think my question was about the other way around.

I don't need to know what references are used by a specific mdb (references collection)
I need to know which mdb uses my codelib (and then, if not authorised deny the use ... )

Arno R
"DFS" <no****@DFS.com> schreef in bericht news:8S******************@fe02.lga...
Arno R wrote:
Is it possible to detect which mdb 'uses' a specific codelibrary?
I would like deliver an app (mdb) with some specific code in a
codelibrary (mde).
I want to be sure that this codelib is NOT used by another mdb.

Is this possible ? How ?


Look into the References collection.

The only thing I can think of right now, is to change one or more
specific functions in this codelib and 'demand' a param like
Currentdb.Name
Other ideas?

Thanks,
Arno R

Nov 13 '05 #3
DFS
Arno R wrote:
Hi DFS
Thanks for the reply but I think my question was about the other way
around.

I don't need to know what references are used by a specific mdb
(references collection) I need to know which mdb uses my codelib (and
then, if not authorised deny the use ... )
OK. There are a couple solutions I can think of, though I've never tried
them. So they're probably dumb ideas and won't work, but maybe not.

1) put the authorized .mdb list into your .mde as a global array. Add a
db.name argument in every function in the .mde. Check the db.name value
against the authorized list.

2) deliver the .mdb with a hidden table that authorizes it to use the
library. Put a simple encrypted (ROT13) password in the table, in case some
enterprising young whippersnapper finds it. The library functions would
have to check for this table. This might be feasible if the .mdb is in a
standard location and a standard name.


Arno R
"DFS" <no****@DFS.com> schreef in bericht
news:8S******************@fe02.lga...
Arno R wrote:
Is it possible to detect which mdb 'uses' a specific codelibrary?
I would like deliver an app (mdb) with some specific code in a
codelibrary (mde).
I want to be sure that this codelib is NOT used by another mdb.

Is this possible ? How ?


Look into the References collection.

The only thing I can think of right now, is to change one or more
specific functions in this codelib and 'demand' a param like
Currentdb.Name
Other ideas?

Thanks,
Arno R

Nov 13 '05 #4
Thanks DFS for your input.
I don't think your ideas are dumb...

Your first idea is exactly what I thought of in the first place.
Your second however is not appropriate for my needs since the cliënt can make a new db in
a different location and/or a different name. Or even copy the hidden table.
I don't want to force the cliënt to use a standard location for the mdb.
So to prevent unauthorised use I think the best I can do is verify the dbname (without the
path) in a param of some crucial functions.
The cliënt could make a new db (same name) in a different path, so maybe I could also
check for existing tables, fields, forms or whatever ...
I would like to check just once (first use of the libary per session) and then set a
global var.

Arno R

OK. There are a couple solutions I can think of, though I've never tried
them. So they're probably dumb ideas and won't work, but maybe not.

1) put the authorized .mdb list into your .mde as a global array. Add a
db.name argument in every function in the .mde. Check the db.name value
against the authorized list.

2) deliver the .mdb with a hidden table that authorizes it to use the
library. Put a simple encrypted (ROT13) password in the table, in case some
enterprising young whippersnapper finds it. The library functions would
have to check for this table. This might be feasible if the .mdb is in a
standard location and a standard name.


Arno R
"DFS" <no****@DFS.com> schreef in bericht
news:8S******************@fe02.lga...
Arno R wrote:
Is it possible to detect which mdb 'uses' a specific codelibrary?
I would like deliver an app (mdb) with some specific code in a
codelibrary (mde).
I want to be sure that this codelib is NOT used by another mdb.

Is this possible ? How ?

Look into the References collection.
The only thing I can think of right now, is to change one or more
specific functions in this codelib and 'demand' a param like
Currentdb.Name
Other ideas?

Thanks,
Arno R




Nov 13 '05 #5
DFS
Arno R wrote:
Thanks DFS for your input.
I don't think your ideas are dumb...

Your first idea is exactly what I thought of in the first place.
I see that now. I didn't even finish reading your request before I started
answering it. Bad Access advisor. Bad.

Your second however is not appropriate for my needs since the cliënt
can make a new db in a different location and/or a different name. Or
even copy the hidden table. I don't want to force the cliënt to use a standard location for the
mdb.
You might want to. Standard names and locations usually make life much
easier for all involved. I can't say I always do it, but I encourage it on
the systems I deliver. Back-ends, almost always.

So to prevent unauthorised use I think the best I can do is verify
the dbname (without the path) in a param of some crucial functions.
That should be enough.

The cliënt could make a new db (same name) in a different path, so
maybe I could also check for existing tables, fields, forms or
whatever ...
Yes. If you know enough about the authorized .mdbs.

I would like to check just once (first use of the libary per session)
and then set a global var.
Something to think about, if you haven't already: Will your library be
installed to a shared drive and accessed from networked systems, such that
some authorized and some unauthorized .mdb systems will have access to it at
the same time? This may change your approach.

Regardless, it won't be a speed issue to check a small array once or each
time a function is called.

Arno R

OK. There are a couple solutions I can think of, though I've never
tried them. So they're probably dumb ideas and won't work, but
maybe not.

1) put the authorized .mdb list into your .mde as a global array.
Add a db.name argument in every function in the .mde. Check the
db.name value against the authorized list.

2) deliver the .mdb with a hidden table that authorizes it to use the
library. Put a simple encrypted (ROT13) password in the table, in
case some enterprising young whippersnapper finds it. The library
functions would have to check for this table. This might be
feasible if the .mdb is in a standard location and a standard name.


Arno R
"DFS" <no****@DFS.com> schreef in bericht
news:8S******************@fe02.lga...
Arno R wrote:
> Is it possible to detect which mdb 'uses' a specific codelibrary?
> I would like deliver an app (mdb) with some specific code in a
> codelibrary (mde).
> I want to be sure that this codelib is NOT used by another mdb.

> Is this possible ? How ?

Look into the References collection.
> The only thing I can think of right now, is to change one or more
> specific functions in this codelib and 'demand' a param like
> Currentdb.Name
> Other ideas?
>
> Thanks,
> Arno R

Nov 13 '05 #6

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

Similar topics

2
by: Sandman | last post by:
Just looking for suggestion on how to do this in my Web application. The goal is to keep track of what a user has and hasn't read and present him or her with new material I am currently doing...
1
by: shank | last post by:
Imagine a CD of say 20 songs Each song is a table row I need a way for the user to change the way the songs are listed by allowing them to change the track numbers. What is the smartest...
3
by: johnny | last post by:
hi all! I am starting to study the best way to track site visitors. Logfiles stats which come with every web hosting, have little metrics to be analyzed and also problems with cached pages which...
0
by: ateale | last post by:
Hi guys! I am having a bit of difficulty trying to get to a 'timecode' track in a QuickTime file using the QTKit framework in Mac OSX 10.5 I am using XCode 3. I have a QTMovie object (set as...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.