|
tht's wat i m asking for..that how may i create that..cuz there is no way i can access it using MFC...(spent entire day searching)..lol...
Cud u plz tell me how may i develope it?
|
|
|
|
|
Firefox stores your cookies in the automatically generated file cookies.txt under your specific Profile folder. Just delete the cookies.txt file from that folder.
char szPath[MAX_PATH];
SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, SHGFP_TYPE_CURRENT, szPath);
PathAppend(szPath, "Mozilla\\cookies.txt"); At this point, verify that szPath contains the correct value.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i have a program (which i didn't create) that have a built in timer.
the timer count backwards and i want to prevent the timer from hitting zero.
i tried compiling this c program:
<pre>
#include "stdafx.h"
#include <time.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
size_t main( int argc, char *argv[] )
{
SYSTEMTIME time;
GetSystemTime(&time);
while(!kbhit())
SetSystemTime(&time);
if(!getch())
getch();
return 0;
}
</pre>
and its stopping the windows (win xp sp2) clock but not the program timer, do anyone have a suggestion how to make the timer stop counting back?
thanks to anyone who actually read the post
|
|
|
|
|
shja88 wrote: ...but not the program timer...
Which is what?
More importantly, just what exactly are you trying to accomplish?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
sorry i didn't understand the question, can you rephrase that?
my english skills isn't that good
|
|
|
|
|
You've got a program containing a timer. That timer counts backwards.
Now you run another program that resets the Windows time as fast as it can.
And you are astonished that the first program still counts backwards?
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
yep.
are you saying that the timer is getting his updates not from the windows clock?
if so then from what clock does it updates? (bios????)
|
|
|
|
|
shja88 wrote: are you saying that the timer is getting his updates not from the windows clock?
Surely not. Especially if it just counts some numbers backwards, and not a time.
There are a plethora of different timers in Windows:
SetTimer and WM_TIMER are the most basic ones.
But there are High-ResolutionTimers and MultimediaTimers...
You definitly need to read the MSDN Topic "About Timers".
Hacking a shareware program?
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
jhwurmbach wrote: Hacking a shareware program?
actually not, its something far more simpler then that.
BTW you have any idea if i can actually change the timer?
and thanks for all your help, ill go check msdn.
thank you very much
|
|
|
|
|
shja88 wrote: you have any idea if i can actually change the timer?
When the application is using SetTimer / WM_TIMER, you could try sending WM_TIMER messages to the application window.
See is this speeds up the timer.
On of the gaping security holes in windows design: Anyone can send any message to anyone. (See also WM_COPYDATA).
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
thank you very much, you helped me a lot
|
|
|
|
|
Hi,
I have created a property sheet and set the wizard mode for that, then added a property page to that sheet, When i execute that i see property page embeded in property sheet and plus some more space(which is not part of dialog) at the border, how can i remove that space.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
The wizard as also Propertysheets are using the size of biggest sheet. Check this out.
If this wont help you it is best to think about writing the wizard with multiple dialogs.
Greetings from Germany
|
|
|
|
|
The framework uses the size of the largest page to determine how much space to allocate in the property sheet for the property pages. So, how many pages does your sheet have?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Mine property sheet has 7 pages, and all property pages have same size.
But the problem is that even if i have only one property page in a property sheet, still i see some extra space(along with property sheet border)other than dialog's space.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
Can you provide a screenshot?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
http://img460.imageshack.us/img460/2465/extraspaceofpropertyshemk5.jpg[^]
Button having caption Cancel occupies the whole property page, but still there is some space occupied by property sheet, I have pointed that with some painting of blue colored airbrush.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
"English is my second language; please excuse any grammatical or spelling mistakes"
|
|
|
|
|
I could be wrong, but I think that spacing is normal.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
Save an Orange - Use the VCF!
VCF Blog
|
|
|
|
|
Hi All,
I am new to c++ and facing one prob. I have one base class Vehicle and two sub class Car and Motor. I have an array of pointer to sub class but i m not able to delete the memory for that.
CVehicle
CCar : CVehicle
CMotor : CVehicle
CVehicle** myVehicle;
myVehicle = new CVehicle*[3];
myVehicle[0] = new CCar;
myVehicle[1] = new CMotor;
myVehicle[2] = new CCar;
now when I tried to reallocate the memroy, it is giving an error.
delete myVehicle ;
Any idea how to delete the memory??
Any help
Monark - I am learning
|
|
|
|
|
When you are deleting an array of elements that you created using new, you should be doing it using '[]'
delete []variable;
|
|
|
|
|
when you use new, you must use delete.
when you use new[], you must use delete[].
BTW, i see a problem in your design.
a Car is actually a Vehicle, so, it's ok to derive it from CVehicle.
but a Motor is not a Vehicle. a Vehicle HAS A Motor... it seems that you confused with the IS A relationship.
also, are you sure to wanting to create an array of pointers rather than an array of objects ?
|
|
|
|
|
You need to deallocate as
delete myVehicle[0];
delete myVehicle[1];
delete myVehicle[2];
delete [] myVehicle;
- NS -
|
|
|
|
|
use the delete operator carefully. With delete you delete pointers:
first delete myVehicle[0];
delete myVehicle[1];
delete myVehicle[2];
delete *myVehicle;//pointer to pointer
Hammer in your head: to every new belongs a delete
Greetings from Germany
|
|
|
|
|
KarstenK wrote: delete *myVehicle;//pointer to pointer
Your syntax is a bit askew. Use:
delete [] myPointer;
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I chose this way use the same syntax as the declararion: to make it easier readable
Greetings from Germany
|
|
|
|