with the tm struct you can use the strftime function to format the output.
#include <stdio.h>
#include <time.h>
time_t t_now;
struct tm *tm_now;
t_now = time(NULL);
tm_now = localtime(&t_now);
char time_buf[50];
strftime(time_buf,50,"%d/%m/%Y %H:%M:%S",tm_now)...
I think that it's just an aproximation of how to do this ...
#include <wininet.h>
#define LAN 0x02
#define MODEM 0x01
int flags;
//If you are online it will return True, otherwise False
int Online = InternetGetConnectedState(&flags ,0);
if(flags & LAN)
// u r connected via lan...
i'm with alarcon and sirbu.
I got Dev-C++ and LCCWIN32 compilers installed , and I use both. More often LccWin32.
I used to develop SMTP servers POP servers. UDP apps. DLL's
bluenote@uyuyuy.com
(excuse my english)
you can try this one
#include <stdio.h>
#include <string.h>
#include <io.h>
void printFilesDir(char *mypath);
//FILE *fp;
int main(){
//char mypath[]="c:\\";
char *mypath;
//fp=fopen("c:\\test.txt","w");
mypath=strdup("c:\\")...
what do you mean with 'no difference'??
"hello world\n" is not the same that "hello world\r\n"
bluenote@uyuyuy.com
(excuse my english)
in pure vb code i recomend to replace all string manipulation functions, such as right, left, str, mid , etc .. for right$, left$, str$ mid$, lcase$, ucase$, etc ...
inside functions use a var that store the length or a string, dont use Len(myString) over and over in the same function ..... i...
hi!,
lil' sample ....
lets say that you have main form (frmMain), this is the startup object, and a config form (frmConfig).
When the app starts, the application automatically loads the main form (frmMain). at frmMain_Load() you can:
Load the config form (frmConfig) with Load frmConfig, this...
how made the api???
try to export the functions with a c compiler, it would make an .exp file. There you can find some info 'bout the params ..........
bluenote@uyuyuy.com
(excuse my english)
try this ........ ::-)
function getfilename(byval s as string) as string
dim ch as string
dim i as long
dim output as string
for i = len(s) to 1 step -1
ch = mid$(s,i,1)
if ch <> "\" then
output = ch & output
else
exit for
end if...
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.