invalid or corrupt file: cannot read at 0x2B0

  • Thread starter Thread starter DasNeo
  • Start date Start date
D

DasNeo

Guest
Hey,

I'm getting the error "invalid or corrupt file: cannot read at 0x2B0" whenever I try to build a DLL in C++.

dll.h

#pragma once
#include <string>

class __declspec(dllexport) dll
{
public:
dll(int value);
std::string run();
};

dll.cpp

#include "stdafx.h"
#include "dll.h"
#include <iostream>

using namespace std;

dll::dll(int value)
{
cout << "Hello!";
}
string dll::run()
{
return "Testing";
}


Am I missing something?


Thanks,

André.

Continue reading...
 
Back
Top