|
Thanks Ravi, that does the job perfectly.
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Deer Dance, S.O.A.D.
|
|
|
|
|
Check out the article at http://www.microsoft.com/msj/defaulttop.asp?page=/msj/archive/sf9c.htm for a good solution to this problem.
Dave Goodman
dgoodman@infoway.com
www.dkgoodman.com
"Actio sequitur esse."
|
|
|
|
|
Thanks Dave! That's a great link!
/ravi
"There is always one more bug..."
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I can only repeat Ravi's words: thanks, that is a great link!
____________________
David Wulff
Beyond the Staples Center you can see America,
With its tired, poor, avenging disgrace,
Peaceful, loving youth against the brutality,
Of plastic existence.
Pushing little children,
With their fully automatics,
They like to push the weak around.
- Deer Dance, S.O.A.D.
|
|
|
|
|
Depends on the platform. Windows prevents you from deleting files that are running, in DOS though you could have made an application that deleted itself since it goes into RAM on runtime.
Anyway, you could probably edit Autoexec.bat, Win.ini or the registry to make sure it is deleted on the next reboot.
Isaac Sasson,
Lean, mean posting machine!
Sonork ID 100.13704
|
|
|
|
|
I've just started using CreateDIBSection with 8bit bitmaps. I have filled the BITMAPINFO.bmiColors member with my 256 colours, and I select the palette into the DC with SelectPalette, and it all works perfectly. But how do I change the colours in BITMAPINFO.bmiColors after I've called CreateDIBSection, because it seems to be these that the colour of my bitmap relies on - like repaletization - how is it possible?
Thanks for the advice...
With time we live, with money we spend!
Joel Holdsworth
|
|
|
|
|
Hello!
Here's another dumb newbie question for you:
Let's say I have class A that has class B as one of it's members. Is there a function so I can reach class A from class B? You know, as an object.parent or something like that.
thank you all!
marcela bovio
|
|
|
|
|
Nothing built into the language. You can store a pointer to the outer class as a member of the inner class when it is created however, and just use that.
--------
Sip my mind.
|
|
|
|
|
As far as I know you can't do it directly.
But instead of putting one class inside the other you could derive one from the other (inheritence, so it gets the same functions and vars as the first one and you can add more).
Then you set the as "friends" so you can approach one from the other.
Try it, or something like that. I don't remeber how it goes exactly.
Isaac Sasson,
Lean, mean posting machine!
Sonork ID 100.13704
|
|
|
|
|
I made my control using VC++ 6.0.
I want to make another to inherit this control.
what shall i do?
I know that my control is inherited from COleControl. And then It can works that I can make inherited ActiveX control from my custom control.
Isn't it right?
How can i do that?
Thank you!
please contact me via jav@korea.com
|
|
|
|
|
When you create your ActiveX it has a class that name YourActivexCtrl ,I TKINK you can inherit from that class.
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 thought you couldn't inherit from ActiveX controls like you do a C++ class?
AFAIK you only have 2 options:
1) Containment
2) Aggregation
Or something like that...i'm too lazy to look up ATL books and I rarely program ActiveX controls.
These options fall short of inheriting like MFC classes do.
Cheers!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
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.
|
|
|
|