|
|
Dear All,
Thanks Hamid for your reply.But I have already tried it out.It doesnot show the serial number or model number.It only shows the type as USB.But i need the details of the hard disk as mentioned in my question.Please do reply if anyone finds any clue how to find it out.
Thanks
|
|
|
|
|
Abinash Mohanty wrote: It doesnot show the serial number or model number.
Which could mean that the mfg. did not provide such information. Do you have proof to the contrary?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Why is the second call mapped to the macro version?
void f() {
puts("func");
}
#define f() puts("macro")
void main()
{
f();
f ();
(f)();
}
Output messages:
macro
macro
func
Press any key to continue . . .
Maxwell Chen
|
|
|
|
|
Possibly because 'irrelevant' blanks are removed by the preprocessor before macro expansion happens?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Maxwell Chen
|
|
|
|
|
Hi All
I have a CListControl and i have use SetExtendedStyle.I have InsertColumn four Column but it's showing five column.Last column is blank.How can i remove last blank column.i use like this.
m_list.SetExtendedStyle(m_list.GetStyle()|LVS_EX_TRACKSELECT);
m_list.InsertColumn(0, _T("Name"),LVCFMT_LEFT, 175);
m_list.InsertColumn(1, _T("Age"),LVCFMT_LEFT, 150);
m_list.InsertColumn(2, _T("Sex"),LVCFMT_LEFT, 150);
m_list.InsertColumn(3, _T("Class"),LVCFMT_LEFT, 150);
Plz help me
|
|
|
|
|
I would change the m_list.GetStyle() to m_list.GetExtendedStyle()
Gr Ronald
|
|
|
|
|
Does it always show one more than is being added?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
No Alwayes show one extra.
|
|
|
|
|
Hi,
I have taken an MDI application and overriden the Childframe's OnCreateClient
if (!m_mdiSplitWnd.CreateStatic(this, 2, 2,WS_CHILD | WS_VISIBLE|AFX_WS_DEFAULT_VIEW ))
{
TRACE0("Failed to CreateStaticSplitter\n");
return FALSE;
}
m_mdiSplitWnd.CreateView(0,0,RUNTIME_CLASS(CMyEditView),CSize(100,100),pContext);
m_mdiSplitWnd.CreateView(0,1,RUNTIME_CLASS(CSpreadSheetview),CSize(100,100),pContext);
m_mdiSplitWnd.CreateView(1,0,RUNTIME_CLASS(CSpreadSheetview),CSize(100,100),pContext);
m_mdiSplitWnd.CreateView(1,1,RUNTIME_CLASS(CSpreadSheetview),CSize(100,100),pContext);
RecalcLayout();
After running the application I am unbale to find a splitter in the childwnd ,hovering my mouse on I could notice the Splitters panes and Spreadsheet Ax Control in one of the views are partially visible.Also I could notice the splitter window is not sized when my childframe is maximized.
What Should I do to make my splitter window clearly visible and also to be resized with respect to childframe?
Thanks
Satya
Today is a gift, that's why it is called the present.
|
|
|
|
|
Hi All,
Good Morning.I am doing one ATL Based VC++ Program. And i want to generate reports using crystal report.This i tried in normal VC++ MFC program but when i tried with ATL Program it is giving error and i created one more ATL program in that i got error like "you can not add ActiveX Control in your project".So i want to know that is it possible to add any activex control to ATL Program or not? If it is possible then how can i do it please give me some hints. Otherwise please tell me anyone how to do reporting in ATL Based program?
Please help me.
Thanks in Advance,
Savitri P
|
|
|
|
|
I'm trying to built a windows app that sits on the system tray and pops up notification messages based on a pre-determined interval. It will be similar to how Yahoo Messanger notifies when someone on the contact list goes online/offline. I've managed to get my app to sit on the system tray, but no idea on the notification messages. Is it a dialog, or is it something else?
|
|
|
|
|
I don't know about notification dialog but you may find some help from ShowBalloon & SetNotificationWnd api of CSystemTray .
Here[^] is one article related to this topic you may find useful.
Do not trust a computer...
Always check what computer is doing
regards,
Divyang Mithaiwala
Software Engineer
|
|
|
|
|
eight wrote: ...but no idea on the notification messages.
See about halfway down this article.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
How can I get all folder names if specified folder, lets say "c:\new folder\" I want names of the all folder in new folder
|
|
|
|
|
|
|
Use FindFirstFile and FindNextFile.
The WIN32_FIND_DATA member dwFileAttributes will tell you if the file is a directory.
Cheers, Ronald.
|
|
|
|
|
Hi Everybody,
I have created one dialog based application and that is interacting with mysql database through DNS. I want to create setup now. But I dont know how to create setup for my mysql database. Pls help me.
|
|
|
|
|
I wish to set alternate colors on different rows in list view control.
Can anyone show me how to set background color at row in list view control (in report mode) in VC6++?
Thanks in advance.
*12Code
modified on Friday, April 10, 2009 12:27 AM
|
|
|
|
|
|
Hi all,
got a question thats bugging me. I can not figure out this very simple compile error I am getting. Here is the error:
C:\Documents and Settings\mininet\My Documents\C++\9APR09\test.cpp In function `int main()':
28 C:\Documents and Settings\mininet\My Documents\C++\9APR09\test.cpp expected primary-expression before "GetLocalComputerName"
28 C:\Documents and Settings\mininet\My Documents\C++\9APR09\test.cpp expected `;' before "GetLocalComputerName"
I know its related to the string. but what is wrong with it? If you tell me whats wrong, dont just tell me. Please include a description of why the string is messed up. Thank you in advance! Code is as follows:
<code>// Project 01 by Rob
#include <iostream>
#include <string>
#include <windows.h>
using namespace std;
int main()
{
system("CLS");
string password;
string GetLocalComputerName;
cout << "password: ";
cin >> password;
if (password == "123"){
system("CLS"); // Cleares the screen
cout << "password accepted" << endl;}
else{
cout << "password incorrect" << endl;
goto exit;}
exit:
system("CLS");
system("TITLE Local Computer Name");
string GetLocalComputerName()
{
TCHAR chrComputerName[MAX_COMPUTERNAME_LENGTH + 1];
string strRetVal;
DWORD dwBufferSize = MAX_COMPUTERNAME_LENGTH + 1;
if(GetComputerName(chrComputerName,&dwBufferSize)) {
strRetVal = chrComputerName;
} else {
strRetVal = "";
}
return(strRetVal);
}
//std::cin.ignore( std::numeric_limits<std::streamsize>::max(), '\y' );
return 0;
}
V/R
Rob
|
|
|
|
|
rbwest86 wrote: string GetLocalComputerName()
What is this?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
it is a string, i could have called it anything. But I kept it familiar with the function. All I am trying to do is retrieve the local computer name.
|
|
|
|