|
Hockey wrote:
1) Containment
2) Aggregation
I don't think that guy uses ATL,He said his contol inherit from COleControl,I think he use MFC.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Thank you for your kind adresses.
I have already done that... but that had many errors...
for example,
I made a MyControl.ocx using MFC(app wizard) which class is CMyControlCtrl.
And then I tried to make MyControl2.ocx inherited from CMycontrolCtrl.
But They had a lots of Errors.
Could you show me a sample.....?
Bye....
|
|
|
|
|
Deawoong Chun wrote:
Could you show me a sample.....?
Sorry,I never test it,and I don't have sample.
Deawoong Chun wrote:
But They had a lots of Errors.
What are those errors,maybe I could help you.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
I don't know right now but i will check that in detail.
Here My Method is followed.....
1. Create the MyControl.ocx using App Wizzard(not ATL)
2. I wanted to make another control inherited from MyControl.ocx. And I got base codes from App wizzard(Active X control).
3. I added the wrapper class(CMyControl.c, XXXX.h)from the registered MyControl to my project(MyControl2).
4. I changed the control class definition in MyControl2Ctrl.h like that....
class MyControl2Ctrl: COleControl....
-> class MyControl2Ctrl: CMyControl
and i compiled my code ...... but :< I had lots of errors.....
I don't think that Inheriting the control is simple as above....
I don't know how I can approach that....
Could you show me the instruction... please...?
bye
|
|
|
|
|
Hi,
I use a CListCtrl for displaying a list of sequences to do.
For example 10 Events.
If my ListCtrl is little I can't show the all events.
So, When I execute each Event, I want to show the Event played and the Next.
Best Regards
youssef
|
|
|
|
|
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
|
|
|
|