|
May I take this opportunity to introduce you a new cool tool?[^]
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
See here.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
HI,
i have a filedialog box, how to select mutiple files and to get the filenames in an array?
cud ne body help me out??
thnx in advance,
zari
|
|
|
|
|
|
can u send me the sample code
zari
|
|
|
|
|
zareee wrote: can u send me the sample code
No.
I think, that thread contains sufficient information to write one.
|
|
|
|
|
zareee wrote: can u send me the sample code
CFileDialog cfd(TRUE,NULL,NULL,OFN_ALLOWMULTISELECT,"Text Files (*.txt)|*.txt|Comma Separated Values(*.csv)|*.csv||");
cfd.m_ofn.lpstrTitle = "Multiple file selection";
if(cfd.DoModal()==IDOK)
{
POSITION pos;
pos = cfd.GetStartPosition();
while(pos)
MessageBox(cfd.GetNextPathName(pos));
}
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
If you search on codeproject you can see a lot of artciles about it anyway its not hard
|
|
|
|
|
hi developers,
i am working on security project in which i need to disable the drag and drop facility.
Any starting point or reference will be appreciated.
thanks.
vasant
Keep Walking .../\.....
|
|
|
|
|
Actually its very difficult to prevent drag and
vasant4c++ wrote: drag and drop in MFC
MFC? If it is a dialog based project then you don't need to do anything. If only you want to enable drag and drop support, you will have to do something.
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
if you work on a security project I think see here[^]
|
|
|
|
|
thank you for your reply,
sorry for incomplete information.
basically i have one temp file, which i dont want the user to copy that file. i have managed to disable copy and paste, but user is able to drag and drop that file.
thanks once again for reply.
-vasant
-- modified at 8:46 Wednesday 11th October, 2006
|
|
|
|
|
vasant4c++ wrote: basically i have one temp file, which i dont want the user to copy that file.
From where?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
from the windows temp folder.
and sorry for delay .
|
|
|
|
|
Iam developing a application where I have to generate reports in crystal reports-11.
Can someone help me ??
How do I connect to Cryatal Reports - 11.
If you can provide me with a small e.g.
Rahul
|
|
|
|
|
After building the my application i got error
like "Cannot execute program",
why this happend and how i recover from this one?
|
|
|
|
|
could you be more specific
|
|
|
|
|
I created one SDI application,
I created a splitter and split the sdi into 2 rows.
Then in the top view i put 4 button if click on each button,
respected view displayed in the bottom,
Then i build it. Now i tried to run the application, when i tried to run i am getting the Messagebox with matter "Cannot execute program".
|
|
|
|
|
are you sure the program you're trying to start is at the location you specified (does its file really exist) ?
|
|
|
|
|
ya am sure program is at the specified location
|
|
|
|
|
can you show the code by which you launch the application ?
|
|
|
|
|
BOOL CIFlappApp::InitInstance()<br />
{<br />
AfxEnableControlContainer();<br />
<br />
<br />
#ifdef _AFXDLL<br />
Enable3dControls();
#else<br />
Enable3dControlsStatic();
#endif<br />
<br />
<br />
SetRegistryKey(_T("Local AppWizard-Generated Applications"));<br />
<br />
LoadStdProfileSettings();
<br />
<br />
CSingleDocTemplate* pDocTemplate;<br />
pDocTemplate = new CSingleDocTemplate(<br />
IDR_MAINFRAME,<br />
RUNTIME_CLASS(CIFlappDoc),<br />
RUNTIME_CLASS(CMainFrame),
RUNTIME_CLASS(CIFlappView));<br />
AddDocTemplate(pDocTemplate);<br />
<br />
CCommandLineInfo cmdInfo;<br />
ParseCommandLine(cmdInfo);<br />
<br />
CSplash splash1(TEXT(".\\IFlapp.bmp"), RGB(128, 128, 128));<br />
<br />
splash1.ShowSplash();<br />
Sleep(1000);
<br />
<br />
splash1.CloseSplash(); <br />
<br />
<br />
m_pMsi = new CMsiInterface();<br />
m_pIFile = new CFileInterface();<br />
m_pIReg = new CRegInterface();<br />
<br />
char buffer[_MAX_PATH];<br />
::GetModuleFileName (NULL, buffer, _MAX_PATH);<br />
<br />
<br />
m_strAppPath = (CString(buffer).Left(CString(buffer).ReverseFind('\\')+1));<br />
m_strAppDrive = FindDrive(m_strAppPath);<br />
<br />
#ifdef _DEBUG<br />
#endif<br />
<br />
m_lAppCount = 0;<br />
CString strDrive = m_strAppDrive;<br />
strDrive += ":";<br />
CSecureUSB secUSB;<br />
secUSB.SetPath(strDrive);<br />
if(secUSB.InitWMI())<br />
{<br />
secUSB.ConnectWMI();<br />
secUSB.GenerateHash();<br />
}<br />
else<br />
{<br />
return FALSE;<br />
}<br />
<br />
if (!ProcessShellCommand(cmdInfo))<br />
return FALSE;<br />
<br />
m_pMainWnd->ShowWindow(SW_SHOW);<br />
m_pMainWnd->UpdateWindow();<br />
<br />
return TRUE;<br />
}
|
|
|
|
|
i just asked about a small light sample in which you call the application, not the whole stuff.
also, did you try to use the debugger and watch the content of some useful variables ?
ps, use the <pre></pre> tags when you have some code to post...
|
|
|
|
|
m_pMainWnd->ShowWindow(SW_SHOW);
m_pMainWnd->UpdateWindow();
|
|
|
|