|
Are you trying to hide functionality purely for useabilty's sake or are you wanting to provide a cut-down version of your overall application?
If it's the latter you'll probably want to stay away from the idea of using the app.config file as anyone could edit it and get the extra functionality for free.
I'd probably recommend building some sort of licensing system into your application where a given key will unlock only certain features in the application though this will probably involve a fair amount of work on your end (depending on your application architecture).
It definitely isn't definatley
|
|
|
|
|
I am not too worried about someone enabling features and I think that the application settings are enough.
It seems like this is a good idea. Encode the features inside the application license key but I have to think about it more.
Any ideas about how to map the settings to an index that will not change during compilation? Maybe deterministic hashing? It will be awful,buggy and disgusting to maintain a map. I am also limited in the number of flags that I can have in such a key (even assuming that each one is a bit).
Thanks a lot
Another Idea is to create a post installer that will open the features in the application. That requires a wrap around the msi installer.
Natza Mitzi
modified on Wednesday, December 3, 2008 12:48 PM
|
|
|
|
|
Hi, I am using threading concept in my application to fetch the image form the video server and display.
the code is:
for (int i = 0; i < dataCount; i++)
{
doneEvents[i] = new ManualResetEvent(false);
ImageReader imgr = new ImageReader(doneEvents[i]);
objImageReader[i] = imgr;
WaitCallback callback = delegate(object state) { imgr.DownloadFile((structCameraServer)state); };
ThreadPool.QueueUserWorkItem(callback, objServer[i]);
}
WaitHandle.WaitAll(doneEvents);
but how to call the thread again after completion of the work (ie how to make the thread to start again).
Thanks in advance,
|
|
|
|
|
renuga5298 wrote: how to make the thread to start again
new Thread( ... )
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
assume like i have 10 threads intially, if i am restarting again with the new thread(...) wont the thread count be increased to 20 and when the number of the thread increases it may create probelm as i need to do this functionality for every 1 sec time interval.
|
|
|
|
|
renuga5298 wrote: but how to call the thread again after completion of the work (ie how to make the thread to start again).
Use Thread class other than ThreadPool . Don't end the thread when operation completes. Write your code in a loop and when each cycle completes, sleep for some time.
|
|
|
|
|
Can you please guide me in using the thread class for this scenario as i am new to threading
|
|
|
|
|
If your firing a thread off ever second, I would suggest the BackgroundWorker
its a lot easier to manage. You could check if its busy on each Tick and fire
it off again if not.
A craft is an enemy if not well learned.
|
|
|
|
|
i want to execute multiple dos commands on button click.
the commands are as follows:-
diskpart
select volume d:
assign letter=z
how can i perform it. and i want after execution it closes the command prompt.
thanks in advance
|
|
|
|
|
Write all commands to a bat file and start it using Process.Start . Write Exit command at the last line, so it will exit automatically after processing bat file.
|
|
|
|
|
I have tried this. this executes only "diskpart" command after that
select volume d:
assign letter=z
are not executed.
thanks 4 reply.
|
|
|
|
|
sumit7034 wrote: select volume d:
assign letter=z
are not executed.
You need to write that into the StandardInput of the process.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Can u please give a sample code to do this
thanks
|
|
|
|
|
sumit7034 wrote: Can u please give a sample code to do this
No, try figure it out first, then if you are still stuck on a specific issue tomorrow, come back, and we will try to help.
MSDN may have some sample code.
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 beta 1 - out now! ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Hello to all,
I am developing remote desktop capture application. I have done upto screen capture of remote shown to my pc. And i am transfer my mouse pressed coordinates to remote to open that dialog. But how can i open "start menu" with using mouse coordinates that already have?
Will you please help me out if anyone knows it?
Thank you.
|
|
|
|
|
In my project we use a load balancer. This load balancer hides two application servers running web services that are secured using WSE 3.0.
The client regularly encounters the error:
WSE559: A UsernameToken with a particular nonce value can only be used once within a given time period.
Our guess is that this occurs when the load balancer routes a message to server 2 only once where the rest of the messages from that client go to server 1.
Is there a way to influence the nonce so that it is unique over 2 (or more) servers?
modified on Tuesday, December 2, 2008 2:39 AM
|
|
|
|
|
i'm analysing one of the samples of microsoft which is about termination tracking services that creates a log file and logs the events in it, but it needs administration privileges to run otherwise it goes to the catch block. i only have one user in my computer which is administrator type. what should i do?
i need to debug it to see how it works
thanks
|
|
|
|
|
Are you using Vista?
you need to run the program as an admin.
If you want to run it from visual studio, you need to run visual studio as an admin.
Right click on the VS icon, and click "run as administrator"
Simon
|
|
|
|
|
Dear All,
Currently i am working in winforms, my problem is how to restrict to add new rows into a datagird at runtime
user has permission to add 2 rows only if he wants to add one more row it should restrict
thanks in advance
|
|
|
|
|
Isn't it possible to check the row count? If it is more than the allowed limit, show a message saying "You can't add a new row".
|
|
|
|
|
I have a DropDown in GridView.I populated that DropDown manually via Items and putting those Items in the "Collection".The Items are :Mr and Ms.Its working well and getting populated.
My problem is, while I press the down arrow key from that Cel, the Items get changed i.e,Mr changes to Ms and vice versa despite my requirement. My requirement is that, while we press down arrow Key,the control should Go to Next line of that GridView instead of Items getting changed.
Please Suggest me on this Issue.
Thank you.
|
|
|
|
|
From what you have written it sounds like you are capturing the mouse down that triggers the drop down, but you did not show us how you are trying to go to the next row. From the result you are describing, I am guessing that you might be doing a SendKeys. If that is the case, you might instead try to do something like the following where 0 would be the column/cell number you want to set the focus to when you go to the next row...
if (DataGridView.Rows.Count > (DataGridView.CurrentRow.Index + 1))
DataGridView.CurrentCell = DataGridView.Rows[DataGridView.CurrentRow.Index + 1].Cells[0];
|
|
|
|
|
hi Everyone
I Have drawn a Sine wave using GDI+ in C# windows application, now i need to know how to zoom the Selected region..
can anyone help me? plssssss
|
|
|
|
|
an attempt:
I think there are 2 main things to do.
1. Determin the X1, X2 and Y1, Y2 where you want to zoom too. These are your constraints. (recalculate)
This means in the equation y = A sin (Bx - C) + D that both x and y have to be within the restraints.
2. scale your X-Y axis. if 100 pixels for Amplitude = 1 then you could set it to 200 pixels for amplitude = 1 (eg).
I would recommend doing one first without scaling, if the results are correct, you can rescale the axis to reflect the entire drawing area.
Hope this helps.
(it's been awhile, so double check )
|
|
|
|
|
I have to expand both Sine wave as well as with(in terms of pixels) of the bitmap.
can i have sample code..
|
|
|
|