MSN Messenger/Growl Style Alerts in Windows C++ - c++

Does anyone know of any C++ Libraries which I can easily integrate in a project to allow me to show MSN Messenger/Outlook/Growl style toast popups?
Tried having a look and found lots of Visual Basic controls etc but nothing for C++ so far.

You might wanna a look at Customizable Alert Window by Marius Bancila.

How about... growl for windows? :]
http://www.growlforwindows.com/gfw/

The VS 2008 MFC has a toast dialog that looks just like outlook toast. The disadvantage is that you have to have MFC as the main framework in you app - might not be worth it just for the toasts.
Create a sample MFC project in Visual Studio and see if it is at all suitable.

Related

How to debug native C++ calling from asp.net using Visual Studio 2017

I have an asp.net web application (.NET Framework) by Visual C#, and this web application uses native C++ DLL by DllImport. The native C++ DLL project is also part of the solution. However when I do the debugging, and try to step into the native C++ code, it fails, the breakpoint on the C++ code shows "the breakpoint will not currently be hit no symbols have been loaded".
The solution is : make sure The "Native Code" check box (Project>Property>Web>Debugger>native code) as shown on the picture is checked. By default it is unchecked when the .net project is created.
I spent whole morning to find out cause, and it is not mentioned in stackoverflow and other website, therefore would like to share the solution.
//Follow Jack's suggestion to post the solution as an answer, instead of putting it as part of the question. Thanks Jack.

How to write a IE BHO in Plain C++ which executes my javascript

According to my client's demand, I am aiming to write a Internet Explorer BHO which on button click executes my custom Javascript. I have started with this link which contains an example BHO which is inplemented in C++,
http://www.codeproject.com/Articles/37044/Writing-a-BHO-in-Plain-C
But when I try to run it in Visual C++ 2010 Express, it doesnot build. I have these question regarding IE BHO:-
1) On which platform can I build and make changes to the above example code , in VC++ 2010 or Windows 7 SDK?
2) Any other tutorial you can refer me; which can guide me how to make BHO in C++ ?
3) I intend to make a button while using IE BHO, such that whenever it is clicked, my custom javascript is executed. Can anybody give me a general guidance on how to do this?
I have searched alot about this matter on Internet, but it seems that majority of the people are implementing BHO in C#. I am in need of some good suggestions.
First question: You should not ask a question saying "it does not build" and saying nothing about your build problem. Do you want us to download the project and guess what is Ok and what is not depending on VS and OS versions? Update your question with your build problem.
Second question: Use Google: Building Browser Helper Objects with Visual Studio 2005 It's old now, but nothing has really changed since then. Alas, you must have an ATL capable version of VS, and the Express versions are not. Anyway,I very strongly discourage writing a C++ BHO without the help of ATL. You may get the ATL sources by downloading a recent SDK, but you will not have the wizards. If you have a "full" VS2008, it will do the job perfectly well.
Third question: general guidance is the IHTMLWindow2 execScript method

Microsoft Visual cannot add tools

I´m new at Visual Studio C++ and maybe I´m asking a very trivial question. I have a project/application but I have to add a few new features to it. When I open the project in MVS and in "dialog" folder there are windows (or dialogs?) used by application and I can modify them but I´m not allowed to add components/tools that I really need. I have only Dialog editor tools unlocked. I can compile an run application but When I try to add a form to project I´ll see a message:
You are adding a CLR component to a native project. Your project will be converted to have Common language runtime support.
I´ve googled some information about .NET forms and windows dialogs, but I do not know what to do next. If I choose "yes" (convert project) I cannot compile it anymore.
What can I do if I would like to use a ZedGraph controll to plot graphs from data in this app?
The C# GUI tools are different to the C++ tools (like MFC).
When you try to add C# tools to a C++ project the IDE warns you "You are adding a CLR component..."
Depending on which IDE you are using, when you bring up the resource view (http://msdn.microsoft.com/en-us/library/d4cfawwc.aspx) e.g. with ctrl + shift + E you should be able to find the existing dialogs and double click to edit them.
It seems that ZedGraph is a C# library (from the docs), so you will have to convert into a C# project in order to use it, which will not be straightforward, or use a suitable C++ one.

How to create GUI programs with Code::Blocks

Previously I used Visual Studio for my C++ programmings. But some cost effects I had to change my IDE, so I chose Code::Clocks (12.11). But I can't find a way to develop GUI applications with C::B. Is there any way to develop GUIs with C::B?
Yes, You can develop GUIs with CodeBlocks if you have GTK+ or wxWidget Libraries. You can use one of them at your own choice. CodeBlocks can't use them until you download and install them, So you have to perform some actions to make them usable in CodeBlocks. For GTK+ configuration steps see this and for wxWidget see this.
I create Win32 gui apps all the time with Code::Blocks 20.3 (uses MinGW-W64 project compiler) because I code them using the Win32 api. This is the manual way of doing things, and it works great; the down-side is that you must learn the Win32 api. (its an aspiring challenge, but for an experienced C/C++ programmer and some google skills, its doable)
Many programmers believe that gui apps must be built with a graphical builder (GTK+, wxWidgets, etc) but not true. In fact, in the stock version of the 20.3 Code::Blocks one of the project options is Win32 app. It builds a 'very' minimal cpp file that displays a blank window and starts the message loop... this is a good place to start if you've never seen a gui cpp text file that produces a blank window. You will need to study the Win32 api and learn how to use the message loop, how to add controls (buttons etc) to your project, and how to debug it; its a learning curve, but it is rewarding education. Get the book, "Programming Windows" fifth edition--- make sure its the fifth edition only!
The Microsoft docs are pretty good for learning the Win32 api also, but the book is the best approach. Take a class.
marcus
If you want to start creating GUI programs with 'Code::Blocks' then using a 'Win32' approach looks promising.
I only recently installed 'Code::Blocks 20.03', using the defaults for the install directory, and type of installation( Full ), and was easily able to create a basic 'Win32 GUI project'.
NB: I was using Windows 10, and the basic project doesn't really do anything.
For some Microsoft documentation, see at
https://learn.microsoft.com/en-us/windows/win32/learnwin32/learn-to-program-for-windows
, please note at the bottom left of this page, a 'Download PDF' link.
You could start at page 18 of the pdf, which is where, 'Module 1. Your First Windows Program', starts, page 20 is illuminating.
For information on 'The Message Loop', mentioned in a previous answer, see page 24.
It might be worth bearing in mind 'Reply #3' to the question at
https://forums.codeblocks.org/index.php?topic=19537.0

How to add menubar in my program with Visual Studio 2008?

I managed to create the menubar in the menu editor by clicking and writing text to each menu item i wanted.
I cant see any button to get the code to include the menu in my program.
How i can get this menu working?
C++
depends on whether you are using pure win32 api or MFC. But being a newbie i will first assume that you are using win32 api. do a simple google search for forgers win32 tutorials.
just to satisify you, edit the main.cpp file and change the WNDCLASSEX structure, under the lpszMenuName part.
See, you just cant keep using visual studio's code generation features. You have to understand the code behind the menu, and it is not hard. other wise you will never understand the more advanced features. No offence but these things are covered all over the internet.