|
Hello all,
I am making a vb.net application which is a product to be distributed in CD with moneyback guarantee. Since the CD will be offered with a money back guarantee, there needs to be some type of copy protection on the CD or the ability to only use the CD on one specific computer etc. Otherwise the customer can purchase the CD, make a full functioning copy and ask for their money refunded. If i provide a serial number, Customer can make a cd copy and use the serial number even after claiming for refund. Please provide any suggestions either for preventing to make duplicate CD or provide any mechanism which should be used to make application to be run on one system only.
Thanks,
Amod Mishra
|
|
|
|
|
Ahh! The Copy Protection pipe dream again.
Ever notice you don't see people, of sound mind and body anyway, selling software with a money back guarantee? Ever wonder why?
No matter what copy protection scheme you come up with, it will always come down to a single IF statement to determine wheather your code will run or not. This IF statement can ALWAYS be hacked to get around your protection.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote:
it will always come down to a single IF statement to determine wheather your code will run or not
This brings a question to mind... I have just built a trial version of a PocketPC App that only allows the user to input two entries. How should I go about it to make it harder for someone to decompile my application and change the code and get a full version for free?
Thanks,
Mitch
My sig:
"And it is a professional faux pas to pay someone else to destroy your computer when you are perfectly capable of destroying it yourself." - Roger Wright
Get Perpendicular! (Hitachi Storage)
My CodeProject Blog
Most recent blog post: April 11
|
|
|
|
|
Just Google for ".net obfuscator". You'll find a bunch of products that make it harder to figure out the decompiled code.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
Please help. I have a specific object which holds multiple collections of objects inside which I want to save/persist into the database. I am using VB6 and SQL Server 2000. Does anyone know how to do this? Thanks.
SDE
|
|
|
|
|
that can be done by data grid control... the sql server helps to create stored procedures to develop your database.
by
saravanaprabu.R
|
|
|
|
|
I have a datagrid with 3 columns and 3 textbox on the form. I want that when i resize the the columns in the datagrid, textboxes should also be resized along with them. I haven't found any columnresize event in the datagrid there's only resize event but it's for the datagrid itself. How can i find out which column is resized and accordingly resize the textboxes at the runtime.
|
|
|
|
|
You'r looking for the WidthChanged event of the DatGridColumnStyle class. You'll have to generate your own columns instead of relying on the autogenerated ones.
Check out the documentation here[^] on MSDN.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have checked the documentation and i tried to create a new column
DataGrid2.DataSource = dataset
DataGrid2.TableStyles.Add(New DataGridTableStyle)
Dim a As DataGridTextBoxColumn = New DataGridTextBoxColumn
a.MappingName = "TableName"
a.HeaderText = "Customer ID"
a.Width = 50
DataGrid2.TableStyles(0).GridColumnStyles.Add(a)
but its not working. It is not placing the Customer ID on the header and it is also not resizing the column width. Is it the correct way or am I doing it wrong.
|
|
|
|
|
The MappingName should not be the name of the Table, but the name of the column in the table that that column is going to display.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I tried with both the column name and the table name but it's still not working.
|
|
|
|
|
i'm having a hard time figuring out where did i go wrong with this code.
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
'Begin Add operation -- Enable textboxes and
'disable buttons
EnableControls(True)
SetButtons(False)
'Add a new blank row to the dataset
Me.BindingContext(DsCourse1, "Course").AddNew()
'Set the focus to the first textbox
txtCourseID.Focus()
End Sub
is there something wrong with the syntax of the addnew method? coz it doesn't work
can somebody help me please thanks in advance guys!
|
|
|
|
|
In what way doesn't it work?
Do you also have a button or someother way to invoke Me.BindingContext(DsCourse1, "Course").EndCurrentEdit() after you have entered all your information to save the changes and end the edit?
|
|
|
|
|
i have resolved the problem, it's the textbox that i use for the birthdate has the problem i've tried this code which changes the date format into mm/dd/yyyy instead of mm/dd/yyyy hh:mm:ss of the text box displaying date and time from the database
http://www.codeproject.com/vb/net/databindingconcepts.asp[^]
this is where i got it and it doesn't work maybe it's just me but it's all ok now
http://www.codeproject.com/vb/net/databindingconcepts.asp"
|
|
|
|
|
hi all,
I want to create an application that has no interface but still listens to events.
can I use a service?
What is the best way achieve this?
|
|
|
|
|
What "events" are you talking about? If you have no user interface, this usually means your talking about a service. But, it all depends on what your app is doing...
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I am creating an MDI database-driven app in WinForms (VB .NET 2003).
There are many objects that I would like to have available / around to all child forms for the life of the application:
- DatabaseProviderFactory
- Connection String
- ResourceManager object
- A custom message handler object
- etc,etc.
I figured during the mainform (MDI) load, I would create / instantiate these objects and put them in public shared properties of the main form. The child forms would reference the main form properties for their objects.
Is this considered "bad practice"? Is there a better way to do this?
Thanks,
-Len Miller
"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
|
|
|
|
|
Rather than tying everything to the main form, a better solution may be to either
* design each of these objects as Singletons[^], or
* just use shared methods, so that you do not need a specific object instance.
my blog
|
|
|
|
|
Steve,
Hmmm, interesting. I will investigate the Singletons concept more - maybe that is my answer - I need to educate myself a bit on that.
I do not think the shared methods concept will work (If I understand you correctly), because these "global" objects really need to be object instances.
For example, my custom message object contains a dialog form, properties that control the "mailto:" text behind a "Contact Tech Support" link label, the icon / logo, the buttons (yes, no, cancel, etc), the existance of a "<< Details" button, etc. This really can't be handled in a shared method (I don't think). Now, the connection string can, maybe the ResourceManager object can...
Thanks a bunch for your reply Steve!
Any more wisdom or ideas you can toss me is always appreciated.
Thanks,
-Len Miller
"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
|
|
|
|
|
how can I edit a textfile from vb.net. Ex I want to make a button and a textbox and when the user input data in the textbox he can enter on the button and the data from the textbox will be transported in the textfile. now i have another button and a textbox. and i want to write the input of this textbox in the same textfile under the first line i used for the previos textbox.
Then how can i read the second line of the textfile from vb.net??
Adrian
|
|
|
|
|
I am unsure what you are trying to accomplish and why, but here are some possible solutions.
When you use a text FileStream, you can use FileMode.Append to append to the text file after all the existing text quite easily.
If you actually mean that you want literally 1 line of text from textbox1, then "insert" the text from textbox2, then the rest of textbox1, then you will have to do something else.
You may create a new file, read 1 line of text from the first file, write it to the second, then write the textbox2 data, then the rest of the first file.
(yuk)
Or, you can tread the file as a rendom access file, and read/write specific bytes (fields) and limit the sections of text to "n" number of bytes.
(better?)
Or, you really may want to tread these as data tables and save to XML, or keep this data in objects and serialize the objects to XML files. it all depends on what the end-goal is.
Thanks,
-Len Miller
"If I had eight hours to chop down a tree, I'd spend six sharpening my axe."
-Abraham Lincoln
|
|
|
|
|
Hi,
I have a server that users connect to for access to their files. I also have an application that will move certain files to tape and leave a stub file with the Offline attribute behind.
Today the only way the user could get the files back is if I restore the files from tape to the server.
I would like to know a way that when a user opens an offline(stub) file it triggers a command on the server to restore the file. But at the same time have the application wait for the Offline file to be restored before opening.
Does any one know how to accomplish this?
Thanks,
|
|
|
|
|
There is no built in support for this in Windows... yet...
Since opening a file does not execute the stub you left behind, this would require an extension to the file system. Warning: Not for the faint of heart, weak in COM skills, or lacking in C++ programming.
But, you have a different problem. Since restoring from tape can take an exessively long time, you don't have control over the application to keep it from timing-out the file operation on it's own, if it has such a mechanism built in. You also don't have control over the user getting sick of waiting for it to open and clicking the close box and having the application killed off or Explorer shutdown.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Zenly,
I don't think that would be too hard to accomplish, The Net Framework has a class called:
System.Collections.Queue
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemcollectionsqueueclasstopic.asp
You could Queue the stub files, then send a message to your users that it is in a queue and will be restored, then send it to your tape backup queue, retrive the file, then send an email to your users with a link to the file location you restored it to.
I don't have a lot of free time to code something like this out, but it may give you an idea of where to go with it.
progload
|
|
|
|
|
I would realy like to make it transparent to the users so that when they open the stub file it automatically starts restoring the file. I am not sure if queuing is the best solution in this case.
I know with other HSM products the code is only installed on a server. Users who has a share on this server does not have to install any code on their desktops to be able to activate the restore. They just need to open the stub file on the share they are mapped to and the restore starts.
I am not concerned so much about the user application timing out as long as the restore starts.
I tried using the Filewatcher class to sit on the server and watch for accessed stub files but I find that if I open a file it's accessed time does not always change and filewatcher does not trap it. Any ideas why that may be?
|
|
|
|