Hi, I have a syntax error as the one above, but its on the first line of my program. I'm using Microsoft Visual Studio .NET, so I can still run the program, but I can't do any debugging because it can't get by the first line. Any ideas?
I think my computer was just being eval... I tried to comment out some code to try debugging and it rebooted my comp, after the reboot it stopped giving me THAT error... not just have to get it to properly load a dll (I didn't put the code because its about 2000 lines)
thx
... If I comment out some code, it says newline error, if I uncomment the code, it says can't find msado15.dll... here's the code that I comment out from the main program
/*
int CheckAccount(SubmitPass Account)
{
_RecordsetPtr spRS;
_ConnectionPtr spCON;
int SendErrorAccount(int GUID)
{
ErrorPac Err;
void *packet;
HRESULT hReturn;
Err.no = 1;
Err.dwSize = sizeof(ErrorPac);
Err.dwType = PACKET_TYPE_BADPASSWORD;
// Convert the packet to a void stream
packet = (VOID*)&Err;
// Send the chat packet
hReturn = hrSendServerMessage(GUID, PACKET_TYPE_BADPASSWORD,packet, DPNSEND_GUARANTEED);
return( 0 );
}
int SendServerList(GUID)
{
Servers List;
void *packet;
HRESULT hReturn;
List
List.dwSize = sizeof(Servers);
List.dwType = PACKET_TYPE_SERVERLIST;
// Convert the packet to a void stream
packet = (VOID*)&List;
// Send the chat packet
hReturn = hrSendServerMessage(GUID, PACKET_TYPE_SERVERLIST,packet, DPNSEND_GUARANTEED);
return( 0 );
}*/
here's the code that I comment out from one of my header's
/*
class SubmitPass : public PacketGeneric
{
public:
int GUID;
char szAccount[32];
char szPassword[32];
};
class ErrorPac : public PacketGeneric
{
public:
int no[2];
};
class Servers : public PacketGeneric
{
public:
char FirstGame[32];
int FirstPort[10];
char SecondGame[32];
int SecondPort[10];
char ThirdGame[32];
int ThirdPort[10];
char FourthGame[32];
int FourthPort[10];
char FifthGame[32];
int FifthPort[10];
char SixthGame[32];
int SixthPort[10];
char SeventhGame[32];
int SeventhPort[10];
char EighthGame[32];
int EighthPort[10];
char NinthGame[32];
int NinthPort[10];
char TenthGame[32];
int TenthPort[10];
char EleventhGame[32];
int EleventhPort[10];
char TwelthGame[32];
int TwelthPort[10];
char ThirteenthGame[32];
int ThirteenthPort[10];
char FourteenthGame[32];
int FourteenthPort[10];
char FifteenthGame[32];
int FifteenthPort[10];
char SixteenthGame[32];
int SixteenthPort[10];
};*/
there shouldn't be anything wrong w/ these.. but its giving me a newline error when they're commented out... that might be because some code ISNT commented out that refers to these functions/classes... but it'd be strange to give a newline error on the first line of the program
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.