Search Results

Showing results 1 to 8 of 8
Search took 0.02 seconds.
Search: Posts Made By: asifjavaid ; Forum: C and child forums
Forum: C Jun 16th, 2009
Replies: 8
Views: 810
Posted By asifjavaid
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
Posted By asifjavaid
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
Posted By asifjavaid
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
Posted By asifjavaid
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
Posted By asifjavaid
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
Posted By asifjavaid
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
Posted By asifjavaid
>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
Posted By asifjavaid
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.
...
Showing results 1 to 8 of 8

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC