Is there any way I can prevent people using my DLLs in their programs? I
mean, I'm new to making DLLs and I'm guessing that if I can reference my
DLLs in my projects then there is nothing stopping anyone else from
referencing my DLLs in their projects.
Also, Just wondering whether there is a type of *thing* which is like a DLL
but includes a form as well. I want to include modules in my app, so say
for example purposes my app contains a main form and a calculator module.
The main form is the exe and the calculator gets called from a separate file
when needed? Any ideas?
Thanks for the help. 12 3134
On Fri, 28 May 2004 08:35:01 GMT, Visual Boodu .NET wrote: Is there any way I can prevent people using my DLLs in their programs? I mean, I'm new to making DLLs and I'm guessing that if I can reference my DLLs in my projects then there is nothing stopping anyone else from referencing my DLLs in their projects.
Nothing that can't be bypassed by a determined cracker. You could have
your DLL look in the registry for something, look for another
preexisting file, require a password (either fixed or determined by
something within the user's system), etc. - basically, do the same
things that commercial programs do - but again, crackers bypass this on
a daily basis. (Although they usually crack apps to use the app, not
just one specific file.)
Also, Just wondering whether there is a type of *thing* which is like a DLL but includes a form as well. I want to include modules in my app, so say for example purposes my app contains a main form and a calculator module. The main form is the exe and the calculator gets called from a separate file when needed? Any ideas?
I don't usually store forms in DLLs but I would assume that it can be
easily done; others here will have that answer.
--
auric underscore underscore at hotmail dot com
*****
Obviously our captor underestimated the wrath of a man and his hamster.
You can put forms in a DLL and call them. There's no
limitation.
For restriction: Somewhere on MSDN there's a page
about how to make a control licensed, the same way
that VB controls are licensed and can't be run otherwise.
I don't have a link to it, though. Another option might be
something like a dummy parameter. Your DLL parameters
can be seen in an object browser but that doesn't explain
them. So besides the natural difficulty in figuring out how
to call a function given object browser info., you could also
make it more confusing by adding a dummy parameter,
naming the parameters in a vague way, etc.
--
--
Visual Boodu .NET <sn@il.mail> wrote in message
news:VQ******** ********@news-server.bigpond. net.au... Is there any way I can prevent people using my DLLs in their programs? I mean, I'm new to making DLLs and I'm guessing that if I can reference my DLLs in my projects then there is nothing stopping anyone else from referencing my DLLs in their projects.
Also, Just wondering whether there is a type of *thing* which is like a
DLL but includes a form as well. I want to include modules in my app, so say for example purposes my app contains a main form and a calculator module. The main form is the exe and the calculator gets called from a separate
file when needed? Any ideas?
Thanks for the help.
Auric__ wrote: On Fri, 28 May 2004 08:35:01 GMT, Visual Boodu .NET wrote:
Is there any way I can prevent people using my DLLs in their programs? I mean, I'm new to making DLLs and I'm guessing that if I can reference my DLLs in my projects then there is nothing stopping anyone else from referencing my DLLs in their projects. Nothing that can't be bypassed by a determined cracker. You could have your DLL look in the registry for something, look for another preexisting file, require a password (either fixed or determined by something within the user's system), etc. - basically, do the same things that commercial programs do - but again, crackers bypass this on a daily basis. (Although they usually crack apps to use the app, not just one specific file.)
Thanks, yea I didn't think of that. Might be a good idea me thinks! Also, Just wondering whether there is a type of *thing* which is like a DLL but includes a form as well. I want to include modules in my app, so say for example purposes my app contains a main form and a calculator module. The main form is the exe and the calculator gets called from a separate file when needed? Any ideas?
I don't usually store forms in DLLs but I would assume that it can be easily done; others here will have that answer.
mayayana wrote: You can put forms in a DLL and call them. There's no limitation. For restriction: Somewhere on MSDN there's a page about how to make a control licensed, the same way that VB controls are licensed and can't be run otherwise. I don't have a link to it, though. Another option might be something like a dummy parameter. Your DLL parameters can be seen in an object browser but that doesn't explain them. So besides the natural difficulty in figuring out how to call a function given object browser info., you could also make it more confusing by adding a dummy parameter, naming the parameters in a vague way, etc.
How do I put a form in a DLL? Probably if I make vague functions & that
then I'll probably get confused! I'll check out MSDN for that licencing
thing. Thanks for your help.
-- Is there any way I can prevent people using my DLLs in their programs? I mean, I'm new to making DLLs and I'm guessing that if I can reference my DLLs in my projects then there is nothing stopping anyone else from referencing my DLLs in their projects.
Also, Just wondering whether there is a type of *thing* which is like a DLL but includes a form as well. I want to include modules in my app, so say for example purposes my app contains a main form and a calculator module. The main form is the exe and the calculator gets called from a separate file when needed? Any ideas?
Thanks for the help.
On Fri, 28 May 2004 20:50:07 GMT, Visual Boodu .NET wrote: Auric__ wrote: On Fri, 28 May 2004 08:35:01 GMT, Visual Boodu .NET wrote:
Is there any way I can prevent people using my DLLs in their programs? I mean, I'm new to making DLLs and I'm guessing that if I can reference my DLLs in my projects then there is nothing stopping anyone else from referencing my DLLs in their projects.
Nothing that can't be bypassed by a determined cracker. You could have your DLL look in the registry for something, look for another preexisting file, require a password (either fixed or determined by something within the user's system), etc. - basically, do the same things that commercial programs do - but again, crackers bypass this on a daily basis. (Although they usually crack apps to use the app, not just one specific file.)
Thanks, yea I didn't think of that. Might be a good idea me thinks!
Yes, well, just remember that crackers can bypass *any* protection
scheme if they have reason to.
--
auric underscore underscore at hotmail dot com
*****
Jennifer Lopez wears enough diamonds to blind a city block.
Yea, thats fine, I think I would feel honoured if I saw my app on some
cracker page :)
Auric__ wrote: On Fri, 28 May 2004 20:50:07 GMT, Visual Boodu .NET wrote:
Auric__ wrote: On Fri, 28 May 2004 08:35:01 GMT, Visual Boodu .NET wrote:
Is there any way I can prevent people using my DLLs in their programs? I mean, I'm new to making DLLs and I'm guessing that if I can reference my DLLs in my projects then there is nothing stopping anyone else from referencing my DLLs in their projects.
Nothing that can't be bypassed by a determined cracker. You could have your DLL look in the registry for something, look for another preexisting file, require a password (either fixed or determined by something within the user's system), etc. - basically, do the same things that commercial programs do - but again, crackers bypass this on a daily basis. (Although they usually crack apps to use the app, not just one specific file.)
Thanks, yea I didn't think of that. Might be a good idea me thinks!
Yes, well, just remember that crackers can bypass *any* protection scheme if they have reason to. How do I put a form in a DLL?
A DLL is like an EXE with a COM interface. You can do
anything you want to. Just add the form to the project and
control it through your exposed class(es).
You can also pass the events through if you need to.
In the exposed class, assuming you have a Form1, use:
Private WithEvents Frm as Form1
You can then write subs in your class for the form events, like:
Private Sub Frm_Clicked()
Msgbox "Form was clicked."
end sub
Excellent advice, thanks. I made a DLL with a form which had a button and
'referenced' the DLL in my project (project - references) then added this
code:
Dim frm As Projectdll.Clas s1
Set frm = New Projectdll.Clas s1
Call frm.LdForm
Is that the right way to work with DLLs? What does 'Private WithEvents Frm
as Form1' do? What is a COM interface?
Thanks!
mayayana wrote: How do I put a form in a DLL?
A DLL is like an EXE with a COM interface. You can do anything you want to. Just add the form to the project and control it through your exposed class(es). You can also pass the events through if you need to. In the exposed class, assuming you have a Form1, use: Private WithEvents Frm as Form1 You can then write subs in your class for the form events, like: Private Sub Frm_Clicked() Msgbox "Form was clicked." end sub
OK I figured out I can just do:
Dim frm As New Projectdll.Clas s1
And that works OK. Now I would like the DLL to be a MDI child form to be
called into my (obviously) MDI parent. When I try to do this it craps
itself (it can't find a MDI parent form). Is there any way around this?
Visual Boodu .NET wrote: Excellent advice, thanks. I made a DLL with a form which had a button and 'referenced' the DLL in my project (project - references) then added this code:
Dim frm As Projectdll.Clas s1
Set frm = New Projectdll.Clas s1
Call frm.LdForm
Is that the right way to work with DLLs? What does 'Private WithEvents Frm as Form1' do? What is a COM interface?
Thanks!
mayayana wrote: How do I put a form in a DLL?
A DLL is like an EXE with a COM interface. You can do anything you want to. Just add the form to the project and control it through your exposed class(es). You can also pass the events through if you need to. In the exposed class, assuming you have a Form1, use: Private WithEvents Frm as Form1 You can then write subs in your class for the form events, like: Private Sub Frm_Clicked() Msgbox "Form was clicked." end sub
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Johann Blake |
last post by:
I can hardly believe I'm the first one to report this, but having gone
through the newsgroup, it appears that way.
I would like to open a solution in the VS.NET IDE that consists of
multiple DLLs and a test application (an .EXE). The .EXE is my startup
application. All the DLLs are shared components. This means that they
contain a key and are stored in the GAC.
When I go to run the test application in the IDE, it will not execute...
|
by: Shiraz |
last post by:
Hi
I just made an installer for an application that uses two external COM dlls.
On the surface, everything seems to be running smoothly and the the
application runs without any errors. However, I am not completely satisfied
by my implementation.
I basically used a software that generates an msi file quite easily and
included the two dlls in my package. I then edited the msi file using orca,
and forced the dlls to self register by...
|
by: Devender Khari |
last post by:
Hi Friends,
I'm facing a situation as follows, need help on identifying possible issues.
There is an MFC application developed in VC6.0, say ABCVC6.exe and another
developed in VC.NET, say DEFVCNET.exe. There are a few DLLs that are to be
used
by these applications. All these DLLs are originally developed in VC6.0 but
some of them are now migrated to VC.NET. So, let's say we have PQRVC6.dll
and XYZVCNET.dll.
|
by: ZMan |
last post by:
Scenario:
This is about debugging server side scripts that make calls to
middle-tier business DLLs. The server side scripts are legacy ASP 3.0
pages, and the DLLs are managed DLLs converted/developed with VB.NET.
What I want from debugging is to be able to step into the methods in
the DLLs called from ASP scripts using Visual Studio .NET.
Background:
For typical script debugging issues, you can read and follow the two
documents on...
|
by: Oenone |
last post by:
I'm sure there's an obvious way to do this, but I'm missing it so far.
I have an ASP.NET application that relies on several DLLs to work. Currently
in order to get my site working I have to put them all in the bin/ folder
within my web site's directory.
As I have numerous web sites, I want to be able to place all of these DLLs
just once into a single location elsewhere on the disk (e.g., "D:\DLLs"). I
don't want to put them into the...
| |
by: Brian Bischof |
last post by:
I'm having troubles getting the debugging process to work consistenly for
external classes. I got it to work once and then I turned it off. But now I
can't get re-enabled. Here is what I'm doing. If someone could tell me what
I'm missing that would be great.
1. Create an external class and call it Test.dll.
2. Create a test Asp.net app called App.sln.
3. For App.sln I set a reference to Test.dll.
4. Compile App.sln and run it. The web...
|
by: Dave |
last post by:
Hello
The application I'm building an installer for uses dlls which were
developed originally in C. Since the application itself is developed in
C#, these dlls were wrapped using SWIG. Initially, the machine
environment variables were set to enable code development; however, I
am facing problem deploying the application. To work with these wrapped
libraries, the application seems to access a specific dll, for
instance, let's say the C...
|
by: Jeff Lynn |
last post by:
Help!
I recently upgraded my VS V6 to VS 2005 and was unable to build projects
that were perfectly ok under VS V6. Where VS 2005 fails was in the linker
resolving external DLLs, which are Open Source DLLs like "log4Cxx" and
"Xerces C++" DLL libraries.
VS 2005 converted my projects without any problem. Even the proper lib
includes and lib path were captured. But its linker just unable to resolve
the C++ function references.
|
by: gopal |
last post by:
I am developing an application in CSharp - windows forms based, which
copies the DLLs both unmanaged and managed DLLs from a shared folder
and will overwrite the existing versions of managed & unmanaged DLLs
into folder where some .NET application and a VB application has been
installed.
To be more clear, i will make some chnages to DLLs and using this
tool(developed in CSharp) i will overwrite the existing version of DLLs
- unmanaged...
|
by: =?Utf-8?B?UmljaGFyZA==?= |
last post by:
Hi,
I usually deploy my ASP .NET application to the server by publishing, using
Visual Studio 2005 publish feature. This creates the Bin folder on the
server, with the compiled DLLs.
I've been asked to publish by copying the files manually instead.
I stopped IIS for the application,
deleted the application files and subfolders from the server,
copied the files and folders from my local PC's project,
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |