|
Source[aq] looks right.Problem is that it's is copy File also as a directory.So Plz tell me how can solve it.
Plz help me
|
|
|
|
|
Sorry i didn't get you. What do you mean by "File also as a directory" ??
|
|
|
|
|
Ok If i copy this one Source ="C:\test\dump.txt" And destination=D:\.Then copy like this
Out put is
D:\test
D:\dump.txt(Showing like Folder and it's data not Copied).
But i want to copied like this
D:\test\dump.txt
Plz help me
|
|
|
|
|
Sorry My bad.
The source folder to be specifed like "c:\\test\0" ( Previously I said you should specify like "c:\\test\\*\0". This is not needed and that was the problem )
|
|
|
|
|
Sir i am useing this code
CString Destination= _T("C:\\Test\\");
Destination+= PathFindFileName(source[aq]);
Destination+="\\0";
And not working for file copy.it's working for folder copy.It's make a also Folder with name of "0".
Plz help me
|
|
|
|
|
TeVc++ wrote: Destination+="\\0";
only 1 slash is necessry( it is null character \0 )
Destination+="\\0";
Destination+="\0";
|
|
|
|
|
I use this one
Destination+="\0"; But nothing chnage in out put.
Plz help me
|
|
|
|
|
You shouldn't need to use the escape character for back-slashes within a string, should you?
I'm fairly certain it works without them.
CString Destination= _T("C:\\Test\\");<br />
Destination+= PathFindFileName(source[aq]);<br />
Destination+="\\0";
CString Destination= _T("C:\Test\");<br />
Destination+= PathFindFileName(source[aq]);<br />
Destination+="\0";
try that.
|
|
|
|
|
it's not working.Geting error newline
|
|
|
|
|
Can you put a watch on your Destination string and tell us what that's filled with afterwards?
|
|
|
|
|
How do I pass MySQL connection ID to COM using VC++ 9.0?
At the moment I have to pass the host, username, pwd, and db name to the COM but make a new connnection there. I want to pass the connection ID but I am unable to shoehorn a variable of type MYSQL into an acceptable parameter.
GER
Ger
|
|
|
|
|
Hi all..
I need to get the Exchange server User security permission using c++
spcially the RECEIVE AS and SEND AS permission
can anyone help me..
thank you
|
|
|
|
|
I recently discovered MFC support for winforms, and have been using it to host .Net Controls in my MFC activeX controls. This all worked beautifully, until recently when we started getting an assertion from msilexit.cpp during shutdown of the hosting application. The assertion is due to a user breakpoint, which originates from the __clrcall _exit_callback function.
extern "C" void __clrcall _exit_callback(void)
{
...
if ( *__onexitend != NULL )
(**__onexitend)();
...
}
Here are the facts that I have been able to collect.
1. There are no exceptions generated after you dismiss the assertion.
2. The application seems to have no problems in release.
3. There seems to be a correlation between the assertion and the number of "clr enabled" activeX libraries that have been loaded into memory. The magic number seems to be three. If you only load two "clr enabled" activeX's during the application lifetime, no assertion.
My output window, when the assertion occurs, looks like this:
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRGUIControls.ocx'
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRGUIPanelWatch.ocx'
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRServiceLoggerPanel.ocx'
'VRExplorer.exe': Unloaded 'F:\VirtualRack\Trunk\Source\BuiltComponents\Debug\VRSystem\VRBitmaps.ocx'
The thread 0x11d4 has exited with code 0 (0x0).
The thread 0x16ec has exited with code 0 (0x0).
The thread 0x230 has exited with code 0 (0x0).
The thread 0x11bc has exited with code 0 (0x0).
VRExplorer.exe has triggered a breakpoint
Thanks for your help,
Aaron
|
|
|
|
|
Hi all...
i Just want to read and excel file data and need to send the data in to an combo box ...can anyone suggest me the solution??
thanks and Regards
Ganesh.P
|
|
|
|
|
|
|
CPallini wrote: Forum:Visual C++ / MFC
Subject:Repost.
Sender:CPallini
Date:Tuesday, September 30, 2008 2:59 PM
http://www.codeproject.com/script/Forums/View.aspx?fid=1647&msg=2743474[^].
Spying haan!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|
|
if (!m_nwSplitter.CreateStatic (this, 1, 2)||
!m_nwSplitter.CreateView (0, 0, RUNTIME_CLASS (CNetworkTree),CSize (220,0), pContext))
{
return FALSE;
}
if (!m_nwSplitter2.CreateStatic(&m_nwSplitter, 3, 1,WS_CHILD | WS_VISIBLE| WS_BORDER,m_nwSplitter.IdFromRowCol(0, 1))||
!m_nwSplitter2.CreateView(0,0,RUNTIME_CLASS(CNetworkVwList),CSize(0,200), pContext)||
!m_nwSplitter2.CreateView(1,0,RUNTIME_CLASS(CSWPlanView),CSize(0,200), pContext)||
!m_nwSplitter2.CreateView(2,0,RUNTIME_CLASS(CTaskListView),CSize(0,0), pContext))
{
return FALSE;
}
before the code was like
CView * pane2 = (CView *)pNwViews>GetPane(0,1);
now i want to show one view in right panel ie in m_nwSplitter2.CreateView(0,0,...)..other in m_nwSplitter2.CreateView(1,0,...)..
i wrote like CView * pane2 = (CView *)pNwViews>GetPane(0,0);
but its not working...
plz help me...
thanx in advance..
|
|
|
|
|
|
Hi,
I have used TryEnterCriticalSection for thread synchronisation, It throws error during compilation,though i have defined the macro _WIN32_WINNT as 0x400 .
Please tell whether i need to do something more.
Thnaks
krishnan.S
|
|
|
|
|
Which version of visual studio are you using? If you are using VS6, you have to install the SDK to get those declaretions.
|
|
|
|
|
Ya iam using VS6 and I have installed SDK too.
|
|
|
|
|
ok.
Have you integrated the platform SDK with the VS6?I mean the include folders, lib folders etc.
If already integrated, ensure the SDK include folder is placed first in that list.
I hope you have set the _WIN32_WINNT macro in the project settings itself.
Also open the winbase.h file and ensure the function exists in that file.
|
|
|
|
|
macro should set to _WIN32_WINNT=0x0502 if it windows xp or make it >0x400 in the project settings itself.
|
|
|
|
|
Just a suggesstion, please don't flame me for this post. why don't you dynamically load the dll and call funcition from it. atleast your program would be compiled!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/xml>
|
|
|
|