Forum: C Jun 16th, 2009 |
| Replies: 8 Views: 810 Hi all, Thanks very much for alls participation.
Arkm, yes you are right I can access the contents of void* buf_ptr by doing the following.
void* buf_ptr = NULL;
buf_ptr = malloc(1428480);... |
Forum: C Jun 11th, 2009 |
| Replies: 8 Views: 810 Hi all,
I working in VC++. I have a void pointer. I am assigning a memory block to it using malloc().
void* buf_ptr = NULL;
buf_ptr = malloc(1428480);
I am filling this buffer using fread().... |
Forum: C Sep 24th, 2008 |
| Replies: 4 Views: 1,530 hi guys,
working in C using Borland Compiler we can get scan codes of keyboards keys by this code
ch = getch();
if (ch == 0)
ch = getch();
printf("%d",ch); |
Forum: C Sep 9th, 2008 |
| Replies: 11 Views: 4,948 Sir I want to do ti actually because I am professional Software Engineer working in a software house and currently this is my requirement, but i am stuck here. Many thanks
Asif Javaid |
Forum: C Sep 9th, 2008 |
| Replies: 11 Views: 4,948 hi sir,
my problem is that
I have an integer value e.g. 1428480.
first I have to convert it into hexa decimal format ---------> 0x15cc00.
convert the resultant hexa format data into little... |
Forum: C Sep 9th, 2008 |
| Replies: 11 Views: 4,948 Well sir I understand you and did exactly what you said but still it is in problem see my whole code below
int sample_size = 720*496*4;
char *buffer = buffer = new char[8];
char *hexValue;... |
Forum: C Sep 9th, 2008 |
| Replies: 11 Views: 4,948 >Of course, atoi() converts the leading zero for you.
>Skip "0x" then use strtol() function.
>It's so easy...
well sir many thanks for respoonce
my problem is that I dont want to skip "0x"... |
Forum: C Sep 9th, 2008 |
| Replies: 11 Views: 4,948 hi all,
I want to convert a string contain hex format '0x15' and what to convert it integer because i want to write data contain by a integer variable in hex format (binary data) into the file.
... |