|
hai whitesky
thanks for ur help
i got it
|
|
|
|
|
I recomend you to use Davide Calabro's CFileDialogST[^] - very good for folder selection!
|
|
|
|
|
hai to all
i have written the code like this for getting a directory selcted
and display the path of the selected directory.
i was able to select the directory but it is not opening the directory. And the path is not displayed in the edit box which i have specified.
here it is:
static char BASED_CODE szFilter[] = "Directory Files (*.dir) | *.dir ||";
//create the file open dialog
CFileDialog m_ldFile(TRUE, ".dir",m_sResults,OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT, szFilter);
//Show the file open dialog and capture result
if(m_ldFile.DoModal()==IDOK)
{
m_sResults=m_ldFile.GetFolderPath();
//Update the Dialog
UpdateData(FALSE);
}
so anyone of u help to get out of this.
|
|
|
|
|
keerthikaaa wrote: static char BASED_CODE szFilter[] = "Directory Files (*.dir) | *.dir ||"
Have you got a special file type that has a ".dir" extension? File-system directories don't end in ".dir" normally. By specifying this filter, you'll only allow files that end in ".dir" to be shown in the list control.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Is there any way to read the outlook pst files using VC++...Any API?
nave
|
|
|
|
|
|
Thanks in advance,
Sarvan AL
|
|
|
|
|
|
If you mean the close button in the title bar, there is no close button object.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
Your question doesn't seem too clear.
But as I figure this out you want the close button on the dialog
So you can use the OnClose event and then do all the functioning over there
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
-- modified at 2:36 Tuesday 11th April, 2006
|
|
|
|
|
Hi all,
Sorry for my unclear question.
I'd like to have a child window without minimize, maximize and close button. But it should have window icon.
Hope I am clear now.
Thanks once again,
Sarvan AL
|
|
|
|
|
You can only remove the close button by removing the WS_SYSMENU style from the window. However, this also removes the system menu (and therefore the window icon).
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
how to decrypt an encrypted file using blowfish
|
|
|
|
|
|
|
i have got 85 users i have to store their login details in a file in the encrypted format each time the user selects the save button after providing the details i will be storing into the file in the following way
fpa=fopen(strFilename,"a");
file.open (strFilename);
str="URL="+data1+st+"USERNAME="+user+str1+"PASSWORD="+pwd;
pszDataIn4= new char[str.GetLength ()+1];
strcpy(pszDataIn4, str);
memset(szDataIn4, 0, 96);
memset(szDataOut4, 0, 96);
strcpy(szDataIn4, pszDataIn4);
iBlowFish.Encrypt((unsigned char*)szDataIn4,(unsigned char*)szDataOut4, 96, CBlowFish::ECB);
fputs(szDataOut4,fpa);
fputs("\n",fpa);
this will be done when user cliks on save button each time ;
now i need to decrypt it and show the corresponding details when the user cliks on the particular the next time
i have tried it by reading the whole file and then decryypt it but its not reading the encrypted file
-- modified at 5:32 Tuesday 11th April, 2006
|
|
|
|
|
Hi,
i have new button on sigle click i want a dialog window to open i have declared variables as follows..
can anyone help to solve this problem..??
UpdateDlg.h
#include "StatusDlg.h" // Added by ClassView
#include "CreateDlg.h" // Added by ClassView
private:
CStatusDlg m_dStatusDlg;
class CCreateDlg;
//Then declare a pointer:
CCreateDlg *m_dCreateDlg;
---------------------
// UpdateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DesktopSearch.h"
#include "StatusDlg.h"
#include "CreateDlg.h"
#include "UpdateDlg.h"
#include "FoldersDialog.h"
void CUpdateDlg::OnNew()
{
// TODO: Add your control notification handler code here
m_dCreateDlg.DoModal();
}
---------------------------------------------------------------
--------------------Configuration: DesktopSearch - Win32 Debug--------------------
Compiling...
UpdateDlg.cpp
D:\Parichay\DesktopSearch\DesktopSearch\UpdateDlg.cpp(182) : error C2228: left of '.DoModal' must have class/struct/union type
Error executing cl.exe.
DesktopSearch.exe - 1 error(s), 0 warning(s)
|
|
|
|
|
parichaybp wrote: m_dCreateDlg.DoModal();
m_dCreateDlg->DoModal();
Nibu thomas
Software Developer
|
|
|
|
|
Hi,
i added the same code m_dCreateDlg->DoModal(); but i am still getting error.
------------------------------------------------------------------
--------------------Configuration: DesktopSearch - Win32 Debug--------------------
Compiling...
UpdateDlg.cpp
D:\Parichay\DesktopSearch\DesktopSearch\UpdateDlg.cpp(184) : error C2027: use of undefined type 'CCreateDlg'
d:\parichay\desktopsearch\desktopsearch\updatedlg.h(58) : see declaration of 'CCreateDlg'
D:\Parichay\DesktopSearch\DesktopSearch\UpdateDlg.cpp(184) : error C2227: left of '->DoModal' must point to class/struct/union
Error executing cl.exe.
DesktopSearch.exe - 2 error(s), 0 warning(s)
|
|
|
|
|
parichaybp wrote: i added the same code m_dCreateDlg->DoModal(); but i am still getting error.
You haven't included the header file...
Nibu thomas
Software Developer
|
|
|
|
|
I have included the header file in both the files
UpdateDlg.h
#include "StatusDlg.h" // Added by ClassView
#include "CreateDlg.h" // Added by ClassView
// UpdateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DesktopSearch.h"
#include "StatusDlg.h"
#include "CreateDlg.h"
#include "UpdateDlg.h"
#include "FoldersDialog.h"
|
|
|
|
|
parichaybp wrote: I have included the header file in both the files
Why? Including in the header file is enough!
Nibu thomas
Software Developer
|
|
|
|
|
what is the error?? how to fix the error ?? can u plz tell me..
|
|
|
|
|
Whats type CCreateDlg?
and (you wrote)CCreateDlg *m_dCreateDlg; then you should use m_dCreateDlg->DoModal(); m_dCreateDlg.DoModal();
|
|
|
|
|
Hi white sky,
the problem is i have new button in Update dialog window when i click on new button i have to open create dialog window ..
so for that i declared CCreateDlg *m_dCreateDlg; member
can u plz help me solve this error
-----------
UpdateDlg.h
#include "StatusDlg.h" // Added by ClassView
#include "CreateDlg.h" // Added by ClassView
private:
CStatusDlg m_dStatusDlg;
class CCreateDlg;
//Then declare a pointer:
CCreateDlg *m_dCreateDlg;
---------------------------------------
--------------------
// UpdateDlg.cpp : implementation file
//
#include "stdafx.h"
#include "DesktopSearch.h"
#include "StatusDlg.h"
#include "CreateDlg.h"
#include "UpdateDlg.h"
#include "FoldersDialog.h"
void CUpdateDlg::OnNew()
{
// TODO: Add your control notification handler code here
m_dCreateDlg->DoModal();
}
---------------------------------------------------------------
--------------------Configuration: DesktopSearch - Win32 Debug--------------------
Compiling...
UpdateDlg.cpp
D:\Parichay\DesktopSearch\UpdateDlg.cpp(184) : error C2027: use of undefined type 'CCreateDlg'
d:\parichay\desktopsearch\updatedlg.h(58) : see declaration of 'CCreateDlg'
D:\Parichay\DesktopSearch\UpdateDlg.cpp(184) : error C2227: left of '->DoModal' must point to class/struct/union
Error executing cl.exe.
DesktopSearch.exe - 2 error(s), 0 warning(s)
-- modified at 3:33 Tuesday 11th April, 2006
|
|
|
|