|
The Win32_DiskDrive class would have been my first guess, but it has no serial number property. Hmmm
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
See MS KB article Q208048.
|
|
|
|
|
Hi,
I have a question. I was given some source code which uses windows.h header. However, I need to use CCriticalSection which uses afxmt.h. Obviously, the compiler does not like it when it reaches windows.h. The original code has windows.h defined all over the place. Can I set the project setting to ignore these? Or is my only choice to remove the windows.h header. I hate changing other people's code without extreme need. Thanks.
|
|
|
|
|
The net result is to remove any extraneous inclusion of windows.h. This can be done in a variety of ways. One way would be to modify each file to include stdafx.h only. Then add all header files that do not belong to your project into stdafx.h. Even though it does not belong to your project, in this case there would be no reason to add windows.h because the AFX-related files include it automatically. Make sense?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hi!
I'd like to make my status bar Right to left using the mirror technology. How can I do that??????????
|
|
|
|
|
Hi..
i work on a project that use MSSQL Server 2000 and VC++
so i would like to ask if anyone know a good site to guide
me ..
(Note : i already reading from MSDN library but i need
site that explain it in different way )
thanks)
|
|
|
|
|
Depends on what you are trying to do with SQL Server, how you want to access it (ODBC, OLE/DB, DBLib native api) and if you want to use the MFC CDatabase/CRecordset classes or do it yourself using your own class/api.
onwards and upwards...
|
|
|
|
|
Hi..
i have been doing some researches on that and i found that
ODBC and MFC classes will be good for my application.
if it help u:
the idea of my application is transferring records from
one MSSQL database to another on different server
i have to specify source and destination server
so any site is good to explain something like that
|
|
|
|
|
I am trying to automate Outlook using Visual C++. Here is what I am trying to do:
void CTestOutlookDoc::OnFileTest()
{
Outlook::CApplication pApp;
if (!pApp.CreateDispatch(_T("Outlook.Application")))
{
CString str;
str.Format("CreateDispatch() failed w/error 0x%08lx", e.m_sc);
AfxMessageBox(str, MB_SETFOREGROUND);
return;
}
pApp.m_bAutoRelease = TRUE;
pApp.Quit();
return;
}
When the code is executed, an instance of Outlook is created. However, even I call Quit() in my code, OUTLOOK.EXE still remains in Windows Task Manager after the program is quit. What should I do in order to kill the OUTLOOK process when I call Quit() in my function?
Regards,
Frank
|
|
|
|
|
Something else is awry here. Since pApp is an automatic variable, calling pApp.Quit() and returning from the onFileTest() function have the same result: pApp goes out of scope and is automatically destroyed.
I tried this same code on my machine and Outlook.exe comes and goes accordingly.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
how can i hide Shell_NotifyIcon from other program
|
|
|
|
|
I don't quite understand your question. Shell_NotifyIcon() is a function within the Windows SDK. How/why are you wanting to hide it from some other program?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Agree. I want to hide Icon, created by Shell_NotifyIcon().
|
|
|
|
|
In other words, you want to know how to use Shell_NotifyIcon() .
http://www.codeproject.com/shell/StealthDialog.asp
http://www.codeproject.com/shell/ctrayiconposition.asp
http://www.codeproject.com/shell/YaTrayMin.asp
http://www.codeproject.com/shell/siv_trayicon.asp
http://www.codeproject.com/shell/trayicons.asp
http://www.codeproject.com/shell/mfcstartup.asp
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Shell_NotifyIcon&btnG=Google+Search
...should get you started.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
No. I know how to use Shell_NotifyIcon().
I don't know how to use it with another's applications ( created by NOT ME )
|
|
|
|
|
So what are you wanting to do with it? Are you wanting to change the behavior of another application for which you do not have the source code?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I want to make something like WindowsXP hide icons.
|
|
|
|
|
Hi!
How can I change the CodePage programaticlly????
Regards
George
|
|
|
|
|
Does SetThreadLocale() or _setmbcp() help?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I tried to set the codepage using these commands, but it didn't help. I added the command to the constructor of my CWinApp class. I want to set the Arabic codepage!
Do you have any other idea?????
|
|
|
|
|
George Clarence wrote:
I tried to set the codepage using these commands, but it didn't help.
Did SetThreadLocale() return a non-zero value? Did _setmbcp() return zero?
After calling SetThreadLocale() and _setmbcp() , did you then call GetThreadLocale() and _getmbcp() to verify the new setting?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Hi!
I think, the SetThreadLocale command is used only to set the Language of the ressources and not to set the codepage. Is this true?
|
|
|
|
|
George Clarence wrote:
Is this true?
No. It also sets the code page.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
Can someone point me to an article that discusses 100% owner drawn edit controls? I have been rolling my own controls lately, but CEdit has been troublesome. Perhaps I'm just lazy with the search tool, but there doesn't seem to be much on this topic on CP.
Cheers.
|
|
|
|
|
Hi there,
I have a CPropertySheet derived class which contains two different size property pages. I can dynamically change the size of the other property page by pressing "More/Less" button and it seems to work OK. But when this page is in full size and I activate another property page (which is smaller), how can I force Sheet/Page to redraw all the controls again? I have also same problem when I change the property page from smaller page to bigger. I tried to use RedrawWindow() and Invalidate() but those seems not to work in this case. Doos anyone have any idea what should I do?
TIA,
-HS
|
|
|
|