|
What do you mean by "owner-draw dialog"?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
What I mean is that,the rect of the dialog based window is not the nomal rectange but round rectange or other shape.I also paint its color no longer than gray.
Then,when the dialog is minimized,there would be a thin frame on the screen!
|
|
|
|
|
Are you setting a proper window region for the shape of the window?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes,I am sorry.I find the fault of my program now.
When I paint the window,I used GetClientRect() function.
I neglected the fram width!
Thanks very much.
GOOD LUCK.
|
|
|
|
|
In an Visual C++ 6.0 application, I want to get Serial Number of Motherboard, but I don't know how to do. I'm in dark!!! Please help me!!!
Thank you very much!!!
|
|
|
|
|
even i tried for the same but in vain , allternatly i could find serial no: of HDD. will it work for you
|
|
|
|
|
Ok, thank you for your support.
If maybe, you can find Serial Number of HDD for me, please.
Thank you very much!!!
|
|
|
|
|
|
nps_ltv wrote: I want to get Serial Number of Motherboard
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
|
|
|
|
|
See Win32_MotherboardDevice and
Win32_BaseBoard::SerialNumber;<br /> if helpfuls.
|
|
|
|
|
Hi Guyz.
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
ClientToScreen(&m_pPoint);
// 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).
|
|
|
|
|
Wamuti wrote: m_lMenu - GetMenu(); //(Most likely the cause of Problems)
a minus symbol( - ) in between??? change it to '='
m_lMenu = GetMenu();
|
|
|
|
|
Thanks 1000000000000...
Man can be an Island but islands to need water around them to be islands (Own)
|
|
|
|
|
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)
|
|
|
|
|
please continue the same previous thread.
not a new one each time.
please delete the new entry and post it by replying from my post.
thank u.
|
|
|
|
|
Looks like you need to link to the Odbcinst.lib library
Regards,
Davy
|
|
|
|
|
Hi all,
When I perform the SQLExecDirect Function, I receive a return code of -2, what does it mean? Can anyone please assists me?
ret = SQLExecDirect(m_hStmt, (SQLCHAR*)szSqlStr, SQL_NTS);
The only programmers that are better that C programmers are those who code in 1's and 0's
Programm3r
My Blog: ^_^
|
|
|
|
|
SQL_INVALID_HANDLE is defined as -2 in sql.h
|
|
|
|
|
|
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..................
|
|
|
|
|
usually when you use some variable or function, without including the headerfile, where it is defined,
you will get such problems.
are you facing any?
|
|
|
|
|
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.
|
|
|
|
|
Check whether you have added the cpp file in the project( take the file view and check the cpp file is under the "Source Files" ).
|
|
|
|
|
you mean it is working in vc6 and not in .net 2003.
|
|
|
|
|
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,
Suman
|
|
|
|