www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih

Join the forum, it's quick and easy

www.gmindo.web.id/forum
Forum ini sudah tidak dipakai lagi. Silakan ke forum baru di www.gmindo.web.id/forum Very Happy

Terima kasih
www.gmindo.web.id/forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

[code error] Dll c++ unexpected error while runing

Go down

[code error] Dll c++ unexpected error while runing Empty [code error] Dll c++ unexpected error while runing

Post by Zihad Rizky Edwin Fikri Tue 22 Apr 2014, 18:35

Mau tanya donk ini kenapa unexpected error while running??

main.h
Code:

#ifndef _FSize
#define _FSize
#define _dllexport extern "C" __declspec(dllexport)
_dllexport long get_fsize(char *fdir);
#endif
main.cpp
Code:

#include <iostream>
#include "main.h"

_dllexport long get_fsize(char *fdir){
FILE *f;
long sizef;
f=fopen(fdir,"rb");
if (f=NULL) {return -1;}
else {fseek(f,0,SEEK_END);
sizef=ftell(f);
fclose(f);
return sizef;}
}
Zihad Rizky Edwin Fikri
Zihad Rizky Edwin Fikri
GM Beginner
GM Beginner

55%
Jumlah posting : 409
Points : 431
Join date : 12.05.13
Age : 26
Lokasi : jaktim

Kembali Ke Atas Go down

Kembali Ke Atas

- Similar topics

 
Permissions in this forum:
Anda tidak dapat menjawab topik