Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
M

MrMcIntyre

@MrMcIntyre
About
Posts
125
Topics
27
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Template
    M MrMcIntyre

    Hi, I am wanting to create a Silverlight Navigation Windows 7 Theme Template but everytime I want to create this type of project on my Visual Studio I keep on getting an error saying: Error: this template attempted to load component assembly Microsoft.VisualStudio.Silverlight,Version=10.0.0.0, Cultrual=Neutral, PublicKeyToken=b03f5f7f11d503a. For more information on this problem and how to enable this template, please see documentation on Customising Project Template. The problem I have is to find where the documentation is. Andrew

    Andrew McIntyre

    WPF help csharp visual-studio tutorial announcement

  • OpenGL
    M MrMcIntyre

    Hi again, I am not here to be a pain, it a OpenGL compiling problem I have with my 3D project. I have went to properties and linked all the libraries and used the #pragma comment (lib, "glut32.lib") and the whole list of error went away then I got 1 last error saying. fatal error LNK1104: cannot open file 'GLU32.lib, GLUT32.lib, OpenGL32.lib' Thank you.

    Andrew McIntyre

    C / C++ / MFC help graphics game-dev

  • Internet Get Connected State
    M MrMcIntyre

    I have got I error with the code you provided. The character that is underlined and in bold is stopping me from running the code. Please help.

    void Function();
    {
    if (InternetGetConnectedState(INTERNET_CONNECTION_LAN | INTERNET_CONNECTION_MODEM, 0) == FALSE)
    {
    MessageBox(NULL, "Sorry, no Internet Connection was detected", "iWorld", MB_OK | MB_ICONERROR);
    }
    }

    Error: '{' : missing function header (old-style formal list?) Thank you very much

    Andrew McIntyre

    C / C++ / MFC help question

  • Internet Get Connected State
    M MrMcIntyre

    So no one is going to help.

    Andrew McIntyre

    C / C++ / MFC help question

  • Internet Get Connected State
    M MrMcIntyre

    I need help fixing these errors.

    Andrew McIntyre

    C / C++ / MFC help question

  • Internet Get Connected State
    M MrMcIntyre

    Yes this is my second attempt as I really want finish the code off. Thanks

    Andrew McIntyre

    C / C++ / MFC help question

  • Internet Get Connected State
    M MrMcIntyre

    Can you help me put in the missing scope as I have been trying to fix it but I just cant.

    Andrew McIntyre

    C / C++ / MFC help question

  • Internet Get Connected State
    M MrMcIntyre

    Hi, Can someone please help me fix the errors I am having with this code. Thank you.

    #include <WinInet.h>

    #pragma comment(lib, "wininet.lib")

    if (InternetGetConnectedState(INTERNET_CONNECTION_LAN | INTERNET_CONNECTION_MODEM, 0) == FALSE)
    {
    MessageBox(NULL, "Sorry, no Internet Connection was detected", "iWorld", MB_OK | MB_ICONERROR);
    }

    Errors: 1. error C2059: syntax error : 'if' 2. error C2143: syntax error : missing ';' before '{' 3. error C2447: '{' : missing function header (old-style formal list?)

    Andrew McIntyre

    C / C++ / MFC help question

  • System Tray Icon
    M MrMcIntyre

    David, I am missing a { somewhere can you please help me with it. I am am trying to create a Login Window. I keep on getting an error of (struct HWND__ *,unsigned int,unsigned int,long)" (?WndProcedure@@YGJPAUHWND__@@IIJ@Z) referenced in function _WinMain@16.

    case WM_CREATE:
    {
    hInstance = (HINSTANCE) GetWindowLong (hWnd, GWL_HINSTANCE);

    		hWnd = CreateWindowEx(NULL, L"Login", NULL,
    			WS\_CHILD | WS\_VISIBLE | WS\_VSCROLL,
    			0, 0, 500, 80,
    			hWnd, (HMENU) 1, hInstance, NULL);
    
                     } break;
    

    Thanks

    Andrew McIntyre

    modified on Tuesday, March 16, 2010 4:06 PM

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    Thanks for the code, its much appreciated. See if I wanted to put menu items how would I do that like: Help Exit About Thank you

    Andrew McIntyre

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    Hi David, I got the code to work in the end, however I still need help creating the menu when the user right clicks. Thanks

    Andrew McIntyre

    modified on Tuesday, March 16, 2010 1:17 PM

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    NOTIFYICONDATA nid;
    memset(&nid, 0, sizeof(NOTIFYICONDATA));
    nid.cbSize = sizeof(NOTIFYICONDATA);
    nid.hWnd = hWnd;
    nid.uID = 1;
    nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
    nid.uCallbackMessage = WM_USER + 200;
    nid.hIcon = LoadIcon(NULL, IDI_APPLICATION);
    nid.uTimeout = 5000;
    nid.szInfoTitle, "BalloonTitle";
    nid.szInfo, "TrayTip";
    nid.szTip, "TrayTip";

    							Shell\_NotifyIcon(NIM\_ADD,&nid);
    

    When I run this code the icon on the system tray the title does not appear or any of the input I want it to display when I hover over the icon. Please help.

    Andrew McIntyre

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    Louis, I need it to be in C++.

    Andrew McIntyre

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    NOTIFYICONDATA nid;
    memset(&nid, 0, sizeof(NOTIFYICONDATA));
    nid.cbSize = sizeof(NOTIFYICONDATA);
    nid.hWnd = hWnd;
    nid.uID = 1;
    nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;
    nid.uCallbackMessage = WM_USER + 200;
    nid.hIcon = LoadIcon(NULL, IDI_INFORMATION);
    lstrcpy nid.szTip, ("Test Tip");
    Shell_NotifyIcon(NIM_ADD, &nid);

    Hi Louis, Can you help me fix this code so it can display the notify icon Title set as "Test" and in the code allow me to create menu items. Thank you.

    Andrew McIntyre

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    Is that C# code on the example or C++.

    Andrew McIntyre

    C / C++ / MFC

  • System Tray Icon
    M MrMcIntyre

    Hi,

    NOTIFYICONDATA nid;
    ZeroMemory(&nid,sizeof(nid));
    nid.cbSize = sizeof(NOTIFYICONDATA);
    nid.hWnd = hWnd;
    nid.uID = 0;
    nid.uFlags = NIF_ICON | NIF_MESSAGE | NIF_TIP;

    nid.uCallbackMessage	                =	WM\_USER;
    nid.hIcon				=	LoadIcon(NULL, IDI\_APPLICATION);
    (nid.szTip,"Double-Click To Maximize.");
    

    I have successfully got my application to show in the system tray but I want to add menu items when the user right clicks on the icon in the system tray. Thank you.

    Andrew McIntyre

    C / C++ / MFC

  • System Tray Context Menu
    M MrMcIntyre

    That link is no use to me. I only has links to magazines.

    Andrew McIntyre

    C / C++ / MFC help tutorial

  • System Tray Context Menu
    M MrMcIntyre

    Hi, I have looked everywhere on the web a good tutorial for sample code that creates a System Tray icon for an application and when you right click on the system tray icon it will display a context menu with a list of options. Please could someone help me create a the basics of it. Thank you.

    Andrew McIntyre

    C / C++ / MFC help tutorial

  • Internet Connection
    M MrMcIntyre

    I want my application to check if the user has an internet connection and if they don't for it to display a message box. I know you cant figure out the code in the snippet because I need help adding the else statement and message box and any other part of the code.

    Andrew McIntyre

    C / C++ / MFC json help

  • Internet Connection
    M MrMcIntyre

    Hi, I have been reading an article for a code that I want to implement into my application but I need help with finishing the code.

    bool IsConnectedToInternet()
    {
    int Desc
    return InterGetConnectedState(Desc, 0);
    }
    if (IsConnectedToInternet())
    {

    I want it to display a message box if no internet connection was found. I can format the message box I just need help filling in the rest of this snippet to check for the connection to the internet. Thank you.

    Andrew McIntyre

    C / C++ / MFC json help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups