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");
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?
Today is a gift, that's why it is called the present.
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.
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?
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
using namespace std;
First off thank you very much. I read into the embeded function and your right, it will not work.
I do however feel there is something missing. I relocated the entire section related to retrieving the local computer name, to outside int main().
I think there needs to be
and have string GetLocalComputerName; cin >> or output somehow. Because the program compiles, yet it dosent seem as if it is doing anything. After I type in the password, it should jump to the next sequential portion of the program, and retrieve the username. It does nothing but stare back at me. I feel as if I am missing something, can someone point me in the right direction? I do a lot of reading but the reading needs to be put into perspective. Thank you very much in advance.
The code I'm writing is designed to read into a Smart Card Reader. However, I've having a most difficult time trying to just setup the connection and get the filename so I can use CreateFile.
I've looked at the MSDN Library and done countless searches on the topic and have seen various things. Some people allocate the SP_DEVICE_INTERFACE_DETAIL_DATA struct, and claim it works, and some don't and they also claim it works (Both of which do not work for me).
The current way my code is set up right now pulls the required size, but when it goes to fill in the struct, the program freezes. Quite frustrating, really.
So here's my question: What must I do to the struct prior to attempting to fill it in with SetupDiGetDeviceInterfaceDetail in order to pull up *->DevicePath ??
if(SetupDiEnumDeviceInterfaces(hDevInfo, NULL, &SCRGuId, n, &DeviceInfoData))
found = TRUE; requiredsize = 0;
sprintf(af, "reqsize: %d", requiredsize);
SendDlgItemMessage(hWnd, IDC_ACTIONLIST, LB_ADDSTRING, 0, (LPARAM)(LPCSTR)af);
if(requiredsize != 0)
//this is the problem code...can anybody help me here?
DevDetailInfoData->cbSize = sizeof(SP_DEVICE_INTERFACE_DATA);
I use this approach when querying audio devices using the ANSI API's ...
// Get details for the device registered in this class
DWORD size = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA) + MAX_PATH * sizeof(WCHAR);
// use vector so it will clean up afterwards
// set up the pointer
SP_DEVICE_INTERFACE_DETAIL_DATA* pDevInterfaceDetails =
// let SetupDi know how big a buffer we have ...
pDevInterfaceDetails->cbSize = sizeof(SP_DEVICE_INTERFACE_DETAIL_DATA);
// get the device path ...