LNK1107
-
Hi everybody I am writing a dll in C++.Net. I had a .h and .cpp file in visual C6.0 and I want to use it here,but there is no lib. First, I set the paths in project properties, but because there is no lib file, I only set the .h file path there. But while compiling there were two LNK errors: LNK2028 and LNK2019. I add it manually in the "Header files" section and "Source Files" section. But there is an error like this while compiling: LNK1107: Invalid or corrupt file, cannot read at 0x306 I also include it in my code. What's wrong? Would you please help me? Thanks in advance
-
Hi everybody I am writing a dll in C++.Net. I had a .h and .cpp file in visual C6.0 and I want to use it here,but there is no lib. First, I set the paths in project properties, but because there is no lib file, I only set the .h file path there. But while compiling there were two LNK errors: LNK2028 and LNK2019. I add it manually in the "Header files" section and "Source Files" section. But there is an error like this while compiling: LNK1107: Invalid or corrupt file, cannot read at 0x306 I also include it in my code. What's wrong? Would you please help me? Thanks in advance
Did you add the cpp file to the project? I don't mean the paths to folders where the cpp or header is sitting, i mean the file itself? If not, could it be that the unresolved symbols are defined in that cpp?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
-
Hi everybody I am writing a dll in C++.Net. I had a .h and .cpp file in visual C6.0 and I want to use it here,but there is no lib. First, I set the paths in project properties, but because there is no lib file, I only set the .h file path there. But while compiling there were two LNK errors: LNK2028 and LNK2019. I add it manually in the "Header files" section and "Source Files" section. But there is an error like this while compiling: LNK1107: Invalid or corrupt file, cannot read at 0x306 I also include it in my code. What's wrong? Would you please help me? Thanks in advance
Sounds to me like you're linking against something that claims to be a .lib or .obj file, but isn't - could that be the header file? I think you actually want to be adding the .h and .cpp files to your project and building them into it.\, from your question.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Did you add the cpp file to the project? I don't mean the paths to folders where the cpp or header is sitting, i mean the file itself? If not, could it be that the unresolved symbols are defined in that cpp?
> The problem with computers is that they do what you tell them to do and not what you want them to do. < > Life: great graphics, but the gameplay sux. <
of course I did. I added both the .h and the .cpp file in the solution explorer.
-
Sounds to me like you're linking against something that claims to be a .lib or .obj file, but isn't - could that be the header file? I think you actually want to be adding the .h and .cpp files to your project and building them into it.\, from your question.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
I did it. I added the .h and .cpp file in the solution explorer and build the project. but it doesn't work.
-
I did it. I added the .h and .cpp file in the solution explorer and build the project. but it doesn't work.
MozhdehQeraati wrote:
doesn't work
'Doesn't work' encapsulates sooo many ba things...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p