Search Results

Showing results 1 to 40 of 66
Search took 0.01 seconds.
Search: Posts Made By: ambarisha.kn
Forum: C Aug 10th, 2009
Replies: 4
Views: 662
Posted By ambarisha.kn
/*decimal to binary*/
#include <stdio.h>

void printBinary(const unsigned char val) {

for(int i = 7; i >= 0; i--)

if(val & (1 << i))

printf("1");
Forum: C++ Aug 10th, 2009
Replies: 3
Views: 410
Posted By ambarisha.kn
Question: Declare a pointer to a function taking an int argument and returning a pointer to a function that takes a char argument and returns a float.

I did code as follows. But it is giving...
Forum: Kernels and Modules Jul 8th, 2009
Replies: 3
Views: 895
Posted By ambarisha.kn
who the hell are you, you are not the person to speak about ability.
Ofcourse i am not brillinat than you, but u have some manners.
First learn how to behave.

If you dont know manners, your...
Forum: Kernels and Modules Jul 8th, 2009
Replies: 3
Views: 895
Posted By ambarisha.kn
HI,

I new to linux device drivers.
I am developing HDLC driver.
I dont know how to read and write data in memory mapped address.
Please help.

/*code*/

#define REG_MAP_ADDR 0x50400000
Forum: Kernels and Modules Jul 5th, 2009
Replies: 0
Views: 756
Posted By ambarisha.kn
Hi,
I am new to Linux device driver, i am developing HDLC-ip driver.
i dont know how to do memory mapping.
Please guide me how to do memory map.
Please find an attachment with this for list of...
Forum: C# Jan 22nd, 2009
Replies: 8
Views: 2,072
Posted By ambarisha.kn
dont know how to use. tell me how?
Forum: C# Jan 22nd, 2009
Replies: 8
Views: 2,072
Posted By ambarisha.kn
Here, how i am writing log to a file.
Its giving error only for some time. It may or may not give error as "Some other process using this file".

How to rectify this. Is it possible to wait...
Forum: C# Jan 21st, 2009
Replies: 8
Views: 2,072
Posted By ambarisha.kn
How to wait for some time while writing to a file.

I am appending some text in log file, its giving error as Some other process using this file.

How i have to wait untill its free.
Forum: C# Jan 19th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
if we use activate event, it will go infinite. not able to minimize of form1 or close of form1.
Forum: C# Jan 19th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
I have mentioned so many times, minimize and maximize is not a aproblem for me.

I already wrote this code for minimize and maximize of both forms and working fine, but the problem is as follows.
...
Forum: C# Jan 19th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
I want form2 should be in top, when form1 is also in top of other windows. To do this which event i have to call??

i.e if i click form1, both forms have to appear if it is behind the other windows.
Forum: C# Jan 19th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
@cVz:
I didnt get you, will u please explain in brief.
Forum: C# Jan 18th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
But i want event, when form1 come to front, to make form2 as topmost.

Need Event of form1, to make form2 as topMost.
when form1 come front from back screen.
Forum: C# Jan 17th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
i dont have problem in minimizing,maximizing, Show and close. How to bring to front of the form2 when form1 activates.

I want only one operation.

When form1 is in normal state but behind...
Forum: C# Jan 15th, 2009
Replies: 16
Views: 2,776
Posted By ambarisha.kn
I have 2 forms.
Form2 has no minimum, max, close icons.
Form2 have to control by form1.

i.e minimize of form1 becomes form2 minimize.
normal of form1 becomes form2 normal.
closing of form1...
Forum: C# Dec 16th, 2008
Replies: 1
Views: 413
Posted By ambarisha.kn
I am trying to do localization of ColumnHeadersDefaultViewStyle property of DataGridView.I need localization in both Japanese and English.
While designing the form, i set the Font Style of...
Forum: C Nov 5th, 2008
Replies: 1
Views: 604
Posted By ambarisha.kn
Its so simple, we have to write "wb" in fwrite instead of "w" , while writing binary file.

FILE *f1;
f1=fopen("c:\\ambi.dat", "wb");
fwrite(constDataArea, 1,4, f1);
fclose(f1);



I did...
Forum: C Nov 5th, 2008
Replies: 1
Views: 604
Posted By ambarisha.kn
Consider d_type=POINT_LONG in the following program.
and data.Long=0xA;

In the following program i am getting correct output in constDataArea[0],constDataArea[1],constDataArea[2],...
Forum: C Oct 23rd, 2008
Replies: 6
Views: 895
Posted By ambarisha.kn
Thanks Salem, I got it..

Actually i was confused with offset and address. Now i got it what is offset.

My code is working fine..
Code is as follows.
please suggest me if there is any better...
Forum: C Oct 22nd, 2008
Replies: 6
Views: 895
Posted By ambarisha.kn
How to get the current address. Actually first i leave some empty space to write the offset address.
After writing data from buffer, i have to calculate the offset address and have to write back the...
Forum: C Oct 22nd, 2008
Replies: 6
Views: 895
Posted By ambarisha.kn
Forum: C Oct 22nd, 2008
Replies: 6
Views: 895
Posted By ambarisha.kn
I wrote the following function and it is working fine, but my problem is i want to write forward pointer address in present pointer field.

I will explain in code.
please check line numbers 10,...
Forum: C Oct 21st, 2008
Replies: 3
Views: 808
Posted By ambarisha.kn
i tried that one, but it was giving error aschange of char ** to char* is not possible
Forum: C Oct 21st, 2008
Replies: 3
Views: 808
Posted By ambarisha.kn
I wrote the following function. i want to return fbCodeAddr and tmpAddr to the main function.

How to do this?

Function is as follows;


void fbExeCode(int BldCnt)
{
// for(int...
Forum: C Sep 27th, 2008
Replies: 4
Views: 546
Posted By ambarisha.kn
Thanks i got my mistake.
Forum: C Sep 27th, 2008
Replies: 4
Views: 546
Posted By ambarisha.kn
But if i make DB, DC as char its not possible to add 1024.

then how to add 1024 bytes to that
Forum: C Sep 27th, 2008
Replies: 4
Views: 546
Posted By ambarisha.kn
Hi,

I am allocating memory for some areas. For DB i need 1024 bytes, for DS 1024*2 bytes and so on, and i initialised address as follows.

I initailise devBaseAddr to DB, because DB comes...
Forum: C++ Sep 5th, 2008
Replies: 4
Views: 820
Posted By ambarisha.kn
Memory allocation is not my problem. I want to push in separate vectors. How i have to push into vectors in line no 18 and line 24.. Even i corrected the code with new operator, but for push into...
Forum: C++ Sep 4th, 2008
Replies: 4
Views: 820
Posted By ambarisha.kn
I have the following function. in this function i am not able to push back in vector.
I will explain how it works. if same f_pin will comes in the second iteration compared to first iteration of...
Forum: C Sep 2nd, 2008
Replies: 2
Views: 934
Posted By ambarisha.kn
Before i was opened the file as follows.

out_fp = fopen(oppath,"wb");


i am not writing into dat file. I am writing to text file. so i changed the code as follows and its working fine.....
Forum: C Sep 2nd, 2008
Replies: 2
Views: 934
Posted By ambarisha.kn
Hi everybody,

I want to write enter in a text file. How to do this. I wrote the code as follows. see if i write like this, it is printing one special character like arrow. I want to print in the...
Forum: C Sep 2nd, 2008
Replies: 2
Views: 404
Posted By ambarisha.kn
Thnaks. Its working fine
Forum: C Sep 1st, 2008
Replies: 2
Views: 404
Posted By ambarisha.kn
I have input files like this
a.iup
b.iup
c.iup.......

i have these input files in a variable called fname;
like this

char *fname="c:\\iupfiles\\a.iup";
every time i will get file name in...
Forum: C Sep 1st, 2008
Replies: 2
Views: 1,577
Posted By ambarisha.kn
Thanks its working fine
Forum: C Aug 31st, 2008
Replies: 2
Views: 1,577
Posted By ambarisha.kn
I want to read all files in a particular folder using C programming. HOw to do this. Thanks.

Ex: I have some 5 files in folder named c:\temp.
I want to read all files one after another and want...
Forum: C Aug 21st, 2008
Replies: 17
Views: 1,232
Posted By ambarisha.kn
i will not get next datasize, because i used unions. only one data will get at one time..
Forum: C Aug 20th, 2008
Replies: 17
Views: 1,232
Posted By ambarisha.kn
i have changed some corrections in the above code. is the following programming is good or please suggest me some other good idea.


char *constDataArea;
data.Short=5;
data.Long= 6;...
Forum: C Aug 20th, 2008
Replies: 17
Views: 1,232
Posted By ambarisha.kn
In the following code, we will get the output, and the data stores as follows.
actually i am getting dynamic input data..
first char is stored at 0th position
second long is stored at 1st...
Forum: C Aug 20th, 2008
Replies: 17
Views: 1,232
Posted By ambarisha.kn
This code is correct. we will get expected o/p. but the printf of last statement is wrong.
so we have to replace that printf as follows.

printf("const area:%d\t%d\t%d\t",constDataArea[0],...
Forum: C Aug 20th, 2008
Replies: 17
Views: 1,232
Posted By ambarisha.kn
Expected o/p is 1 5 6. but i am getting 1 0 0.. what is the corrections to get the expected o/p???

char *constDataArea;
data.Bool=1;
data.Short=5;
data.Long= 6;


const size_t BUFSIZE =...
Showing results 1 to 40 of 66

 


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

©2003 - 2009 DaniWeb® LLC