Open workspace by VC6 IDE, RC is not loaded and RCF and RCF are display as a file name in workspace but empty，why？how should I do for doing this work well。
Change macro definition as below,result is same
What are you trying to achieve by doing this? ...I don't remember having to edit this file directly ever, you should be able to make any changes regarding project files and compilation changes from the IDE.
Hi. Help me, please! Why this class doesn't work for Subtraction, Division and Square Root. When I try to get results for Subtraction, it output right answer, but with any trash. And When I try to get answer for Division and Square Root, it just brakes and don't output anything. For Addition and Multiplication class work correctly. Thank U very mush, if you will help me.
Its the link to this class
Typically for questions regarding a specific article, you'd want to ask those in the specific article page (see the large "Add Comment or Question" button in the bottom of the article?). Also, your question isn't all that clear, so see if you can rephrase and make it more clear.
As Albert said, the best place to ask such a question is as a comment to the article.
Anyway, it's impossible to offer any help if you don't at least provide the code that does not work. That means your code.
By the way you should really read and follow the instructions given in "How to ask a question" which you can find at the top of this forum. That will greatly increase your chances of getting a relevant answer.
SetupDiGetDeviceRegistryProperty API suppose returns required buffer size for "Property" beeing inquired about. It does but it also returns variety of errors. ( invalid data, data "too short" - whatever that means )
The function never returns true when with parameters are set to return buffer size. Is that normal?
For example if I inqiure about SPDRP_FRIENDLYNAME the buffer size returned is 0.
Here is my code, keep in mind it is a test code! I have aslo included partial MS function desription.
PropertyBuffer [out, optional] A pointer to a buffer that receives the property that is being retrieved. If this parameter is set to NULL, and PropertyBufferSize is also set to zero, the function returns the required size for the buffer in RequiredSize. PropertyBufferSize [in] The size, in bytes, of the PropertyBuffer buffer. RequiredSize [out, optional] A pointer to a variable of type DWORD that receives the required size, in bytes, of the PropertyBuffer buffer that is required to hold the data for the requested property. This parameter is optional and can be NULL. Return value SetupDiGetDeviceRegistryProperty returns TRUE if the call was successful. Otherwise, it returns FALSE and the logged error can be retrieved by making a call to GetLastError. SetupDiGetDeviceRegistryProperty returns the ERROR_INVALID_DATA error code if the requested property does not exist for a device or if the property data is not valid.
Last Visit: 31-Dec-99 18:00 Last Update: 21-Dec-13 10:37