CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: sandstorm140

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,683

    Re: c++ resource file - syntax error

    Resolved

    Changed

    #define APP_VERSION TEXT("0.01\0")
    To:

    #define APP_VERSION "0.01\0"

    What exactly does TEXT() do?
  2. Replies
    5
    Views
    2,683

    Re: c++ resource file - syntax error

    Sorry I should have included that.. APP_VERSION is in my resource.h file:



    #ifndef RESOURCE_H_INCLUDED
    #define RESOURCE_H_INCLUDED

    #define APP_TITLE TEXT("PZNtec AlarmClock\0")

    #define...
  3. Replies
    5
    Views
    2,683

    c++ resource file - syntax error

    This is one I can't seem to get figured out... for the past few days.

    I'm using code::blocks and the GNU GCC compiler delivered with it. I keep getting "syntax error" at the commented lines of my...
  4. Replies
    13
    Views
    1,171

    Re: c++ win32 titlebar with #define

    Ah just incase anyone else has the same problem i had, adding
    to the rc file solved the problem (atleast that problem lol)
  5. Replies
    13
    Views
    1,171

    Re: c++ win32 titlebar with #define

    Now i'm getting a syntax error at line 8
  6. Replies
    13
    Views
    1,171

    Re: c++ win32 titlebar with #define

    Lol @ S M A, well thank you for advising me as I requested :).

    Using the following rc file, i'm getting a syntax error on line 12, after BEGIN



    I have set the rc file to be included when...
  7. Replies
    13
    Views
    1,171

    Re: c++ win32 titlebar with #define

    S M A, i'm using c++

    I found the following. Infact I search through notepad++ source code and found:

    resource.h:


    #define VERSION_VALUE TEXT("5.85\0")
    #define VERSION_DIGITALVALUE 5, 8, 5,...
  8. Replies
    13
    Views
    1,171

    Re: c++ win32 titlebar with #define

    I guess I don't mind using const... But the reason for this is I would like to have an easily accessible file with app title, and version info.

    static const int appVersion = 1;
    static const...
  9. Replies
    13
    Views
    1,171

    [SOLVED] c++ win32 titlebar with #define

    Greetings,
    How can I define an application title and then pull it in the CreateWindowEx function? I'd like to stay away from "static const" for now if possible, although a solution to both would be...
  10. Replies
    12
    Views
    870

    Re: C++ new operator

    Thanks for the tips everyone, however until I get a basic knowledge of c++ and feel comfortable with it, I want to stay with the basics. Afterward, I'll feel around into more simple or more practical...
  11. Replies
    12
    Views
    870

    Re: C++ new operator

    Excellent, very well explained thank you!
  12. Replies
    12
    Views
    870

    C++ new operator

    Greetings,

    Can someone please explain difference between the following code:

    Echo objName;
    Echo objName = new Echo();

    I don't understand when I must use line 1, or line 2.

    Thank you.
Results 1 to 12 of 12


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)