|
Cant you make it of zero width?
- NS -
|
|
|
|
|
How about setting the width of that column to zero?
MS
|
|
|
|
|
Can you more explain why you need to do it?
|
|
|
|
|
plz tel the Difference between debug and release builds.
|
|
|
|
|
the basic difference is the debug information will be embedded in the exe in debug build which is not possible in release build.is it suficient or are u looking for anything else.
|
|
|
|
|
Another difference is that debug mode can maybe work perfectly, but same code in release may crush in hundreds of places.
Debug assumes some things when nothing is said, or automatically correct some errors of intialization.
Release executes ONLY what the programmer has written. If it is not correctly written will crush.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
Read this.
Also, there is an artice on the CodeProject I think but I can't remember its name.
|
|
|
|
|
|
Speed is the main difference a debug build will by default have no optimisation, this makes it easier to debug. But you can debug a release build it is just a little harder.
|
|
|
|
|
|
Hi
In my program i want to use
<br />
BOOL MapAndLoad(<br />
PSTR ImageName,<br />
PSTR DllPath,<br />
PLOADED_IMAGE LoadedImage,<br />
BOOL DotDll,<br />
BOOL ReadOnly<br />
);<br />
function in Imagehlp.h .
<br />
CPE::CPE(CString fileName, CString filePath):fileName(fileName),filePath(filePath)<br />
{ LOADED_IMAGE loi;<br />
::MapAndLoad((LPSTR)(LPCTSTR)fileName, (LPSTR)(LPCTSTR)filePath, &loi,FALSE, TRUE);<br />
int i = loi.NumberOfSections;<br />
char q[50];<br />
sprintf(q,"%d",i);<br />
MessageBox(NULL, q,NULL,0);<br />
}<br />
When i compiled and execute it. It gives error Messagebox with value -858993460 . I changed my projects setting use multibyte character set. wchar_t to char.
But can not find solution. What is wrong with this code?
How can i fix it?
Thanks.
|
|
|
|
|
sawerr wrote: What is wrong with this code?
You did not check the return value from MapAndLoad() , nor did you call GetLastError() .
"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 checked the return value, it is not TRUE
MapAndLoad() is not working.
I changed code because of pstr parameters.
CPE::CPE(CString fileName, CString filePath):fileName(fileName),filePath(filePath)<br />
{ <br />
char *ch1 = strdup(fileName);<br />
char *ch2 = strdup(filePath);<br />
MessageBox(NULL, ch1, ch2, 0);<br />
<br />
PLOADED_IMAGE loi = ::ImageLoad((PSTR)ch1, (PSTR)ch2);<br />
<br />
<br />
<br />
BOOL b = ::MapAndLoad(ch1, ch2, loi,TRUE, TRUE);<br />
if(b == TRUE)<br />
{<br />
MessageBox(NULL, "DONE", NULL, 0);<br />
}<br />
<br />
ULONG i = loi->NumberOfSections;<br />
char q[50];<br />
sprintf(q,"%d",i);<br />
MessageBox(NULL, q,NULL,0);<br />
}
fileName and filePath parameters correct (they are coming from CFileDialog) but it gives run-time error in line ULONG i = loi->NumberOfSections;
Unhandled exception at 0x76c977f2 in PEInside.exe: 0xC0000005: Access violation writing location 0x00000004.
Do you have any suggestions?
|
|
|
|
|
If MapAndLoad() is returning 0 , why are you then proceeding to dereference loi ?
sawerr wrote: Do you have any suggestions?
Yes.
BOOL b = ::MapAndLoad(ch1, ch2, loi, TRUE, TRUE);
if (b)
{
CString q;
q.Format("%lu", loi->NumberOfSections);
AfxMessageBox(q);
}
else
{
CString q;
q.Format("%lu", GetLastError());
AfxMessageBox(q);
}
"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
|
|
|
|
|
Thanks for your help your last post really help me, i understood how i must write.
Thank you.
Good works...
|
|
|
|
|
Sir,
I have taken a VC++ Project as MFCAPPWIZARD(exe) and Dialog Based support. In that I have taken a picture control for that I 'import'ed some bitmap images and set one of them as default.My code performs the functionality like, for every 5 seconds the image in the picture control will be changed continuously repeating the same pictures .(for this I used SetTimer(.......))
Now I am want to give a functionality to a button, which sets the current image in the picture control as My Desktop Background.
Please send any solution or suggestion in this regard like what functions may useful or any code is already having in our codeproject.com
V.Durga Prasad,M.C.A.,Elico Ltd,Hyd-18.
-- modified at 7:39 Wednesday 12th September, 2007
|
|
|
|
|
vallamkonda.durgaprasad wrote: Now I am want to give a functionality to a button, which sets the current image in the picture control as My Desktop Background.
Use SystemParametersInfo() .
"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
|
|
|
|
|
You can use of IActiveDesktop .
|
|
|
|
|
hello to all,
right now i am deleting a file or folder and moving it to RecycleBin throuch VC++ (MFC) coding but i want to delete it permanently without moving it to RecycleBin. I am using SHFILEOPSTRUCT structure for deleting a file and moving it to RecycleBin, plz can anybody help me?
Anay Kulkarni
|
|
|
|
|
use DeleteFile() to delete file
and RemoveDirectory() to delete the folders
Regards,
Pankaj Sachdeva
"There is no future lies in any job"
"but"
"future lies in the person who holds the job"
|
|
|
|
|
Apparently, you are providing full path names to the pFrom field. If you don't provide full path names, the file(s) won't go to the recycle bin.
If you need to provide full path names, you can try this - I haven't tested it:
Insure that the flags field of SHFILEOPSTRUCT does not contain the FOF_ALLOWUNDO bit.
SHFILEOPSTRUCT foStruct;
foStruct.fFlags &= (~FOF_ALLOWUNDO);
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
Changing the SHFILEOPSTRUCT is the easiest since you are already using SHFileOperation() . There's also DeleteFile() and remove() .
"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
|
|
|
|
|
|
How are you starting oleview.exe?
"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
|
|
|
|
|
DavidCrow wrote: How are you starting oleview.exe?
By typing oleview in visual studio command prompt.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|