#import "MSVBVM60.DLL" error
I only have one statement "#import "MSVBVM60.DLL" no_namespace" in my VC6. 0 code. when I compile it, I got error message:
d:\sampl\debug\msvbvm60.tlh(577) : error C2059: syntax error : '('
If I add include file<afxwin.h>
I will have additional error message:
d:\sample\debug\msvbvm60.tlh(451) : error C2059: syntax error : '('
why it has error in msvbvm60.tlh?
Anyone know the reason for this error?
Thanks.
Re: #import "MSVBVM60.DLL" error
u want send me complete sample?
Re: #import "MSVBVM60.DLL" error
After 11 years, there's a chance he's not even around this forum anymore!
Re: #import "MSVBVM60.DLL" error
u 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 (vstudio 2012) ...this errors:
Error 2 error LNK1120: 1 unresolved externals
Error 1 error LNK2019: unresolved external symbol "float __stdcall vb6::Rnd(struct tagVARIANT *)" (?Rnd@vb6@@YGMPAUtagVARIANT@@@Z) referenced in function _wmain
Can helpme?