|
Hi..
i tried to use CFileFind class to copy files from other machine in the same my workgroup (no authentication required) by using the following code for ex:
CFielFind finder;
finder.FindFile("\\xx\yy");
put it does not work so i would like to know if the way i call the folder path is wrong or is their an other suggestions
|
|
|
|
|
You are remembering that a backslash needs to be escaped by a backslash, aren't you..
eg
finder.FindFile("\\\\xx\\yy\\*.*");
Steve S
|
|
|
|
|
|
rasha2003 wrote:
i tried to use CFileFind class to copy files...
Hopefully you are using CFileFind to find the file(s) you want to copy. Otherwise, Steve has most likely solved your problem.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I want to create dynamic DataGrid using datagrid.h class.
Help me please how to do it with a fragment of example.
Thanks in advance,
bilas.
|
|
|
|
|
hi
i used ie head files to make dximagetransform. And i included related head files. but the compile errors appeared:
e:\internet explorer 6sp1 header and library files\include\dxatlpb.h(298) : error C2668: 'InlineIsEqualGUID' : ambiguous call to overloaded function
e:\internet explorer 6sp1 header and library files\include\dxatlpb.h(308) : error C2668: 'InlineIsEqualGUID' : ambiguous call to overloaded function
e:\internet explorer 6sp1 header and library files\include\dxatlpb.h(313) : error C2668: 'InlineIsEqualGUID' : ambiguous call to overloaded function
what's wrong?
thanks.
|
|
|
|
|
It simply means that the specified overloaded function call could not be resolved. How are you calling InlineIsEqualGUID() ?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I included internet Explorer head files without any my codes. when i compiled, the problem had been appeared.
|
|
|
|
|
Simply including a header file should not cause this sort of compiler error. If you remove the aforementioned header file(s) from the project, does the compiler error go away?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
off course, unincluding the head file,dxatlpb.h, can remove the error.
i use the latest platform sdk and internet explorer head.
Can you help me?and in terms of the guid of msdn i compile the project.
http://msdn.microsoft.com/workshop/browser/filter/howto/implementingproceduralsurfaces.asp?frame=true
thanks
|
|
|
|
|
When #include <dxatlpb.h> is removed, what compiler errors are generated?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
hi
if i remove the #include, no errors are appeared.
Can you try to text the project following the cuid
http://msdn.microsoft.com/workshop/browser/filter/howto/implementingproceduralsurfaces.asp?frame=true
|
|
|
|
|
jackalwisdom wrote:
if i remove the #include, no errors are appeared.
Ok, so if you do not need it, why include it?
jackalwisdom wrote:
Can you try to text the project following the cuid
I would, but not having the DirectX SDK installed makes it somewhat difficult!
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
According to the KB (PSS ID Number: 243298):
CAUSE
The problem occurs because the function InlineIsEqualGUID() is defined both in the ATL header file, AtlBase.h, and the Platform SDK header file, Guiddef.h, in different name spaces. The include paths for the build point first to the Platform SDK include directory, and then to the ATL include directory. In the ATL header, InlineIsEqualGUID() is defined in a name space called "ATL", while in the Platform SDK header it is defined in the global name space. Because AtlBase.h includes the statement
using namespace ATL;
the compiler is unable to distinguish which definition to use.
RESOLUTION
To work around this problem, prefix the call to the InlineIsEqualGUID() function with ::ATL::. This explicitly qualifies the ATL namespace from where the implementation of InlineIsEqualGUID is pulled in. For example:
::ATL::InlineIsEqualGUID()
Ian Darling
"The different versions of the UN*X brand operating system are numbered in a logical sequence: 5, 6, 7, 2, 2.9, 3, 4.0, III, 4.1, V, 4.2, V.2, and 4.3" - Alan Filipski
|
|
|
|
|
hi,
thanks for your reply. But i included these head file in internet explorer head files, dxatlpb.h, without any my codes. How to solve the problem.
|
|
|
|
|
Hello
I have been doing a lot of reading lately on how to play a video from C++ using different methods such DX9 VRM and DirectShow.
I am trying to play a video and read the time from it. However I cannot see anyway in which I can do this. I was wandering if any of you coule maybe help. I cant find any samples or anything in MSDN for some that I would thought would maybe be straight forward.
At the current moment I am just using shell extensions to load the video from C++ but this doesnt allow the time to be read.
Thankyou kindly for any help
Riy
|
|
|
|
|
I'm trying to capture the ENTER key on a CEdit Control with the OnKeyDown() function, but it seems that it is not capturing the ENTER key. All the other keys are being captured as it should. i'm using my own edit control, derived from CEdit class.
Any tip ?
Thanks.
|
|
|
|
|
You can catch the ENTER key in your own edit control class in PreTranslateMessage:
BOOL MyClass::PreTranslateMessage(MSG* pMsg)
{
if(pMsg->message == WM_KEYDOWN && pMsg->wParam == VK_RETURN)
{
DoAnything();
or
// pMsg->wParam=0;
}
return CDialog::PreTranslateMessage(pMsg);
}
Student
|
|
|
|
|
Are you using the ES_WANTRETURN style?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hello!
I have written an object to CArchive . My object consists of a CString and an integer. I gave up using the CArchive::WriteString() and CArchive::ReadString() functions as it seems CArchive can only handle simple types. So I write my object like this:
nLength = myStr.GetLength();
(*pArchive) << nLength;
pArchive->Write(myStr.GetBuffer(nLength), nLength);
To read back my object is not as easy as I think it should be:
CString tmpStr, myStr;
(*pArchive) >> nLength;
tmpStr.Empty();
pArchive->Read(tmpStr.GetBuffer(nLength), nLength);
myStr.Format("%s", tmpStr);
tmpStr.ReleaseBuffer();
Can anyone suggest an easier way? Thank you
|
|
|
|
|
Because CArchive knows how to stream to/from a CString , you can just use the >> and << operators.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
Thank you Ravi.
I thought this was how CArchive would work at first too but I had problems and I now think my code was wrong elsewhere because now I fixed other problems as well and I tried what you suggested again and it works OK now.
I also had tried the WriteString() and ReadString() functions but I had problems with them also.
|
|
|
|
|
Glad you're up and running! Check out this[^] article if you'd like to know more about serialization.
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
I am looking for a tool to aid our development and QA team find memory leaks. Right now we use Perfmon to monitor Private Bytes of application but we are ready to invest in a more advanced tool. Can anyone suggest some tools for me to research?
Environment is VC6 on W2k and higher. Applications range from services to GUI apps. We use STL, MFC and other 3rd Party libraries.
Thanks!
|
|
|
|
|
Commerical?
Check this out: Compuware Boundschecker
Rickard Andersson
Here is my card, contact me later!
UIN: 50302279
Sonork: 37318
|
|
|
|