C++ Syntax error - identifier not found
I have a file "injectdll.h", code:
#include <windows.h>
#include <tlhelp32.h>
void GetTargetThreadIdFromProcname(char *procName);
bool LoadDll(char *procName, char *dllName);
And a file "injectdll.cpp" with following code:
#include "StdAfx.h"
#include "injectdll.h"
void GetTargetThreadIdFromProcname(char *procName)
{
}
bool LoadDll(char *procName, char *dllName)
{
开发者_运维知识库 GetTargetThreadIdFromProcName(procName);
}
I cannot compile that simple piece of code:
error C3861: "GetTargetThreadIdFromProcName": Bezeichner wurde nicht gefunden. / 'identifier': identifier not found, even with argument-dependent lookup
Where's the error? It's driving me crazy...
You have camel-case ProcName in the call; the function is declared as Procname
In your posted code you have a capital on ...ProcName
when you call it from within LoadDLL
.
精彩评论