I have this code!.


#include "stdafx.h"
#include <stdlib.h>
#include "windows.h"
#import "MSVBVM60.DLL" raw_interfaces_only no_implementation named_guids rename_namespace ("vb6") rename ("EOF", "vbEOF") rename ("RGB", "vbRGB") rename ("GetObject", "vbGetObject")

using namespace vb6;

int _tmain(int argc, _TCHAR* argv[])
{
VARIANT v565;
v565.intVal=2;
float v533;

*(float *)&v533 = Rnd(&v565);

return 0;

}


When build, with vs2012.. obtain this error..
"
Error 1 error LNK2019: unresolved external symbol "float __stdcall vb6::Rnd(struct tagVARIANT *)" (?Rnd@vb6@@YGMPAUtagVARIANT@@@Z) referenced in function _wmain
Error 2 error LNK1120: 1 unresolved externals
"

what is wrong?
library or statement which I do?