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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Depricating functions

Depricating functions

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jack Handy
    wrote on last edited by
    #1

    Is there a way to print out a warning when someone goes to use a function? I want it to be printed whenever (and only when) the function is referenced. -Jack

    There are 10 types of people in this world, those that understand binary and those who don't.

    T 1 Reply Last reply
    0
    • J Jack Handy

      Is there a way to print out a warning when someone goes to use a function? I want it to be printed whenever (and only when) the function is referenced. -Jack

      There are 10 types of people in this world, those that understand binary and those who don't.

      T Offline
      T Offline
      Tim Smith
      wrote on last edited by
      #2

      VC7 Specific #pragma deprecated( function1 [, function2, ...] ) -OR- __declspec(deprecated) void func1(int) { printf("In func2\n"); } Tim Smith I'm going to patent thought. I have yet to see any prior art.

      J 1 Reply Last reply
      0
      • T Tim Smith

        VC7 Specific #pragma deprecated( function1 [, function2, ...] ) -OR- __declspec(deprecated) void func1(int) { printf("In func2\n"); } Tim Smith I'm going to patent thought. I have yet to see any prior art.

        J Offline
        J Offline
        Jack Handy
        wrote on last edited by
        #3

        Tim Smith wrote: __declspec(deprecated) void func1(int) { printf("In func2\n"); } This seems to not work in g++ but thanks for putting me on the right track. -Jack

        There are 10 types of people in this world, those that understand binary and those who don't.

        T 1 Reply Last reply
        0
        • J Jack Handy

          Tim Smith wrote: __declspec(deprecated) void func1(int) { printf("In func2\n"); } This seems to not work in g++ but thanks for putting me on the right track. -Jack

          There are 10 types of people in this world, those that understand binary and those who don't.

          T Offline
          T Offline
          Tim Smith
          wrote on last edited by
          #4

          Anything starting with two underscores is compiler specific. Tim Smith I'm going to patent thought. I have yet to see any prior art.

          A 1 Reply Last reply
          0
          • T Tim Smith

            Anything starting with two underscores is compiler specific. Tim Smith I'm going to patent thought. I have yet to see any prior art.

            A Offline
            A Offline
            aguest
            wrote on last edited by
            #5

            // creatfoufou.cpp: implementation of the creatfoufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "creatfoufou.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// creatfoufou::creatfoufou() { } creatfoufou::~creatfoufou() { } void creatfoufou::creatfou(int amount) { foufou *newfoufouPtr; int randomX,randomY,randomZ; int speed,steer; for(int index=0;index**the mistak** RePaint(randomX,randomY,randomZ); } and here when i declared // foufou.cpp: implementation of the foufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// foufou::foufou() { } foufou::~foufou() { } //Propriétés réflectives de l'objet touché par la lumière GLfloat Material_Ambiante[]={0.5,0.5, 0.5, 1 }; GLfloat Material_Difuse[]={0.5, 0.5, 0.5, 1}; GLfloat Material_Specular[]={0.5, 0.5, 0.5, 1}; //Propriété de la lumière GLfloat Light_Ambiante[]={0.2, 0.2, 0.2, 0.1}; GLfloat Light_Difuse[]={0.5, 0.5, 0.5, 1.0 }; GLfloat Light_Specular[]={1.0, 1.0, 1.1, 1.0 }; GLfloat Light_Position[]={10, 12, 10, 1.0 }; GLfloat Light_Direction[]={0.0,-1.0, 0.0, 1.0}; void foufou::Initial() { //Définir les propriété de l'objet touché par

            J 1 Reply Last reply
            0
            • A aguest

              // creatfoufou.cpp: implementation of the creatfoufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "creatfoufou.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// creatfoufou::creatfoufou() { } creatfoufou::~creatfoufou() { } void creatfoufou::creatfou(int amount) { foufou *newfoufouPtr; int randomX,randomY,randomZ; int speed,steer; for(int index=0;index**the mistak** RePaint(randomX,randomY,randomZ); } and here when i declared // foufou.cpp: implementation of the foufou class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "OpenGl.h" #include "foufou.h" #include #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif ////////////////////////////////////////////////////////////////////// // Construction/Destruction ////////////////////////////////////////////////////////////////////// foufou::foufou() { } foufou::~foufou() { } //Propriétés réflectives de l'objet touché par la lumière GLfloat Material_Ambiante[]={0.5,0.5, 0.5, 1 }; GLfloat Material_Difuse[]={0.5, 0.5, 0.5, 1}; GLfloat Material_Specular[]={0.5, 0.5, 0.5, 1}; //Propriété de la lumière GLfloat Light_Ambiante[]={0.2, 0.2, 0.2, 0.1}; GLfloat Light_Difuse[]={0.5, 0.5, 0.5, 1.0 }; GLfloat Light_Specular[]={1.0, 1.0, 1.1, 1.0 }; GLfloat Light_Position[]={10, 12, 10, 1.0 }; GLfloat Light_Direction[]={0.0,-1.0, 0.0, 1.0}; void foufou::Initial() { //Définir les propriété de l'objet touché par

              J Offline
              J Offline
              Jack Handy
              wrote on last edited by
              #6

              Did this have anything to do with my thread? If so I can't see how. -Jack

              There are 10 types of people in this world, those that understand binary and those who don't.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

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