|
Im still not quite sure what you are trying to do - you're adding files to a zip but want to know if a file is in the zip before closing it ? huh ? or are you for example checking to see if a file ALREADY exists in the zip and not adding it if it does ?
you could wrap the code I gave you in a function that takes the hz of the open zip file and a string for the filename, and traverses the index like I show, returning say bool true if the file exists
a much simpler way could be for every file you're using ZippAdd for, you store the filename in a string vector before using ZipAdd. Before calling ZipAdd, search the vector using find() for example, if its found, dont ZipAdd it, but your logic is unclear, its late at night here, so thats the best I can do for the moment, sorry
'g'
|
|
|
|
|
k,no prob.
Actually I m trying like this
"or are you for example checking to see if a file ALREADY exists in the zip and not adding it if it does ?
"
But I will try vector one.
so thanks.
|
|
|
|
|
Hello everybody !
Now I use VC6 to new a dialog program,and add this code into the OnOK() function:
void CMFCDlg::OnOK() <br />
{<br />
MessageBox("","",MB_OK);<br />
}
and now I new other SDI program to get the MessageBox Handle:
void CMainFrame::OnFileNew() <br />
{<br />
HWND hWnd1,hWnd2;<br />
hWnd1 = ::FindWindow(NULL,"MFC");
hWnd2 = ::FindWindowEx(hWnd1,NULL,"#32770",NULL);<br />
if(!hWnd2)<br />
{<br />
MessageBox("Get Window Handle is failed!");<br />
}<br />
}
I try it more ,but is failed. the result isn't same as SPY++.
How to get other program's MessageBox Handle without title ?
thanks for your reply!
Best Reguards!
|
|
|
|
|
Is hWnd1 valid and it doesn't find the second one or is hWnd1 also null?
Greetings
Covean
|
|
|
|
|
In debug mode,hWnd1 isn't NULL,but the hWnd2 is failed.
|
|
|
|
|
Ok its good to know.
But are you sure the class of your MessageBox is really "#32770", cause if I
use spy++ on a MessageBox the class name is "#32770 (Dialogfeld)" (german app).
At last try to use FindWindowExA (the ANSI one), because I also developed an
app that has to find some windows and clicks it, but it only worked with the
ANSI version although the apps were UNICODE apps.
Greetings
Covean
|
|
|
|
|
I'm sorry, in my code ,the Class Name write error.
thank you very much !
Best Regurads !
|
|
|
|
|
hi all..
Is it possible to add bullets in each line of an editbox which is using CEdit class for display of text..
thanks in advance.. hav a gr8 day
|
|
|
|
|
May be a richeditcontrol will help you. Read this[^]
|
|
|
|
|
Hi Madhu..
Thanku so much for the quick reply...
i tried out the CAutoRichEditCtrl.. its workin perfectly...
i have one more doubt.. if i change my editbox to RichEditbox will that effect the CEdit variable.. wid that variable im doing a lot of stuff. saving ,opening of file, font selection etc...
plz let me know...
|
|
|
|
|
sonualex wrote: if i change my editbox to RichEditbox will that effect the CEdit variable..
I think yes, but please have a try.
|
|
|
|
|
help, i would like to know what was ARRAY is!!
please clarify!! thank you
|
|
|
|
|
Please go through this[^]
|
|
|
|
|
thank you so much!!!!
do you know some site for array using c language, not c++??
|
|
|
|
|
cool_joy2 wrote: do you know some site for array using c language, not c++??
Am not sure whether this may ruin you ; please click do a click here[^]
As suggested by the other posts, please consider reading some basic article/books in C or C++
|
|
|
|
|
no.. it doesn't ruin me!!
what you try to figure out is to search it in google right???
yah!! i know how to do it!!!
what i'm just asking for, whether you know some site which is in C not in C++ language discussion!!!
get it????
|
|
|
|
|
Please read more books on basics of programming as well as C.
Please do that first.
Величие не Бога может быть недооценена.
|
|
|
|
|
cool_joy2 wrote: help, i would like to know what was ARRAY is!!
Can you not use a dictionary? It's not even a programming-specific term.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
Can I pass a string with some %s in it as first parameter in printf/sprintf.
something like bellow
char str[16]="my name is %s";
char name[8]="xman";
char res[24];
sprintf(res,str,xman);
printf("%s",res);
can we achieve this?
Saadhinchaali
|
|
|
|
|
|
thank you David. It solved my problem
Saadhinchaali
|
|
|
|
|
Don't have access to a PC right now ?
|
|
|
|
|
of course
You know some birds are not meant to be caged, their feathers are just too bright.
|
|
|
|
|
sprintf(res,str,xman);
here xman is undeclared identifier..
|
|
|
|
|
suthakar56 wrote: here xman is undeclared identifier..
What do you expect? You did not declare that variable.
|
|
|
|