|
your getting theproblem because you place the DDX_... command within the //AFX_DATA comment blocks. These are the lines that class-wizard will parse during the load phase. If you move the line outside of the comment block, then class-wizard will be happy.
|
|
|
|
|
|
hi there
does anyone know how can i log the activity of the file system?
i need to know when a file opens and store the name in a database
thank in advance for your help
|
|
|
|
|
see links..
http://www.codeproject.com/file/
i hope you see what you want there is lots of stuff like the one you are looking for. I think there is an article about how to write log files?
hope it does the work..
cheers..
Himanshu
|
|
|
|
|
|
thanks Dominik
i found this application and I look at it before posting the request
the problem with that ona is that i receive a lot of events on file system wich is not needed
where can i find some explanation about 'request' column from the GUI ListView?
i only need some events of create file, delete file, modify file not such like: FSCTL_IS_VOLUME_MOUNTED
thanks in advance for your help
|
|
|
|
|
MSDN key words : "Change notification", FindFirstChangeNotification, FindNextChangeNotification
MSDN article : "Monitoring Changes in a Directory or Directory Tree"
|
|
|
|
|
Can anyone explain me somethings about the COMMTIMEOUTS struct of the SetCommTimeouts API function?
When I set the ReadIntervalTimeout member to MAXDWORD and the ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant to 0 the ReadFile operation doesn't wait. Is that right?
And what's with the Write... members? When I write 0 to this members, the timeouts will be ignored and the WriteFile function doesn't wait. Is that also right?
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Yes, that's right.
Quoted from MSDN:
"A value of MAXDWORD, combined with zero values for both the ReadTotalTimeoutConstant and ReadTotalTimeoutMultiplier members, specifies that the read operation is to return immediately with the characters that have already been received, even if no characters have been received."
"A value of zero for both the WriteTotalTimeoutMultiplier and WriteTotalTimeoutConstant members indicates that total time-outs are not used for write operations."
Maybe you should read a little bit, eh?
Cheers,
Fredrik
"Felix qui potuit rerum cognoscere causas."
|
|
|
|
|
I am doing sometimes a little bit of serial communications. You have to read a BIG bit and test, test, test ... til u drop
Try this @ home. (B&B)
|
|
|
|
|
I have been looking for bar, line, and pie chart/graph in c++ that I can add to my project. I do not mind paying a reasonable fee, but everything I have seen is for .Net. I need c++ that can be used in my projects. Any leads?
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
|
Thank you for your efforts, unfortunately I have seen all of those with no luck. I am now searching the internet for commercial graphs. Thank you.
"Best file compression around: DEL *.* = 100% compression."
<><><><><><><><><><><><><>
Matthew R. Miller
mattrmiller@computersmarts.net
www.computersmarts.net
|
|
|
|
|
|
I have the following sample code in a DLL:
#define DllExport __declspec( dllexport )
#include <vector>
class DllExport Archive
{
protected:
std::vector<void*> m_vPointerStored;
};
and get the following warning:
d:\libs\saiggeneric\test.h(11) : warning C4251: 'm_vPointerStored' : class 'std::vector<void *,class std::allocator<void *> >' needs to have dll-interface to be used by clients of class 'Archive'
It only seems to be a problem with STL members.
My understanding is that using __declspec( dllexport ) for a class makes the class and everything in it exportable. I'm trying to build a straight C++ DLL, not an MFC Extension DLL. I don't know if this has anything to do with the problem. Help!!!!
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
|
Thanks, that's exactly what I needed to know. I had searched around the MS Web site, but didn't find this.
Neville Franks, Author of ED for Windows. www.getsoft.com
Make money with our new Affilate program
|
|
|
|
|
dear all,
how can i display value of variables of sdk datatypes like DWORD, LPTSTR... in a message box
thanx
|
|
|
|
|
convert into string first then you can display anything!!!!! as far as i know..
cheers..
Himanshu
|
|
|
|
|
I want to manipulate the camera (connected to my computer) such as capturing video stream for cam chat, or video conferencing for further... So that I must know how to use, to control,... the camera throught the camera's driver. Please show me the way to start.
Thanks in advance !
aTpnT
|
|
|
|
|
There are examples for this in the DirectX SDK (amongst the DirectShow examples)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
I think your reply is so useful to me. Thanks so much, 'benjymous'!
aTpnT
|
|
|
|
|
Hi All,
I would like to initialize a char array to hold a path retrieved from a registry key. If I used _MAXPATH constant from stdlib.h like this .... TCHAR MyPath[_MAXPATH], would this ensure that the array will be large enough? Even on 98, XP, NT?
Thanks
Paul
|
|
|
|
|
Never trust your inputs, especially when the source is the registry. Any user could go change your data to something longer than MAX_PATH , which would overrun your buffer, and we all know that only leads to Bad Things.
Call RegQueryValueEx() with NULL and 0 as the buffer and size respectively, and you'll get back the exact size of the value in bytes. Alloc a buffer of that size, and you'll always have a big-enough buffer. Check the type as well, make sure it's REG_SZ like you expect.
--Mike--
I'm bored... Episode I bored.
1ClickPicGrabber - Grab & organize pictures from your favorite web pages, with 1 click!
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Thanks Mike,
I knew there had to be a way.;)
Paul
|
|
|
|