|
Hi!!
I think my question is not clear..Ok looks once again..
I have dialogue box and it contain name of the section and path of the section..like..
Webdocu section Path of the section
DEMO70E D:\Progsample\ProdV70E\ProdMast\
DEMO70D C:\project\webdoku\
SAMPLE D:\Prog. sample\ProdV70E\WebDoku\
DEMO80D E:\blabla\webdoku\
DEMO60E D:\Progsample\WebDoku\
WT1 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
WT2 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
Each section having own "wg_ll.txt" file..
for exapmple...If i will seclect DEMO70E then it will open WG_LL.txt file of that section (DEMO70E)...
Can u tell me how i can find WG_LL.txt file??..I know its somewhere D:\Progsample\ProdV70E\ProdMast\ in this path but dont know exact location.I also want path of that file.
So how can i find wg_LL.txt file with path for selected section..??
Shah Satish
|
|
|
|
|
I'm usually pretty good at deciphering, but you're still not making any sense. On more than one occasion, you stated things like, "I know the file ZZZ is in the XXX folder. I want to search that folder for file ZZZ." Why? If you already know that a file exists in a given folder, there's nothing to search, and no need to check if the file exists. Do you see why this is so confusing? You are asking for something that is completely unnecessary, or you are not asking for what you really want. In any case, we know nothing of things like "dialogue box and it contain name of the section and path of the section," "Webdocu section Path of the section," and "DEMO70E." Those are relevant only to you.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi!!!
thanks for your reply..One more question please..
I have dialogue box and it contain name of the section and path of the section..like..
" Webdocu section " " Path of the section "
DEMO70E D:\Progsample\ProdV70E\ProdMast\
DEMO70D C:\project\webdoku\
SAMPLE D:\Prog. sample\ProdV70E\WebDoku\
DEMO80D E:\blabla\webdoku\
DEMO60E D:\Progsample\WebDoku\
WT1 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
WT2 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
Each section having own "wg_ll.txt" file..
for exapmple...If i will seclect DEMO70E then it will open WG_LL.txt file of that section (DEMO70E)...
Can u tell me how i can find WG_LL.txt file??..I know its somewhere D:\Progsample\ProdV70E\ProdMast\ in this path but dont know exact location.I also want path of that file.
So how can i find wg_LL.txt file with path for selected section..??
Shah Satish
|
|
|
|
|
Honestly, I didn't understand your query. But from the subject of your query, just check if
PathFileExists() would be useful to you.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Hi!!
thanks fro your reply..
In short, I want to search file called "WG_LL.txt" from specified path..
see my code...
if i select DEMO70E then specified path is
D:\progrsample\prodv70E\prodmast...
so i want to search that file in this directory..(D:\progrsample\prodv70E\prodmast...)
Thank you..
Shah Satish
|
|
|
|
|
Shah Satish wrote: In short, I want to search file called "WG_LL.txt" from specified path..
Use the
PathFileExists()</code> function. Click here[^] to read about this function on msdn (with example)
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
but in my case, I have to search a file from the path..
in your example...path is fixed..like " C:\\TEST\\file.txt" but in my case first of all ,it will search in test folder and then if it will found then return path of the file..
Shah Satish.
|
|
|
|
|
In that case, check out WhiteSky's answer. That would be helpful for you.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
brahmma wrote:
PathFileExists()
it's only determine that file exits on specified path or not!... you have RECURSIVE use CFileFind class
<div class='ForumSig'>"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you </div>
|
|
|
|
|
ThatsAlok wrote: brahmma wrote:
PathFileExists()
it's only determine that file exits on specified path or not!... you have RECURSIVE use CFileFind class
Thanks, I know it.
See this[^] post of that guy. He specified a file name and then a path too! That's the reason for me to have suggested him this particular function.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Hi!!!
thanks for your reply..One more question please..
I have dialogue box and it contain name of the section and path of the section..like..
" Webdocu section " " Path of the section "DEMO70E D:\Progsample\ProdV70E\ProdMast\
DEMO70D C:\project\webdoku\
SAMPLE D:\Prog. sample\ProdV70E\WebDoku\
DEMO80D E:\blabla\webdoku\
DEMO60E D:\Progsample\WebDoku\
WT1 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
WT2 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
Each section having own "wg_ll.txt" file..
for exapmple...If i will seclect DEMO70E then it will open WG_LL.txt file of that section (DEMO70E)...
Can u tell me how i can find WG_LL.txt file??..I know its somewhere D:\Progsample\ProdV70E\ProdMast\ in this path but dont know exact location.I also want path of that file.
So how can i find wg_LL.txt file with path for selected section..??
Shah Satish
shah Satish
|
|
|
|
|
I really don't understand your question man.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
Hi!!!
thanks for your reply..One more question please..
I have dialogue box and it contain name of the section and path of the section..like..
" Webdocu section " " Path of the section "
DEMO70E D:\Progsample\ProdV70E\ProdMast\
DEMO70D C:\project\webdoku\
SAMPLE D:\Prog. sample\ProdV70E\WebDoku\
DEMO80D E:\blabla\webdoku\
DEMO60E D:\Progsample\WebDoku\
WT1 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
WT2 \\rekafs\Projekte_USB\myfolder\9_WebDoku\
Each section having own "wg_ll.txt" file..
for exapmple...If i will seclect DEMO70E then it will open WG_LL.txt file of that section (DEMO70E)...
Can u tell me how i can find WG_LL.txt file??..I know its somewhere D:\Progsample\ProdV70E\ProdMast\ in this path but dont know exact location.I also want path of that file.
So how can i find wg_LL.txt file with path for selected section..??
Shah Satish
Shah Satish
|
|
|
|
|
I want to use GDI+ in my VC 67 application,
i am not getting how to use it pls tell me if anyone can.
where shall get these gdiplus.lib.
Thank you.
There Is Nothing Right & Wrong
|
|
|
|
|
If you want to work with GDI+ we have many examples on codeproject and also I think you can see articles of Mr Christian Graus about it.
|
|
|
|
|
Thank you.
i went thro that but still i am unable to download the gdiplus.lib file and required .h files..
Thank you.
There Is Nothing Right & Wrong
|
|
|
|
|
Thank you..
I got it!!!!!!!!!!!!
There Is Nothing Right & Wrong
|
|
|
|
|
Hi can anyone please help me .... i want to Copy the BitBlt new Dimensioned bitmap tp a CBitmap or HBITMAP object , can anyone told me howw... the code is given and tell me how can i do plz :
CPaintDC dc( this ); // Device context for painting
CBitmap bmp, *poldbmp;
CDC memdc;
// Load the bitmap from Computer (orignal res is 400x 200 )
bmp.DeleteObject();
bmp.Attach(::LoadImage(AfxGetInstanceHandle(),_T("D:\\test.bmp"),IMAGE_BITMAP,0,0, LR_LOADFROMFILE));
// Create a compatible memory DC
memdc.CreateCompatibleDC( &dc );
// Select the bitmap into the DC
poldbmp = memdc.SelectObject( &bmp );
// Copy (BitBlt) bitmap from memory DC to screen DC
dc.BitBlt( 0, 0, 57, 75, &memdc, 0, 0, SRCCOPY );
memdc.SelectObject( poldbmp );
now problem is i want that new DIMENSIONED BITMAP to copy in the CBimap or HBITMAP object . plz plz plzz help me on this .
Thanx ...
|
|
|
|
|
Can you more explain what problems?you can also use of StretchBlt
|
|
|
|
|
look after using this code i show in my prob , i can draw the new dimensioned bitmap on the dialog , like i want to draw the 20x20 res. part of the image on the dialog . but i want the 20x20 res. part of image to transfer in the CBitmap or HBITMAP objectt.. thtz wht i want..or can u please tell me how can i do in other way...to get a difined dimensions of bitmap into a CBitap or HBITMA object.
|
|
|
|
|
You want draw a 20x20 of your image and save this section to a new bmp file,right?
|
|
|
|
|
yes , i want to draw a 20x20 part of 200x200 image and save it to another CBitmap or HBITMAP object , sumthing like i want to Crop the Image/.
|
|
|
|
|
I was tring to this.
You can create a dc bitmap then load your image with this dc,now you have your image on dc next step you want to split this image so create a another dc and bitmap(20x20) you must use of BitBlt for draw on the another dc.BitBlt(this hdc is second dc that you created for split,......,this dc has your image)
Now you have a bitmap(20x20) on second dc that it has bitmap then you can attach this handle to CImage class and save to a file(bmp/jpg...)
|
|
|
|
|
hi i am new to c++ programming.can some one help me in writing to code that will read hex values from the user and convert it into corresponding binary value and display it.
Thanks for ur help and time in advance
|
|
|
|
|
feroz20 wrote: hi i am new to c++ programming.can some one help me in writing to code that will read hex values from the user and convert it into corresponding binary value and display it.
Have you tried something.. many programmer here are MEMBER of SAY NO TO HOMEWORK brigade
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|