|
CListCtrl::EnsureVisible() should work for you.
--------
Sip my mind.
|
|
|
|
|
1. From what I have seen, decompiling .NET applications is possible, correct?
2. Has anyone tried to decompile 3rd party applications or controls?
3. Has MS specifically addressed the concern about reverse engineering .NET apps?
4. Is there a way to write .NET apps where they cannot be reverse engineered?
5. How effective are code obfuscators, really? Do they work as advertised?
I ask this as an ISV with a Win32-based software package we want to rewrite using .NET.
TIA
|
|
|
|
|
.NET IL can be decompiled. So can Java bytecode. Binary applications are also possible to decompile, although this is harder.
The problem is that you don't get nice, cleanly written code that way and probably end up doing more work to interpret the code than if you try to figure out how the application works and then rewrite it from scratch. I havn't tried to decompile IL, but that is my experience from experimenting with Java. For that reason I don't really worry about the possibility of decompiling.
If you are still worried, try running it through Demeanor or something like that. Many obfuscators replace symbol names with language keywords and produce metadata that are legal on the IL level, but will break the compilation (Example: giving all different variable types in the same scope the same name). If someone wants to decompile and edit code like that they must be equipped with superhuman patience...
Hope this helps
/moliate
|
|
|
|
|
Andrew Dubinsky wrote:
From what I have seen, decompiling .NET applications is possible, correct?
Where there is a will...there is a way.
Andrew Dubinsky wrote:
Has anyone tried to decompile 3rd party applications or controls?
Not yet.
Andrew Dubinsky wrote:
Has MS specifically addressed the concern about reverse engineering .NET apps?
Can't help you there.
Andrew Dubinsky wrote:
Is there a way to write .NET apps where they cannot be reverse engineered?
What ever can be done...can always be un-done.
Andrew Dubinsky wrote:
How effective are code obfuscators, really? Do they work as advertised?
Anything you can do to disuade any curious programmer/hacker/cracker from going any futher is worth the effort for a paranoid. It's like storing encrypted cookies. How many poeple would actually know where to find the cookie info...? then how many people would have the right of mind to open the cookie in notepad...?
If anyone got that far...how many would bother trying to crack your encryption scheme...?
Just my opinion
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I have a really strange problem. I have a working serial comm class that I pieced together from CP etc. It works fine if I do not try to open the port multiple times. By this, I close the handle to the comm port and try to open another port (or the same port) and it doesn't work. It seems like when I close the handle, it says it is closed but when I try to open another port or the same port, I get a problem.
Any clue?
|
|
|
|
|
I created a DLL class library DLLA by puting DLLEXPORT in each class.
#ifdef _EXPORTING
#define DLLEXPORT __declspec(dllexport)
#else
#define DLLEXPORT __declspec(dllimport)
#endif
It's okay. However, now I create another DLL called DLLB, which uses the classes in DLLA. what should I put in the header file for my classes ? the same ? then should i define _EXPORTING in project setting ?
|
|
|
|
|
You could define the symbols as _EXPORTING_DLLB and _EXPORTING_DLLA - that would keep the differentiation
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
Umm...how on Win9X? EnumProcess seems to work only on NT.
|
|
|
|
|
Use Process32First/Process32Next from the Toolhelp API. I wrote an article about an enumeration class that works on both NT and Win9x here.
/moliate
|
|
|
|
|
I receive WM_DEVICECHANGE event in my program.
When I plug a USB device,
but,whatever,
it's "wParam" always is 0x000007,and "lParam" always is 0x00.
DBT_DEVNODES_CHANGED==0x0007;
|
|
|
|
|
Hi,
I am having a MDI application. I want to fix the positions
of Child windows, that are seen in the MDI.
Can someone please tell me how to do it.
Thanks,
Sansky
God is Good, all the Time.
All the Time, God is Good.
|
|
|
|
|
Intercept (and respond to) WM_GETMINMAXINFO for the child windows.
However, if all of the child windows are going to be fixed size it seems you really are not interested in having an MDIClient.
|
|
|
|
|
Where can I find the files needed by App Wizard to generate and app in Swedish, norwegian and danish.
Happy programming!!
|
|
|
|
|
I am not sure what files you are referring to, but you should be able to find what you need in the Global Software Development section.
/moliate
|
|
|
|
|
Under the MFC\include and MFC\source I expect to find a directory L.sve containing some RC files in Swedish, and similary for other lanuages. I would also like to ensure that App Wizard adds the option to the combobox for selecting languages.
In the long run I will be writing my own add-in so that the skeleton app will include the default menu and string table for the 13 lamguage our future projects will have to support.
Happy programming!!
|
|
|
|
|
Well, *uck me.
Today VC7 decided to act up on me, in a big way. It won't let me edit my resources anymore; it gives me a "can't find afxres.h" message.
Here are the symptoms (long):
- afxres.h is where it should be
- does not happen on a fresh project
- worked before
- Happened for the first time when I was doing a search/replace on resource IDs, but I ignored it; it came back later. Can't remember if I was able to access the resource file in between those times, but I believe I did.
- Resource file compiles fine.
- If I replace resource.h and *.rc with another pair (from my new project that works), I get the same error.
- I've rebooted
- I've cleaned all my temp files.
- If I remove the reference to afxres.h, it complains about the next #include file (whic is also available and located in a dir that is referenced in te Resource Incudes list
- changing Resource Includes has no effect
I am clueless on this. Can anyone help?
TIA x 10^6
|
|
|
|
|
It turns out this is a known bug. My second Google search caught it:
Richard,
You wrote: "If I create a new C++ app or dll and try to open the .rc file
in recource view I get the RC1015 compiler error. The programs compile
just fine so the directory paths have to be OK, it only happens if you try
to edit the .rc file."
You potentially could be running into a problem with the Resource View that
happens when you have a lot of VC++ Include Directories. Try reducing the
number of include directories in Tools | Options | Projects | VC++
Directories | Include files.
Also, it may be possible to add the directories back after you successfully
expand the resources in resource view. The project has an APS file that it
uses for the resource view. Once that APS file is created, it doesn't go
through the same process when expanding the resources. So if the include
directories are all necessary, you could remove a few, expand the
resources, and then add them back. I know this is not ideal, and I
apologize for the inconvenience. I have reported this problem.
Thank You.
Jason Roth
Microsoft
This posting is provided "AS IS" with no warranties, and confers no rights.
--
|
|
|
|
|
Is there such a flag for sharing image list for a CTreeCtrl? If not, how would I force the Tree Ctrl to not destroy the Image List?
|
|
|
|
|
You need not worry; tree controls have this behavior by default. In fact, i am not aware that it is possible to disable it, so you must always destroy the image lists used by a tree control manually.
--------
Sip my mind.
|
|
|
|
|
Thanks, I was worried MS forgot to put that feature in
|
|
|
|
|
Hi,
Everybody
I am having a little problem using this Undocumented Function..
Everything is going fine.. but when i execute the
function SHChangeNotifyRegister...
It gives me Unhandled Exception - Access Violation
in Shell32.dll
Can nebody helpme.. - i am using Win 2000 Pro
if(SHGetSpecialFolderLocation(GetSafeHwnd(),CSIDL_DRIVES, &ppidl) != NOERROR) {
AfxMessageBox("GetSpecialFolder problem");
}
abc.pidlPath = ppidl;
abc.bWatchSubtree = TRUE;
if( (hNotify = SHChangeNotifyRegister( GetSafeHwnd(),
SHCNF_TYPE | SHCNF_IDLIST,
SHCNE_ALLEVENTS | SHCNE_INTERRUPT ,
WM_USER,
1,
abc)) == NULL) {
AfxMessageBox("Change Register Failed");
}
Regards
Sameer
sameermaggon@rediffmail.com
|
|
|
|
|
I want to use the c++ & sdk in the windows to attain as follows's result:If opened two window ways, can on the manifestation hold the act the auto is even to spread these window ways, each window way to at the right moment partition a the part hold the act, I can see the contents in a few window ways at the same time.Have a little similar partition in the window way, but this is at hold the act the inside the partition.
|
|
|
|
|
|
ROTFLMAO
Simply superb Shog, simply superb!!!!
Nish
One little CD gone,
Then two CDs gone,
Then 5 more gone,
For a total 7 gones,
If I was a CD R,
I'd wanna cry,
Cause I'd be just a goner,
For a nasty CD burner.
[funny how frustration wakes up the poet in me]
|
|
|
|
|
thank you!
--------
Sip my mind.
|
|
|
|