Hi,
I'm sure this is pretty obvious, but how would you go about tracking down and resolving the link error this small code gives? Is there any particular way, or some assistance VS.Net can give you, or do you just have to know what you're doing and examine the code
?
// TimeTest.cpp : The main entrypoint for the application.
//
#define INITGUID
#include <dxdiag.h>
#include "DarkSDK.h"
#include "resource.h"
#include "stdio.h"
#include "stdlib.h"
#include "io.h"
#include <list>
using namespace std;
class blah
{
public:
int val;
blah();
~blah();
void update()
{
val = 123;
}
};
blah* test;
void DarkSDK (void)
{
dbSyncOn();
dbSyncRate(0);
while (LoopSDK())
{
test = new blah();
int a = 1;
while (a == 1)
{
dbCLS();
dbText(0,0,"Hello Lemsip");
dbText(0,10,dbStr(test->val));
if (dbSpaceKey())
{
a = 0;
}
dbSync();
}
break;
}
}
p.s. I know that val will be 'unassigned' if the code worked. Ta,
Cheers!