WMI - Where is IWbemClassObject::GetObjectText's WBEM_FLAG_NO_SEPARATOR flag defined? - wmi

MSDN says there are 2 flags you can pass to IWbemClassObject::GetObjectText, WBEM_FLAG_NO_FLAVORS and WBEM_FLAG_NO_SEPARATOR.
But I can't seem to find where they are defined. I tried googling them, but I can only find that NO_FLAVORS is equal to 0x1. The only results for NO_SEPARATOR are the MSDN GetObjectText page (or verbatim copies on 3rd party sites). Does anyone know what it is?
http://msdn.microsoft.com/en-us/library/windows/desktop/aa391448(v=vs.85).aspx

I found this constant just doing a search in the win SDK, hope it helps.
WBEM_FLAG_NO_FLAVORS = 0x00000001
I didn't find the other, however.

Related

C++ Faiss - How to search in subsets

according to the faiss wiki page (link), you should be able to use SearchParameters to selectively include or exclude ids in a search.
Now the information there is a bit strange, because the field "sel" does not exist at all. Also the names were changed, so that "SearchParametersIVFPQ" became "IVFPQSearchParameters" and the old names are no longer findable. Moreover, the search method does not even accept SearchParameters, although according to the wiki it should.
I tried to find a solution with Visual Studio's Intellisense. But this was unsuccessful...
So the documentation seems to be outdated... Does anyone know how this works today?

How to change the value of wxDatePickerCtrl?

I have tried this, But I am not able to get date displayed on the datePickerCtrl.
Here SDOB is a wxDatePickerCtrl.
SDOB->SetValue(Rs.GetDate(3));
But I am able to get the date onto a label or text field by doing
wxStaticText11->SetLabel(Rs.GetDate(3).FormatDate());
But for my purpose I would like to get it onto the datePickerCtrl itself. Help!
Also where can I find good documentation with examples for wxWidgets? I am a beginner.
You're using the correct function for setting wxDatePickerCtrl value, so if you don't see what you expect, the date you pass to it must be invalid or otherwise different from what you think it is. Generally speaking, when asking about why something doesn't work you should explain both how do you expect it to work and what actually happens because otherwise nobody else can know what's really going on.
The documentation for this control is at https://docs.wxwidgets.org/3.1.4/classwx_date_picker_ctrl.html as could be expected and there are a hundred of examples distributed with wxWidgets, so if you want to see an example of this class in action, I recommend doing grep -lR wxDatePickerCtrl samples in the directory containing wxWidgets sources.
Good luck!

How to search the boost docu?

I'm trying to search the boost documentation for the function boost::date_time::subsecond_duration<boost::posix_time::time_duration, 1000000l>::subsecond_duration(double) now googling boost date_time subsecond duration did not return anything. I was looking for a search field in the official docs and in my version.
Is the boost docu written in a way it does not get indexed by google? Or how come my search query doesn't return anything? Second is there a search to find the function in the boost docu itself?
I could not find one maybe I just missed it. My guess is that it is in some old version but I don't know which one, I'm trying to build an older package that complains about the function missing, but I can't find it.
Sometimes it's easiest for these documentations to use google's site search function which means your query becomes:
"site:boost.org/doc/libs/1_68_0 boost::date_time::subsecond_duration"
This only yields a couple results of which one of them is:
https://www.boost.org/doc/libs/1_68_0/doc/html/boost/date_time/subsecond_duration.html

How to create a file with UNICODE path on Windows with C++

I am wondering which Win32 API call is creating the files with UNICODE path. Just to make sure, I am not talking about the content here only the file path. I would appreciate if somebody would hit me with an MSDN url, my google fu failed this time.
Thanks a million in advance.
See CreateFile msdn link: http://msdn.microsoft.com/en-us/library/windows/desktop/aa363858%28v=vs.85%29.aspx, if you pass a unicode string to the lpFileName parameter then the unicode version of CreateFile will be used.
Also you need to open the file in binary mode see this discussion on msdn forum: http://social.msdn.microsoft.com/forums/en-US/vclanguage/thread/71fa98ca-e757-4099-8f7f-fefcfe645298 which points to this msdn article: http://msdn.microsoft.com/en-us/library/c4cy2b8e%28vs.71%29.aspx
The principal tag on this question is "c++" not "windows.
Now, unless that was just a all-too-common cheat to get a windows api question in front of a larger - mostly unrelated - audience, the answer should be slightly relevant to c++.
As such, in a C++ app, there are a number of std:: specializations that can take wchar_t. wofstream for example.

Viewing language (C/C++) reference/documentation in CodeBlocks

My first question on StackOverflow...
Does anybody know a way of viewing the reference/documentation manual of a language through CodeBlocks? Specifically for C/C++.
Example:
Say I want to look up the reference for strncpy(). In a very old Borland system (which we use at school) I would write the word and middle-click on it, thus being taken to its reference. It would also be nice if one can browse through the manual in some way.
Have I completely overlooked this (also searching google), or is it missing?
If it's missing, what's the quickest way of searching the C and/or reference manual without being online?
Regards!
Yes, it is possible. I'm not sure about the help files themselves though.
The procedure seems to be documented here.
from the forums.
Re: F1 - help and function reference
« Reply #1 on: September 15, 2008, 02:07:59 pm »
if you have the help plugin installed, you can set help files through "Settings->Environment" and clicking on "Help files" in the list to the left.
The default file is called when pressing F1..
Logged
starmaker
Newcomer
*
Posts: 3
Re: F1 - help and function reference
« Reply #2 on: September 15, 2008, 06:57:29 pm »
You are right but is there any up do date documentation ?
Now I use MSDN or cppreference.com web pages.
Regards,
starmaker
I found the complete answer. Based on your reply EvilTech.
Here's the setup procedure for different systems:
http://wiki.codeblocks.org/index.php?title=Help_plugin
And here are the help files for C++ compiled from an online source:
http://onnerby.se/~daniel/chm/
I find it strange though that I couldn't find any other help files for C "out there". I also had problems viewing the .chm files. The list of keywords of the file are shown, but the contents of each keyword does not show. Turns out this is comes from a windows security update. The solution is to right-click on the file -> properties -> click on "unblock".
(BTW, do you mean Code::Blocks)
Having never used that, I can say anything definite, but have you tried selecting the term and pressing F1?
Why not ask this in the forums of Code::Blocks?