|
If you have an algorithm whats problem?
|
|
|
|
|
Is formatting the drive an option?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
No, it is`nt i would be too easy :/ some guys with some cool programms can recover any data even after formatting. Formatting the hard drive just create another allocation table, but if you want to you can find many ways (or shareware ) programs) to get the data back :/ it could be a part of my programm...formatting the hard drive...but the most important is that i want to use my small programm: delete some or all data from hdd and then use one of many well known programms for recovering deleted data and just show that would be impossible thanks to my application or script whatever...i`m still looking for someone who was doing simillar stuff and have those working algorithms. but thanks a lot guys...that were really thunder speed answers
|
|
|
|
|
plzz can anyone tell
how can we switch the values of two variables without using a 3rd variable in C
Thanx
Maryum
|
|
|
|
|
int i,j;
i =2 ;
j= 3;
i = i + j;
j = i - j ;
i = i -j;
I guess this is interview question.
-- modified at 7:22 Friday 20th October, 2006
|
|
|
|
|
Why?
Sounds like a homework question again.
Try Google[^]
|
|
|
|
|
thanx for ur help actually someone asked me that question and i did'nt know that its possible.
thanx again
bye
Maryum
|
|
|
|
|
No, you can't.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Just use the XOR operator.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
You can if you're a university lecturer who likes posing useless questions.
But as to why you'd want to, I'm stumped - it creates evil looking nonsensical code
|
|
|
|
|
I would need to create icon during program run (independently of resource); it seems to me that the 'inner' format of icon can't be complicated, but I was not able to find description of it.
Or, alternatively, is there some possibility to convert bitmap object into the icon object?
Thanks for help and/or advice!
|
|
|
|
|
Do you have icons in out your program or you want to create them?
|
|
|
|
|
petrkar wrote: ...but I was not able to find description of it.
Try here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Dear all
how to build a Head file which include three classes? for instance, the Head file is img.h, three classes are tagColorRGB, tagColorRGBA, tagFloatPoint.
thank you.
Li Zhiyuan
20/10/2006
|
|
|
|
|
One at a time.
Seriously, if you need to do this, just lay them out in a row. The only trick is if they refer to each other, but you can forward declare them if need be.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
|
|
|
|
|
|
EIther you need to think about how you word your questions, or you're typing your homework direct into the site without any thought. My money is on the latter.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
sorry i was at hurry....
I want to read a line from a file which consist number of lines.In mfc library there is no function for "fgets"( am opening this file "CFile::Open(.....) function,with sharedeny access flagcheck).If any one can give me the hint to how to write this generic functiopnality using mfc, i'll be gratefull.
kamalesh
|
|
|
|
|
|
kamalesh82 wrote: In mfc library there is no function for "fgets"...
Did you overlook CStdioFile::ReadString() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Am using 2004 MSDN. there is no such kind of function(CStdioFile::GetString()).
kamalesh
|
|
|
|
|
My bad. I meant CString::ReadString() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi guys
I have been trying to copy a process's module(my own proggy). This is the scenario:
There is a process lets call it "Main.exe" which loads plenty of modules and among those modules there are 2 modules called:
1. "Checker"
2. "Copyer"
Now this Checker module checks the Copyer module once in a while but i want to somehow change some stuff in Copyer using Read/WriteProcessMemory but if i do this then Checker will detect that i have changed something and exit the process.
What i want to do now is somehow copy the "Copyer" module and then reinject it in the process so that there are 2 "Copyer" modules. Then i want to fool "Checker" into scanning the fake module that i copyed/injected in the process.
I know that this is possible but i dont know how to do this. Could someone please help me?
Thanks in advance
|
|
|
|
|
Here is a program, in the release version, there is a "Run time Error" appreared some times, I can get the module name and the address of the function, but the address is an Invalid value.
It is not occured either in the debug version or release version with debug information, and it is not occured anytime.
when I press the debug button, it will not show the debug enviorment but just shut down the program.
It is an ActiveX program I wrote and the error occured when it is being created.
How can I find out the reason of this bug and how to debug in this situation?
Thank u!
|
|
|
|