|
Odd, should be under /usr/include somewhere. Can't get far without the standard C lib in UNIX.
Ryan
"Michael Moore and Mel Gibson are the same person, except for a few sit-ups. Moore thought his cheesy political blooper reel was going to tell people how to vote. Mel thought that his little gay SM movie about his imaginary friend was going to help him get to heaven."
- Penn Jillette
|
|
|
|
|
it can be somewhere weird, like /usr/include/asm-i386/, otherwise you may find it in <linux kernel="" headers="">/include/asm-i386
|
|
|
|
|
Here you can get the file[^]
under linux the file is present at
/usr/include/asm/
Knock out 't' from can't,
You can if you think you can
-- modified at 9:44 Friday 19th May, 2006
|
|
|
|
|
How to convert ASCII value to character. Meaning im reading data from device it gives 65 insted of 'A'. how can i get my data back in VC++.Net.
|
|
|
|
|
sivaprakashshanmugam wrote: ata from device it gives 65 insted of 'A'. how can i get my data back
printf("Data = '%c'", 65);
Maxwell Chen
|
|
|
|
|
Maxwell Chen wrote: printf("Data = '%c'", 65);
or
char ch = 65; :->
Nibu thomas
Software Developer
Faqs by Michael dunn
|
|
|
|
|
Nibu thomas wrote: char ch = 65;
char ch = 'A';<br />
printf("Data = '%c'", ch);
Maxwell Chen
|
|
|
|
|
|
Nibu thomas wrote: Copy cat...
Maxwell Chen
|
|
|
|
|
maybe it is some helpful to you Here[^]
whitesky
|
|
|
|
|
hi all,
I have an activex control(a video player which plays .cam files).
I have programed to play the video after the .cam file downloads completely.
But i want to play the video while it downloads.like buffering and streaming.
please help me.
thanks in advance
sunita
|
|
|
|
|
please explain in detail.
if possible give any example.
|
|
|
|
|
// shallow copy
Fxn(Class1 Obj1)
{
m_pPointer = Obj1.m_pPinter; // just copying the where the pointer points to
}
// Deepcopy
Fxn(Class1 Obj1)
{
m_pPinter = new int[obj1.size]
memcpy(m_pPointer,Obj1.m_pPinter,Obj1.size); // Allocating memory and copying its contents
}
-Sarath
|
|
|
|
|
|
A shallow copy of an object copies all of the member field values. This works well if the fields are values, but may not be what you want for fields that point to dynamically allocated memory. The pointer will be copied. but the memory it points to will not be copied -- the field in both the original object and the copy will then point to the same dynamically allocated memory, which is not usually what you want. The default copy constructor and assignment operator make shallow copies.
A deep copy copies all fields, and makes copies of dynamically allocated memory pointed to by the fields. To make a deep copy, you must write a copy constructor and overload the assignment operator.
Deep copy needs,
If an object has pointers to dynamically allocated memory, and the dynamically allocated memory needs to be copied when the original object is copied, then a deep copy is required.
A class that requires deep copies will generally need:
i )a destructor to delete the dynamically allocated memory.
ii) a copy constructor to make a copy of the dynamically allocated memory.
iii) an overloaded assignment operator to make a copy of the dynamically allocated memory.
Cheers
"Peace of mind through Technology"
|
|
|
|
|
Ganesh_T wrote: A shallow copy of an object ...
Exactly the same as the link I found.
Maxwell Chen
|
|
|
|
|
|
Nibu thomas wrote: Is it a Copy/Paste?
It's a deep copy!
Maxwell Chen
|
|
|
|
|
|
ROTFL.
OMG... Im a geek. I actually
a) got the joke
b) found it insanely funny.
Well... I can live with that
|
|
|
|
|
Maxwell Chen wrote: It's a deep copy!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
I want to add a progress bar to my dialog window which start in the thread function and ends after some process can u help me with this.
-------------------------------------------
BOOL CStatusDlg::OnInitDialog()
{
CDialog::OnInitDialog();
HANDLE hr;
hr = CreateThread(NULL,0,(unsigned long (__stdcall *)(void *))WorkerThreadProc,this,0,0);
return TRUE;
}
---------------------------------------------------
UINT WorkerThreadProc(LPVOID Param)
{
CStatusDlg* status = (CStatusDlg *)Param;
// I want the progress bar to start here
INDX.startIndex();
// I want the progress bar to stop here
return true;
}
Thanks
|
|
|
|
|
U have to call the StepIt function for the progress bar to progress each step..
nave
|
|
|
|
|
Thanks for ur response. can u please give me the code to do it? i dont want to display it in status bar
-- modified at 5:25 Friday 19th May, 2006
|
|
|
|
|
UINT WorkerThreadProc(LPVOID Param)
{
CStatusDlg* status = (CStatusDlg *)Param;
status->m_ProgressBar.SetRange( 0, 100 );
// progress barstart here
for( int i =0;i < 100; i++ )
{
status->m_ProgressBar.StepIt();
}
// Iprogress bar stop here
return true;
}
nave
|
|
|
|