|
Hi,
I'm using CExpire[^]) by Nish, but I cannot make it to work from different user accounts, other than the administrator one.
Any idea?
Thanks,
Carlos
|
|
|
|
|
Even inexperienced crackers can unlock this.
Also, it is not a good method, adding junk to the registry. Forget it. Find a new method.
Hari Krishnan
|
|
|
|
|
pranavamhari wrote:
Also, it is not a good method, adding junk to the registry
Adding junk to the registry!?
What is considered not to be junk?
pranavamhari wrote:
Find a new method.
I agree with you (not entirely) but there are no bullet proof methods. Anything can be unlocked. The whole purpose of CExpire is to give you an idea on how to protect a program, and not to provide an extremly strong protection scheme. I would suggest a combination of different protection schemes.
// Afterall, I realized that even my comment lines have bugs
When one cannot invent, one must at least improve (in bed).-My latest fortune cookie
|
|
|
|
|
pranavamhari wrote:
Find a new method.
Could you please suggest me another one?
Cheers,
Carlos
|
|
|
|
|
hi,
there are no free tools for this as far i know.
But try Armadillo or Asprotect .
Hari Krishnan
|
|
|
|
|
Hi,
I got a DC and need to take a rectangular part of it and pass it to a function that fills it with what it deserves. But I need clipping. I would imagine creating a sub-DC of the DC or locking all but the concerned part of the DC and then pass it over. Could you tell me how (if it's possible at all). GDI. Pure WinAPI prefered but will do with MFC sample as well if you post it. Even some hint would be fine. Thanks
|
|
|
|
|
Perhaps CDC::SetBoundsRect() may help?
/ravi
Let's put "civil" back in "civilization"
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I am trying to pass an empty variant array from VB, fill it (as a SAFEARRAY) in my c++ dll and then pass it back to VB. My overall goal is to populate the passed in array with a list of PID's of processes that are currently running in a job (JobName), and send it back. I am able to send and receive it, but when I receive it, I only have 1 PID in the returned array (even if I know I have two or three processes running in a job)
here is my code:
c++ DLL:
STDMETHODIMP CJob::ProcessesInJob(BSTR JobName, VARIANT* arrPID)
{
USES_CONVERSION;
SAFEARRAYBOUND abound[1];
SAFEARRAY *psa = NULL;
DWORD i;
HRESULT result;
HANDLE hOpenJob = OpenJobObject(JOB_OBJECT_ALL_ACCESS, FALSE, OLE2CT(JobName));
if (NULL == hOpenJob)
return 3;
//fill a structure with PID information for processes associated with the specified job;
JOBOBJECT_BASIC_PROCESS_ID_LIST jobinfoID = {0};
QueryInformationJobObject(hOpenJob, JobObjectBasicProcessIdList, &jobinfoID, sizeof(jobinfoID), NULL);
long *AEL;
abound[0].lLbound = 0;
abound[0].cElements = jobinfoID.NumberOfProcessIdsInList;
arrPID->vt = VT_ARRAY | VT_I4;
psa = V_ARRAY(arrPID);
//lock the data to access it
SafeArrayAccessData(psa, (void**)&AEL);
for(i=0; i
|
|
|
|
|
Hello,
This should be an easy one, but I can't seem to figure it out.
In my CDocument class, I want to get a pointer to my CChildFrame.
Is this possible?
Thanks in advance
|
|
|
|
|
This should help:
CEDTextView*
CEDDoc::GetFirstView() const
{
POSITION pos;
return ( pos = GetFirstViewPosition() ) ne NULL ? dynamic_cast<CEDTextView*>( GetNextView( pos ) ) : NULL;
}
Then use: GetParentFrame() on the returned view, if !NULL.
Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
|
|
|
|
|
That did the trick!
Thanks for your help
Wim
|
|
|
|
|
Hi,
I am Adding about 30000 items to combobox from database.
It's taking long time. Any Tips for Improving this Heavy
Operation.
|
|
|
|
|
My first reaction is are you sure that you want to do this?? It will be very difficult impossible for the user to find an item in your combo if there are 30K different choices...
John
|
|
|
|
|
think about your program concept, 30k entries in a combo box would annoy me!
Don't try it, just do it!
|
|
|
|
|
|
Yah my tip to you is to go to your favorite bookstore and purchase "GUI Bloopers" (its a purple book, hard to miss), and "About Face 2.0" by Alan Cooper. Read these books throughly, and I'm sure you'll find the answer to your question.
|
|
|
|
|
i am trying to make phonebook program for an exercise in a learning book, and I have an idea as to how I am going to do it, but i need to know how to save and delete files using a command in the program. If someone could enlighten me on how to do this id be grateful.
Thanks
|
|
|
|
|
There are numerous ways. You can use FILE* (streams), CFile (MFC), CreateFile (handles), cout (C++).
|
|
|
|
|
Hi folks out there !
I am new to working with VC7.0 so maybe this is my fault, but I discovered some strange linking error which is really driving me insane. And maybe some of you can tell me, what could be wrong:
The basic structure is the following :
I have header files
"HWStructs.H" with some struct declarations
"System.h" containing some namespaces. It is using the "HWStructs.H" for some namespace variables;
I also have a "SystemInfo.cpp", which is including "System.h", containing the definitions of the namespace "SystemInfo".
(All of my headers use include guards)
Last but not least I have my "main.cpp" which is including "System.h" to gain access to the namespaces;
The weird thing I am talking about is that it doesnt link on a regular basis. It links once, then not at all for quite a while, complaining abt redefinitions of all the structs I have in "HWStructs.h". Somewhen it just starts working again and at some not understandable point it stops, giving me lots of redefinitions in eithter "main.cpp" or "SystemInfo.cpp" again.
I even managed to reproduce this behaviour with some example files. There it wouldn't link the first time, only the second time hitting compile.
So what the heck is wrong ?
I'd be incredibly grateful for any suggestions,
Chris
|
|
|
|
|
How do we see TRACE() statement output, for an application that is written with VS6.0. I remember of a program that did that, but I cannot seem to find it.
|
|
|
|
|
They appear in the output window of Visual Studio. The app must be started with F5.
|
|
|
|
|
I don't have that luxury. I know of an utility that can capture it from a running program, but can't remember and can't find it, it has been a very long time.
|
|
|
|
|
Perhaps this was it:
http://www.sysinternals.com/ntw2k/freeware/debugview.shtml
|
|
|
|
|
|
DbMon that comes with the Platform SDK does that
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|