I have developed a .NET application. What is currently missing is a copy protection. My customers are mostly in other cities and in same sector. When I send a copy to a customer I want to be sure that it is not copied and used without my knowledge. What do you use to protect your applications?
I've created an ActiveX control using Visual C++ .NET.
When I add this control to a container created with Visual C++ .NET (or a Visual C++ 6.0) everything works and there is no apparently problem. But now, I'm trying to test this ActiveX with an application created with Visual Basic 6.0. The problem is that the ActiveX control does not appear in the list of registered components from the Visual Basic 6.0 (Menu -> Project -> Components, or Ctrl+T). So, I can't add my ActiveX to the Visual Basic 6.0 container.
When I try to make the same operation with a Visual Basic .NET container, I find the same situation, this is, the ActiveX control is not in the registered components list. But the ActiveX control is already registered.
I use the OleView application in order to ensure that the control is registered.
Due to my ActiveX control perfectly works with a Visual C++ .NET (and a Visual C++ 6.0) container, I suppose there is any bad chosen compiler option (by the time, everything is by default). Does anybody experimented the same situation testing his/her ActiveX in a Visual Basic container?
You can import the type library for Microsoft Graph (a COM component of Microsoft Office), and use the Type Library Importer (TLBIMP.EXE) to convert this to an assembly, which you can examine with the IL Disassembler. However, this is a major pain in the ass and it takes alot of time to learn your way through it all. There are help files for all the Microsoft Office components, located somwhere in that directory, but they are written for Visual Basic programmers. They do however describe the object hierarchy well enough to get you started.
It would be mush easier to actually draw the chart using GDI functions.
How complex is the chart? Do you have to create many of them?
It's a XY chart, I think that it's not very complicated. I have to create a lot of points and then draw lines from one point to another with DrawLine. Am I right? Is there a way to make it easier?
I have a variable number of points, and it can reach a high number so I won´t have enough pixels to draw the chart. In that case I don´t know what to do.
Hey, sorry for not getting back to you.
I'm used to using the GDI functions in Win32 applications, so I haven't done much design in .NET. But the Framework classes call the underlying Win32 functions, which, in this case are pretty simple and commonly used. The Graphics object is similar to the Device Context in the Win32 API. I believe you instantiate the Graphics object (with the new operator), and then, you can use Intellisense to help you through the process.
In Win32, you specify a point, and then to draw a line (after selecting a Pen into the Device Context) you call two functions, the first sets the beginning and the second draws the line to the end point (which you supply as a parameter). It's quite simple; and, I'm sure the .NET Framework methods are as easily used (but, I haven't played around with it, so, I have no example code).
You might read through the MSDN documentation, and explore the DrawLine method: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemdrawinggraphicsmemberstopic.asp[^]
hi all ...
i'm developing a program that gets all the processes running on the computer and display them in a list view control and i'm using a timer that update the processes in the listview every 2 sec...the problem is that if there is a selected item in the list view and the list view updated .. the selection on the item just gone ...how can i track the selected item so that the next time the list view updated ....the same item is still selected...
thank you for your time
hi all.. i'm developing a program that get the current processes that are running on the computer and if any process has i user interface getting the name of this GUI of the process...i'm checking if the process has MainWindowHandler...if so i'm getting the process MainWindowTitle....it is working fine but for processes such as Explorer.exe or Iexplorer.exe ... the MainWindowTitle doesn't return anything...i wanna return the urls that the ie launching ...or the folders that are opened now...how can i accomplish this??
thank for ur time
I have written a custom OLE DB Provider for a propritary Database (built on top of SQL Server provider). I want to move all my code to .NET from VC 6. Since the .NET Data Providers do not provide functionality outside of ADO.NET (Like in Excel or Crystal Reports) I cannot use the new data provider platform. Is there a way through COM interop that I can consume a datatable in COM so I can have a .NET dll that does 90% of the work with my original provider code consuming the output of the new dll. I have seen all the COM interop examples and they all use the basic types like string double etc. If anyone has any ideas please let me know.
I am trying to write a black and white (Tiff) image viewer using GDI+ in C#. I want to take a 1 bpp tiff file and display it to the user in "Grayscale". Does anyone have any examples of this type of filter? I am looking to mimic the "softening" of the tiff image that can be seen if viewing a tiff in the Windows Picture and Fax viewer or the MODI viewer. I can get misc. filters to work on jpg images, but and having difficulty working with 1bpp tiffs. Any help is much appreciated.
We’re in the process of designing a server-side application.
The first "filter" component of the server should receive requests from multiple concurrent clients over TCP/IP, each request containing an entity ID number. The filter should then process each ID and decide whether to pass it on to the next component (database) according to a given set of rules. The first version of the system should deal with around 20 concurrent clients producing ~1,000 requests per second, but future versions should be much more scalable (up to hundreds of concurrent clients and ~100,000 requests per second). The development environment is Microsoft .NET on Windows 2000 servers.
We came up with two possible architectures for the filter component:
1. Maintain a different communication thread for every client. Every such communication thread receives ID’s from its corresponding client and writes them into a common queue. A different worker thread reads data from the queue and processes the requests.
2. Maintain one communication thread for all clients. The communication thread reads ID’s and writes them into a queue. Several worker threads, managed in a thread pool, read data from the queue and process requests.
The first solution is obviously less scalable, since when the number of clients increases the overhead of a large number of threads starts affecting performance. Still, it is easier to code and it fits the first version/versions of the server.
Our question regarding the second solution, which seems more "server-oriented", is this: when taking into consideration the large number of requests per second and the fact that the processing time of each request is relatively short, isn’t the overhead of managing a thread pool, allocating a worker thread for every new request and returning it back to the pool when finished, etc. becoming too expensive ? Won't this affect the overall performance ?
1. What should be the limit (roughly speaking) of the number of concurrent communication threads we can expect to run on a standard Windows 2000 machine ?
2. Is there any other alternative for the design of the filter component ? Are we missing something basic ?
I want to make my own custom .NET framework launch condition message. I've tried to simply change the message property in the Condition node but that didn't work. I've read the "Adding a .NET Framework Launch Condition" section in Visual Studio help. It says "You can replace this with your own message; however, the message will not be localized automatically". This may be a newbie question but how do I localize my custom message?
I have some frames(GroupBoxes) for my application and would like to know when the mouse comes onto the frame(GroupBox). Any ideas please. Or can I know the coordinates of the mouse when I am on the frame(GroupBox)(Some thing like that)
I want to implement a Replication with a SQL Server CE and a SQL Server Database, so i created once a virtual directory and a new SQL Server Registration because before i had only a (local)(WindowsNT)registration and with this a Publication is not possible.
Create Virtual Directory:
So i have created a alias name with the following attributes:
At NTFS Permissions: Computer Running SQL Server i have the "One or more
applications ruquiring SQL Server merge application" nocht checked, because i
could not quote a correct path to the SnapShot Folder??
Then i have deleted the current SQL Server and created a new SQL Server
Registration with the following attributes:
As Available Servers I add my MachineName.
The i checked "The SQL Server login informatoin that was assigned to me by
the system adminstrator(SQL Server Authentication)".
Then i checked "Login automatically using my SQL Server account information"
and typed in as Login name sa and as password also sa.
Then i checked "Add the SQL Server(s) to an existing SQL Server group".
I hope i made these things in a correct way, regardless of the thing with
So now i want to Create a Publication, but already in the first point of the
Wizard i got problems:
At "Select Distributor": What should i check? When i check 'Make
'MachineName' its own Distributor;SQL Server will create a distribution
database and a log" - I will get an notification (SQL Server Agent on
'MachineName' currently uses the system account, which causes replications
between servers to fail. In the following dialog box, specifiy another
account for the Service startup account.) and the SQL Server Agent Properties
- MachineName opens??
When i check "Use the following server(the selected server must already be
configured as a Distributor);" - I have to add a server but regardless of
the (local) Server i could not choose anyone??
At the "Configure SQL Server Agent" should i check "Yes, configure the SQL
Server Agent service to start automatically?
Then i have to quote the SnapShot-Folder:
\\MachineName\C$\Programme\Microsoft SQL Server\MSSQL\ReplData
When i use this path i'll get an notification - "The Snapshot folder path,
'\\MachineName\C$\Programme\Microsoft SQL Server\MSSQL\ReplData', uses a
special share name which can ususally be accessed only by a login with the
adminstrative privileges on computer 'MachineName'. This share my not be
accessible by agents running on other computers, such as the agents for pull
subscriptions. Are you sure you want to use this snapshot folder path?" -
Should i care with this notification??
And another great problem: When i click on okay of the following
notification i will get another notification: "SQL Server Enterprise Manager
could not retrieve information about the Distributor of the database. Error
1038: Cannot use empty object or column names. Use a single space if
necessary." And when i click on okay and the "Choose Publication Database"
screen appears i cannnot choose any database because in there do not appear
any databases. What went wrong here?
Please, can anybody help me with these things and answer me to my posting, because i do
not really look through it although today i bought me the book ".NET Compact
Framework Programming with C#", but this book did not help me.