Forum: C Aug 10th, 2009 |
| Replies: 4 Views: 662 /*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 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 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 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 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 dont know how to use. tell me how? |
Forum: C# Jan 22nd, 2009 |
| Replies: 8 Views: 2,072 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 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 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 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 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 @cVz:
I didnt get you, will u please explain in brief. |
Forum: C# Jan 18th, 2009 |
| Replies: 16 Views: 2,776 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 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 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 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 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 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 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 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 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 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 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 |
Forum: C Sep 27th, 2008 |
| Replies: 4 Views: 546 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 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 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 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 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 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 |
Forum: C Sep 1st, 2008 |
| Replies: 2 Views: 404 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 |
Forum: C Aug 31st, 2008 |
| Replies: 2 Views: 1,577 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 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 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 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 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 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 =... |