When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
37 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
@wild rune
Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!
link
Where is the function defined?
I don't understand how it should be defined?
i can send the whole code
bool __stdcall run(); declares the function. To define it you need to have actual implementation of the function.
Do I need to declare it right there or somewhere in another file?
Well you can write the code in the header itself (make sure you mark it inline):
inline bool __stdcall run()
{
// Implementation goes here.
}
Or you put it in a separate source (.cpp) file.
i have hooks.hpp and i have hooks.cpp
which hooks.hpp in it is just this error
probably don't use __stdcall, that's a microsoft thing
or if you do, at least put it on a conditional define
Is hooks.cpp actually compiled as part of the project?
and if anything, you probably want __cdecl not __stdcall
Also in the C++ file if you don't have using namespace is_connected or how the function definition inside namespace is_connected, you need to write bool is_connected::run() for it to match.
did not help(
I'm going to try now
I didn't say that was a solution to your problem
I'm doubtful you need either of them for what you're doing
is not a class or namespace name
Could you show your code?
This is only the header, where's the implementation?
there is also hooks.cpp maybe there
There doesn't seem to in there.
What do I need to do?
Did you implement the run function as bool __stdcall hooks::is_connected::run() { } in your cpp file?
seems to be no
is cpp file
You have not implemented the function hooks::is_connected::run which is the problem.
how to implement it and where?
Well you need to write the code for the function.
what's the code?
I don't know it's your project.
Can I show it and can you help me then?