Puneet Ginoria
unread,May 19, 2012, 1:33:54 PM5/19/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to dislin-users
Hi , I have made a C program in C and i try to run it through visual
studio 2010 . It runs but shows no output. What is the problem ?
Here is the code:
#include "stdio.h"
#include "stdafx.h"
#include "stdlib.h"
#include "dislin.h"
#include <math.h>
#include <Windows.h>
int main()
{
int w = 800;
int h = 600;
int n = w*h;
unsigned char *d = (unsigned char *)malloc(n*4); // reserve place for
metafl("VIRT");
window(0,0,w,h);
winsiz(w,h);
page (w, h);
disini();
rectan(0,0,w,h);
imgmod("RGB");
imgini();
rpixls(d,0,0,w,h);
imgfin();
disfin();
getchar();
return 0;
}