RegistryNotifyCallback equivalent for Windows Phone [duplicate] - c++

This question already has an answer here:
Callback for phone contacts modification
(1 answer)
Closed 8 years ago.
In Windows Mobile I could use RegistryNotifyCallback and get notified when certain data changed.
Is there any equivalent to this function in Windows Phone 8?
Since RegistryNotifyCallback was used in C++ (unmanaged code) and WP uses .Net (managed code), is there any way to directly import and use the necessary C++ DLLs?
The functionality I'm looking for here is to get notified if a Contact from my People Hub changes any of its data, outside my application. I've asked this question before and the short answer was "the is no way of doing this", but I'm still hoping there is.

I've asked this question before and the short answer was "the is no way of doing this",
Why are you asking again then? It's still the same answer. And we don't have any intentions, whatsoever, to allow 3rd party developers to access data from limited contact stores.

Related

how to get BIOS information in c++ [duplicate]

This question already has answers here:
How to read a value from the Windows registry
(8 answers)
Closed 6 years ago.
we are working on something in that requires BIOS information, i know that these information is available in HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System registry setting. But i need to do this in C++.
is there any API available for this?? i dont want to read from the system registry due to some limitation on client system.
Is there any other way to do this??
If you already know that the values are stored in a registry hive, then you could use CRegKey to read the values. This is just an ATL wrapper around Windows registry manipulation APIs.
If you want to use a Windows API instead, there's RegQueryValueEx.
Keine has also given you an excellent link in a comment, which discusses several things and also has a link that's detailing the 32/64 bit registry gotchas.

Where to start and what to choose for a simple gui project in c++? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know this question has been answeared before, since i rad most of the answears already, but they didn't fully address what i was looking for, also i'm trying to get a heads up really really case-specific, since i need to develop an app really fast and i have almost no G.U.I. experience, so here is my problem:
I need to develop an application wich allows the input of some text fields (actually a database support-like would be awesome) and i need to store the inputs (like in a database, a .txt file could be good too if it would fasten up the developing)
once the input are fully stored (some text field must be unique) i need to pull some data from the database.
the final intention is to code a simple "random winner extractor" by simplying assigning a list of "number" to each entry and then calling the rnd function i will check who is the winner.
in addition to this i would love to be able to add a little animation to the whole gui (a gif would be enough)
Coming from vb6 Gui developing (that's the only G.U.I. developing experience i have so far) i searched from some good "drag and drop visual gui framework" and i bumped up into QT and into the .net Framework for visual c++ 2010, and i must admit i like them both, but i have no idea where can i get the Heads up to start coding in them... for example i have no idea how to change a text field value, or how to call the equivalent of "onChange" javascript handler for any of the forms (in neither the Qt or .net framework)
since i'm a little rusty with actual Event handlers and api codes,here are my 2 questions:
1.Between .NET and QT, for the sole realization of this single application, wich will be run in a windows computer, based on the "simplicity to learn and develop" wich should i choose?
2.Given the answear for point 1, where could i get some reference or material on how to easly understand the basics? (all the tutorial i found or tried so far gives me only case specific knowledge, but they won't cover overall function i need to know, like how to display a message box, or how to interact with the object values, or how to write down the values into a file...)
C++ is more difficult than C#. But it is more flexibel. C++ is an independent standard. C# on the other hand is safer to use.
Qt is cross platform. It can be used almost everywhere (except web applications) easily. .NET is for Microsoft and Windows only but common on that platform.
Qt is easy to learn and it is powerful. .NET is also powerful but I experienced .NET being harder to learn than Qt.
Qt is open source while .NET is closed source.
Pick the points that are important for you. I think the main question you should consider is: Do you intend to create a cross-platform application (today or in future)?
PS: Normally you should not ask such questions here since they tend to start endless discussions. The above is my personal opinion and hopefully it will be taken as subjective without the need of commenting it.
"Simplicity to learn and develop" is kinda subjective if you think about it and can rely on what you feel more comfortable with I think. I don't know much about .NET but you said you have a background in VB so maybe .NET might be the best approach for GUI development for you. If you know your way around C++ better, QT is surely the way to go, it's fast and powerful. I can't give you any reference material for .NET but you should definitely start with the qt documentation provided online. If you prefer to learn from video tutorials you can check out the Void Realms Qt youtube tutorials. The videos target Qt 4.7 if my memory serves me correctly but alot of the stuff he teaches are still more or less applicable with the newer versions of Qt. And finally, if you look in the examples section of Qt Creator (or online as well), they are some examples that are tutorial style and they can teach you some core concepts of Qt like the signals and slots system for one.
"simplicity to learn and develop" is what .NET is for, especially for database apps. But to get that simplicity use VB.NET or C#, not C++.

Equivalent to windows.h for mac [duplicate]

This question already has answers here:
Where can I get windows.h for Mac?
(3 answers)
Closed 4 months ago.
Is there any equivalent to windows.h for mac?
I've been googling it but I can't find anything.
I don't know if it matters but I am currently using Mountain Lion.
There is no direct equivalent. That is, no file for file substitute. It's a different platform after all. You will simply have to work with their API. And without knowing exactly what it is you want to do and what functionality you intend to use, it's hard to provide any additional information.
There is the Carbon API. Or better said, there was. Specifically since Mountain Lion, this API has been deprecated. The aforementioned link mentions some alternatives to deprecated functionality, though the Objective-C route might be a more easily manageable alternative.

Checking how many members is there in a class [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
C++ macro/metaprogram to determine number of members at compile time
is there a way to detect at compile time how many members class has?
I've looked the web but no results.
There are API's for static analysis tools that could do this.
Here at my work I use a product called understand 4 C++. It has a nifty C API, for which I wrote a managed C++/CLI wrapper API. That allows you to write tools using C# to target their API. Using this I have written tools that do things similar to what you want to do.
In your case, you could write a tool, get it to do what you want, and then call this tool as a post build event.
If you search this website for static analysis API's then you will find other useful hits.

Seeking C++ implementation of `hires_time_in_seconds()` [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
High resolution timer with C++ and Linux?
double hires_time_in_seconds();
I'm looking for this function for Windows, Linux too if you have it.
It is mentioned in http://gafferongames.com/game-physics/fix-your-timestep/.
I've looked on the web.
I know it's not a standard function but if anybody has an implementation that they want to share, that would be great.
Failing that, I need something as fine grained as possible to do synchronization in a client server game.
It's not a real function, it's just a self-descriptive placeholder name used in that blog post's example code.
For Windows, you'll want to use QueryPerformanceCounter along with QueryPerformanceFrequency. For Unix-based OSes, you'll want to use gettimeofday(3).