|
int main()
{
if(IsLinuxInstalled())
{
for(int nLoop = 0; nLoop < 25; nLoop++)
PlayBell(nLoop);
DeleteLinux();
InstallWindowsXP();
SoundWhistle();
}
return 1;
}
>Is Bill the man to see for the girls?
Sorry, I was getting confused between Bill Gates and Bill Clinton. See Clinton for the girls, Gates for the money. Don't forget to remove the stains afterwards though.
Michael
|
|
|
|
|
Hi,
Does anyone know if there is a way to add a flat, coloured scroll bar instead of the default grey, 3D one to a TreeView/TreeCtrl ?
I've tried loads of things such as superclassing as well as trying to capture the WM_CTLCOLORBTN/WM_CTLCOLORSCROLLBAR message but all to not avail. The GetScrollBarCtrl method always returns NULL for this type of view as well.
I've even tried capturing the WM_HSCROLL event in OnHScroll but the value of the CScrollBar* parameter returned by this is always NULL so you can't get a handle to it for subclassing.
Any help would be greatly appreciated,
Thanks,
Matt
|
|
|
|
|
Does anyone know if it is possible to copy and paste text AND PICTURES from IE to Word?
The HTML clipboard format seems to only support simple HTML markup without graphics, but it does not explicitly say this anywhere.
|
|
|
|
|
Hi, all.
========
I want my app to support unicode.
There for I want to know the unicode structure.
Unicode characters are typed as short (2 * char ).
My guess is...
that the short is the character number in the ascii table .
My friend's guess is...
that the 1st char is the table type ,
and the 2nd char is the character number in the ascii table .
Can some please enlighten me ?
thanks.
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
Hi
For the first 255 charachters the unicode codes matches the ansi table. Instead of having different tables with 255 charachters each unicode is one big table with roughly 65000 charachters covering the worlds all different languages and some special symbols aswell.
/Per
|
|
|
|
|
So how do I know the structure of this one big table with more then charachters?
How can I know where one language ends and the other begins ?
BTW: come to #CodeProject on DalNet (mIRC)
|
|
|
|
|
|
You could look in the Charachter Map in your accessories. Some fonts supports Unicode. I'm not sure but I think you have to have w2k to be able to see the Unicode charchters.
/Per
|
|
|
|
|
how do i link or mix fortran code to visual c++? the article in the msdn isn't making any sense at all...
thanks...
|
|
|
|
|
A thread is created by AfxBeginThread(...) in my project. How shall I know that the thread has already quit when I own the point to the thread?
|
|
|
|
|
Use this function
BOOL GetExitCodeThread(
HANDLE hThread, // handle to the thread
LPDWORD lpExitCode // termination status
);
if ( lpExitCode == STILL_ACTIVE )
// The thread is running
else
// The trhad has finished and lpExitCode contains the return code
|
|
|
|
|
Use something like this
BOOL HasAlreadyQuit(CWinThread* pThread)
{
return ::WaitForSingleObject(pThread->m_hThread,0)==WAIT_OBJECT_0;
}
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks!
|
|
|
|
|
Hello,
What is stack overflow? When I debug a program with iterative function. It said "Unhandled exception in Go.exe, 0xC00000FD: Stack Overflow". Who can tell me the reason. Did that mean my program ask for too many system resource?
Kidd
|
|
|
|
|
Each time you call a function, some information (namely the parameters passed, the address of the return point, etc.) is stored on a memory area called the stack, whose name stems from the fact that it behaves like a stockpile of items, i.e. it is fed up and emptied from the top. The stack grows as the program goes deeper into functions calling other functions and shortens as these functions return. Now consider this function for computing the factorial of a number:
int factorial(int x)
{
if(x==0)return 1;
else return x*factorial(x-1);
} factorial() works fine as long as you call it with a positive argument, but what happens if you invoke factorial(-1) ? The function calls itself again and again with arguments more and more negative, until the memory space reserved by the system for the stack fills up and the exception you report pops up.
What most probably happened to you is some kind of neverending recursive loop like this, though possibly in a more convoluted fashion.
Hope this helps.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
hi
I want to remove echo sound when record wave file form sound card....
|
|
|
|
|
Hi !!
i want to hook the File Directory system of my machine so that any File changes (like create,modify, rename etc) can be detected.
i am using FindFirstChangeNotificcation('Root Dir:\') to get the handles of all subdirectories inside the root. then using WaitForMultipleObjects() i wait for a change notification.
but this approach is not working fine. could someone suggest me a better approach. i can give further details.
PLZ HELP !!
|
|
|
|
|
You are using the right method. I don't know what's your problem with this, but look at this for more info.
MSDN article
Monitoring Changes in a Directory or Directory Tree
Platform SDK: Files and I/O
|
|
|
|
|
I need a list that can display files and folders of hard disk, and also support drag and drop,
|
|
|
|
|
Create two views View1 and View2 and then attach CTreeCtrl with view1 and CListView with view2.The member function of these classes are so much rich that all of explorer functionality could be implemented.....
and at the end "Thanks The MFC Classes".;P
|
|
|
|
|
Hi
I am writting an application to monitor the hardware device. My application is a DLL and I want it to send event notification to the mail application when something happens.
Anyone has any idea how to do that event notifications ?
Thanks in advance
Quang
|
|
|
|
|
What kind of event notifications? What kind of mail application?
Michael
|
|
|
|
|
Hi guys,
i want to make a bar chart schema,and i would like to ask U,if there is any way to make it with activex ,and how!
Thank u in advance!
|
|
|
|
|
I'd recommend you look at ATL/WTL. With these you can make any activex you want.
Michael
|
|
|
|
|
Hi guys,
i want to make a bar chart schema,and i would like to ask U,if there is any way to make it with activex ,and how!
Thank u in advance!
|
|
|
|