If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: timeSetEvent and timeKillEvent

Originally Posted by VictorN

You can add #pragma comment(lib, "Winmm.lib")
in your .cpp file

and in .h file(because i have there my class)?
another question: when they said that is a .dll and .lib what file we inclued?
can you give me a nice link for i see better how build a timer(inclued the callback function(that was my big problem))?
thanks for all my friend.. realy.. .thanks

Re: timeSetEvent and timeKillEvent

and in .h file(because i have there my class)?
another question: when they said that is a .dll and .lib what file we inclued?

Perhaps. Sorry I never tried!

Originally Posted by Cambalinho

another question: when they said that is a .dll and .lib what file we inclued?

included must be a header file.
But in many cases you must also use additional library files (that were not added to some "standard" build). Those files should be added in the Linker Additional Dependencies (either direct in the corresponding Project Property Page) or via #pragma comment.

Originally Posted by Cambalinho

can you give me a nice link for i see better how build a timer(inclued the callback function(that was my big problem))?
thanks for all my friend.. realy.. .thanks

Re: timeSetEvent and timeKillEvent

Originally Posted by VictorN

Perhaps. Sorry I never tried!

included must be a header file.
But in many cases you must also use additional library files (that were not added to some "standard" build). Those files should be added in the Linker Additional Dependencies (either direct in the corresponding Project Property Page) or via #pragma comment.

Re: [RESOLVED] timeSetEvent and timeKillEvent

but all that variables are public(until find private keyword)?

In a class by default all entities are private unless otherwise stated as public or protected. Once public: or private: or protected: is used then all subsequent entities are of this specifier until a new specifier is stated. (Note that in a struct all entities are public unless otherwise stated etc).

All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
C, C++ Compiler: Microsoft VS2015

Re: [RESOLVED] timeSetEvent and timeKillEvent

Originally Posted by 2kaud

In a class by default all entities are private unless otherwise stated as public or protected. Once public: or private: or protected: is used then all subsequent entities are of this specifier until a new specifier is stated. (Note that in a struct all entities are public unless otherwise stated etc).

i understand private and public, but can you explain to me static and protected?