|
or "you have made an error somewhere. Fix it"
|
|
|
|
|
are you certain ERROR is not already defined in some Windows header file ?
on my system, it's defined in WinGDI.h.
just change the name of your variable.
|
|
|
|
|
...or change the case to ErRoR
Great job, team. Head back to base for debriefing and cocktails.
|
|
|
|
|
When I saw your suggestion ErRoR I forgot how Can I write error
|
|
|
|
|
Not only is it hard for me to type, it's hard for me to LOOK at!
Great job, team. Head back to base for debriefing and cocktails.
|
|
|
|
|
I dare to say it looks like a Counter-Strike maniac's nick :]
It's a pity you didn't write 3rRoR :]
|
|
|
|
|
hi
how can insert or embed my exe program in an image
sepel
|
|
|
|
|
sepel wrote: in an image
you mean, a picture, or an ISO ?
|
|
|
|
|
a pitcure gif or bitmap or jpg
sepel
|
|
|
|
|
search the web for steganography
there an excelent series of articles here on CP, but it's in C#, if you don't mind
|
|
|
|
|
thanks .i search it on cp also.
sepel
|
|
|
|
|
I am developing a program right now. The program will most likely start as when windows boots and will manually be closed. I would like to ensure that once the program has started it will only runs in RAM until it is manually close. Is there any way to ensure and force programs?
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
ScotDolan wrote: I would like to ensure that once the program has started it will only runs in RAM
do you usually run programs elsewhere ?
|
|
|
|
|
|
Well, Windows use some of the hard drive space as virtual memory. I am sure you haeard of thrashing. If the Computer does not have alot of RAM. Windows will use the Hard Driver as RAM. I wanna way ensure that this does not occur on my application and system..
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
yes, but that's part of the virtualization, and only the system knows it. any application requiering some memory will be allocated and address, but cannot know if it is actually on the HD or on RAM
BTW, may i know why you want such a requirement ? i can't immagine a reason.
also, have you wondered buying some additional RAM sticks ?
|
|
|
|
|
The PC that runs our application is in motion ie. a flight simulator. We are getting hard disk failures quite offen. I would like a way to disable the hard drive and ensure the system and application don;t attempt to write to the hard drive which windows is in motion.
Scott Dolan
Jernie Corporation
Engineering & Manufacturing
Software, Hardware, & Enclosures
|
|
|
|
|
hum, ok, then, maybe you should firstly think of protecting/isolating the hard disk from hurts.
for your problem, i have no real solution. I think upgrading the RAM would be the best choice at first
ps: my name is toxcct, thanks
|
|
|
|
|
ScotDolan wrote: We are getting hard disk failures quite offen.
You must have really flaky hard-drives for that beeing a problem. I suggest you invest in some sort of RAID configuration ( I'm not RAID expert ) to help secure yourself against disk failure. or find a better enclosure for your HD to reduce vibrations.
IMO, for such systems, the simulator should not contain disks, only the display; all other hardware should be on a solid base platform next to the simulator.
I seem to remember at some point that it was possible to set the Virtual Memory to 0 (zero); I'm not certain how this will help.
|
|
|
|
|
Maximilien wrote: I seem to remember at some point that it was possible to set the Virtual Memory to 0 (zero); I'm not certain how this will help.
Yes... do it and you will slow down your machine for good :]
|
|
|
|
|
|
Whether the application allocates memory from the heap or not, Windows will still page it out to disk if it needs to.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: Whether the application allocates memory from the heap or not, Windows will still page it out to disk if it needs to.
MSDN wrote:
VirtualLock
Locks the specified region of the process's virtual address space into physical memory, ensuring that subsequent access to the region will not incur a page fault.
|
|
|
|
|
But that has no effect on the application as a whole, only small parts of it, if any. If no heap-based memory is allocated with VirtualAlloc() , what good is VirtualLock() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
DavidCrow wrote: If no heap-based memory is allocated with VirtualAlloc(), what good is VirtualLock()?
He may be able to write his application so that VirtualAlloc is used for all heap allocations (a custom operator new may help with that) and than VirtalLock can help.
Of course, I am not saying it alone would guarantee that HDD is never touched - there is stack, data and code that also need to fit in the memory.
|
|
|
|