I have been translating AFL to DLL for reasons of hiding code. In this thread I like to ask small coding questions since my knowledge of C++ is still poor.
I am going through all the warnings I get during compilation (which I have ignored so far). Mostly it are warnings that can simple be corrected for like: conversion from ‘int’ to ‘float’, possible loss of data
how do I get this warning out of the way: “warning C4267: ‘argument’: conversion from ‘size_t’ to ‘unsigned int’, possible loss of data”
the warning points to this line of code:
arg6.string = (char *)gSite.Alloc(strlen(“Helvetica”) + 1);
I seemed to have removed the warning using:
arg6.string = (char *)gSite.Alloc( (int)(strlen(“Helvetica”) + 1));
is that correct?