We draw the caret via code , we dont use the system caret.
the primary reason is that we want to keep the editor itself as clean as possible from win32 api calls , so that it will be as easy as possible to port it to other platforms in the future.
(it uses gdi32 to draw , but the painterclass is replacable so one can easily exchange it to a gdi+ painter or whatever)
our editor is obfuscated so hopfully it will not expose too much of its internals :P
(otherwise we have source licenses for 255 usd per developer that is going to use it.. *grin*)
I need a simple way to get short file name for display. For example, I have full file name C:\Dir1\Samples\Files\Doc\Figures.doc and maximum length 30, and result should be like this: C:\Dir1\...\Doc\Figures.doc.
string s = ShortFileName("C:\\Dir1\\Samples\\Files\\Doc\\Figures.doc");
// s = "C:\Dir1\...\Doc\Figures.doc"
string ShortFileName(string fullName, int maxLen)
I have a large number of classes (each having different data members, over 300) which I wish to store the member data within a data blob in a SQL DB (Just one data table). The DB table has the class type and a data blob. Upon retriving the data from the table, the class type is viewed to determine which class to address, and then call the class to extract the data blob. In C++ I would have used a memcpy(), is there a good way of creating and extracting the data blobs, or equiverant to memcpy without having to use unmanaged code.
i want to build custom open dialog (which have extra funtionality of preview of selected file) and should also provide same functionality as standard OpenDialog..but we cant inherit FileOpenDialog.. what should i do? rebuild all that ??
i think you will have to rebuild it....or i can give you my old open file dialog..thank you can rebuild/remake.. i never finished it...you will have to do alot of work...but the tree view stuff is done. let me know what if you want it. if so its all yours
I wanted to find out the total bytes sent out by IIS virtual website. there are performance counter support in c#
which works fine. But the problem is, if that site is restarted (directly of by iisreset or a machine reboot) the counters are reset to zero. Is there a way to cacth an event that the counter is reset to zero and read the value just before it was reset to zero?