Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hello everyone!
i downloaded the source code for this article(i am trying to implement a global system hook in my app) but when i try to compile it VS2010(I am using Visual Studio 2010 Premium) gives me an error(for the C++ part of it) of:

Error 1 error LNK1123: failure during conversion to COFF: file invalid or corrupt C:\Users\yourusernamehere\Downloads\WilsonGlobalSystemHooks_src\GlobalCbtHook\LINK GlobalCbtHook

i know the file isn't corrupt because i have tried other C++/C# projects and they all gave me the same error to whats up with this?
i have already look at the comments of the article and no one had the same problem i am having.
i am using Visual Studio 2010 Premium on windows 7 64-Bit and am running in an RDP session
thanks for your help in advance,
MasterCodeon
Posted
Updated 2-Jan-15 4:55am
v2
Comments
Sergey Alexandrovich Kryukov 2-Jan-15 10:19am    
Not enough information. And your explanation is not a proof that the file isn't corrupt or, say, misused.
—SA
MasterCodeon 2-Jan-15 10:22am    
what else do you need to know?
Sergey Alexandrovich Kryukov 2-Jan-15 10:37am    
I don't need to know anything about this case, you do. You need to understand what information might be relevant at least in general terms, unless asking questions will be nearly useless. Yes, asking questions requires some prerequisites...
—SA
MasterCodeon 2-Jan-15 10:43am    
well i am running windows 7 64-bit and i am running this in a RDP session
i think this is relevant info
MasterCodeon 2-Jan-15 10:34am    
what file is "LINK GlobalCbtHook"?
i can't find it in the directory the error message is talking about.

1 solution

Don't post this under Quick Answers - if you got the code from an article, then there is a "new message" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.
 
Share this answer
 
Comments
MasterCodeon 2-Jan-15 10:33am    
A. i don't see the "new message" button.
B. i don't think this is a problem on the author's end i thinks is something i am doing wrong, maybe its some stupid checkbox i didn't check in VS. this is why i am posting here.
OriginalGriff 2-Jan-15 10:44am    
That's possible - but since we don't know what the project you are downloading targets or requires we can't really help much.
The original author will have a much better idea, and may be able to try the project on his installation of VS and compare settings with yours.
MasterCodeon 2-Jan-15 10:50am    
true i will give it a try.
MasterCodeon 2-Jan-15 10:51am    
oh and how do i send the author a message?
OriginalGriff 2-Jan-15 11:04am    
Go to the article you downloaded from, and look at the bottom of the page.
There is a forum there for people to talk about that article - at the top of the forum is a button labelled "Add a Comment or Question" - click that and it'll start a new thread. The thread will automatically be emailed to the author when you post your message.

(Sorry, they have changed the text on the button - it used to be "New Message" rather than "Add a Comment or Question" hence my original text)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900