I think its possible to get the serial number using the WMI. There is a class called Win32_BaseBoard by which u will get the serial number. There are some samples in the code project itself demostrating how to use WMI. Have a search
I am using a code snippet but something seems to be wrong with it. It is supposed to create a pop up menu from drop down menus which have already created but though it compiles successfully with the warnings:
C:\Program Files\Microsoft Visual Studio\MyProjects\Menus\MenusDlg.cpp(212) : warning C4552: '>>' : operator has no effect; expected operator with side-effect
C:\Program Files\Microsoft Visual Studio\MyProjects\Menus\MenusDlg.cpp(214) : warning C4700: local variable 'm_lMenu' used without having been initialized
i keep on getting an application error about memory referencing as if im having a memory overflow.
Below is the code snippet
void CMenusDlg::OnContextMenu(CWnd* pWnd, CPoint point)
// TODO: Add your message handler code here
// Declare local variables
CMenu *m_lMenu; // A pointer to the menu
CPoint m_pPoint; // A copy of the mouse position
// Copy the mouse position to a local variable
m_pPoint = point;
// Convert the position to a screen position
// Get a pointer to the window menu
m_lMenu - GetMenu(); //(Most likely the cause of Problems)
// Get a pointer to the first submenu
m_lMenu = m_lMenu->GetSubMenu(0);
// Show the Popup Menu
m_lMenu->TrackPopupMenu(TPM_CENTERALIGN + TPM_LEFTBUTTON,
m_pPoint.x, m_pPoint.y, this, NULL);
Please Help. Thanks.
Man can be an Island but Islands to need water around them to be islands (Own).
when do we get this kind of errors.................
i got this error ,i declared it in .h file and implemented it in .cpp file,plz kindly help me if any lig or dll required for it.............
dsn1 error LNK2019: unresolved external symbol _SQLConfigDataSource@16 referenced in function "public: bool __thiscall DynamicDSN::CreateDSN(class ATL::CStringT<char,class strtraitmfc_dll<char,class="" atl::chtraitscrt<char=""> > > &)" (?CreateDSN@DynamicDSN@@QAE_NAAV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@@Z)
look here plz.the same i build in VC++6.0 and got the same error i have given the lib file as "odbccp32.lib".this is working file,but when came to ,net 2003 i have given the same file as lib but it still give me the same eroor,plz help me.................
yes ,chandu.its working fine in VC++ 6 afteradding the lib file ,the same i did in .net 2003 ,it doesn t go fine the above error occurs
plz help me..................
No, not at all. This is a linker error, meaning that the compilation went ok (so, all required header files were included). But, the linker cannot find a variable. It comes usually because you declared somewhere an extern variable (with the extern keyword) but forgot to define it in a specific cpp file.
When I am checking the .Wav file using mmioDescend(hSrc ,&mmckInfoParent,NULL,MMIO_FINDRIFF );, it is returning MMIOERR_OUTOFMEMORY in debug mode. But Release mode works well.
What could be the reason for this?
Thanks & Regards,
Last Visit: 1-Dec-20 5:05 Last Update: 1-Dec-20 5:05