|
It's not that easy - the dialog B is a modaless dialog and its parent is a MainFrame...
|
|
|
|
|
maybe this could help.....
use GetParent() function and retrieve the pointer to the main window,
then use the PostMessage(WM_CLOSE, 0, 0);
hope that helpz.....
cheerz
|
|
|
|
|
hi all,
I want to create access database using provider="Microsoft.Jet.OLEDB.4.0"...
How to Dinamically create Access database using it?
|
|
|
|
|
hello everybody,
what is the responsible part which decides in which language messagebox buttons are displayed ? Does someone have a clue?
thanks in advance,
hph
|
|
|
|
|
ask your windows how you installed it...
TOXCCT >>> GEII power
|
|
|
|
|
Boy what a question, hundreds of articles have been written on this M$ spent great deal of time with iffy solutions. As for default buttons that is easy, Right Click on the Dialog in the resource view, Properties, Language.
Make sure your compiler has the targeted lang pack installed from M$.
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
I am having trouble in registering a dll module which is an add-in for Visual Studio .NET 2003:
DLLRegisterServer in cyclocomplexviewernet.dll failed.
Return code was: 0x80070002.
Using the Error Lookup tool this means:
The system cannot find the file specified.
My question is how do I find out how to find which file the regsvr32 program is looking for?
I am the handsome one in the crowd.
|
|
|
|
|
Try to use Denpends in Visual Studio Tools to investigate which runtime dll is needed.
|
|
|
|
|
Do you mean the error happens, when compiling a visual studio add-in project ?
There is no spoon.
suhredayan
|
|
|
|
|
Create one function called Writelog(), pass the error code to this function
and write to some file. Now check what is the root of problem !
Try to get error code using GetLastError()
nways have you written RegisterServer() function in your code of dll ?
Regards,
Vishal More
|
|
|
|
|
Firstly you replied to a wrong message.
vishalmore wrote:
Try to get error code using GetLastError()
Since FranzKlein already have the error code :"0x80070002", wots the point in using GetLastError() again ?
There is no spoon.
suhredayan
|
|
|
|
|
No, compilation runs fine. It occurs when I use Regsvr32 to register the specified dll with the registry.
I am the handsome one in the crowd.
|
|
|
|
|
Try entering the fully qualifed path to the dll in question when using RegSvr32.
e.g. Instead of RegSvr32 my.dll use RegSvr32 c:\mydlllocation\my.dll
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
Hi all,
I have a dialogbox created in an SDI application on which i placed a ownerdraw buttons and i am displaying some characters on the buttons and when i open the dialog box for the first time with shift key pressed on keyboard i am able to see capital letters on the buttons and when i open the dialog box with out pressing the shift key small letters are apperaring and if I press shift key on the keyboard after opening the dialog box and click on the button i could see the capital letter on the button but my reqirement is when i click shift key on my keyboard after opening the dialog box i shold be able to see capital letters on all the buttons without clicking them
my drawitem function is as follow:
void MybutCls::DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct)
{
::DrawFrameControl(lpDrawItemStruct->hDC, &lpDrawItemStruct->rcItem,
DFC_BUTTON, BS_PUSHBUTTON);
int iSaveDC;
CDC* pDC;
pDC=CDC::FromHandle(lpDrawItemStruct->hDC);
VERIFY(pDC);
short caps=GetKeyState(20);
if((0x8000 ==(0x8000 & GetKeyState(16))&& !caps)||(0x8000 !=(0x8000 & GetKeyState(16))&& caps))
{
if(lpDrawItemStruct->CtlID==IDC_BUTTON65)
::DrawText(lpDrawItemStruct->hDC,"A",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON66)
::DrawText(lpDrawItemStruct->hDC,"B",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON67)
::DrawText(lpDrawItemStruct->hDC,"C",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
}
if((0x8000 ==(0x8000 & GetKeyState(16))&& caps)||(0x8000 !=(0x8000 & GetKeyState(16))&& !caps))
{
if(lpDrawItemStruct->CtlID==IDC_BUTTON65)
::DrawText(lpDrawItemStruct->hDC,"a",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON66)
::DrawText(lpDrawItemStruct->hDC,"b",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
if(lpDrawItemStruct->CtlID==IDC_BUTTON67)
::DrawText(lpDrawItemStruct->hDC,"c",1,&lpDrawItemStruct->rcItem, DT_SINGLELINE|DT_VCENTER|DT_CENTER);
}
iSaveDC=pDC->SaveDC();
pDC->RestoreDC(iSaveDC);
// Invalidate(FALSE);
}
|
|
|
|
|
what should i need to do to wake up the lcd so that it will detect that i am
trying to communicate with it.plz help
chels
|
|
|
|
|
i want to create sample dialog tab control.......
|
|
|
|
|
What`s the problem?
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|
|
i want to use tab control in my mdi application...
(i don't mean mdi tab control)
tab control with image and button.
|
|
|
|
|
>>>>>>>>>>>>>>>This is my error>>>>>>>>>>>>>>
MyTabCtrl.cpp(54) : error C2275: 'CMyTabDlg' :
illegal use of this type as an expression
MyTabdlg.h(13) :
see declaration of CMyTabDlg'
>>>>>>>>>>>>>>>This is My code>>>>>>>>>>>>>>>>
//MyTabCtrl.cpp
CDialog *m_tabPages[2];
//MyTabCtrl.cpp
void CMyTabCtrl::Init()
{
m_tabCurrent=0;
m_tabPages[0]->Create(CBiometric_TabDlg,this);
//what i use parameter
m_tabPages[1]->Create(CBiometric_TabDlg,this);
m_tabPages[0]->ShowWindow(SW_SHOW);
m_tabPages[1]->ShowWindow(SW_HIDE);
SetRectangle();
}
//MyView.h
CMyTabCtrl m_tab;
//MyView.cpp
void CMyView::OnInitialUpdate()
{
CFormView::OnInitialUpdate();
m_tab.InsertItem(0, _T("One"));
m_tab.InsertItem(1, _T("Two"));
m_tab.Init();
}
|
|
|
|
|
Edit: I'm using VC6 and MFC
How do I capture the OnKeyDown() event inside an PRE element?
I have read a few articles on this subject on MSDN and here on CP but i'm still confused as to where to start.
I read that CCmdTarget is derived from IDispatch so in MFC all I have to do is derive a Event sink class from CObject and then do the typical AfxAdviseSink() or something like that.
I'm current looking at the following:
Handling HTML Element Events [^]
But i'm still lost as to where to start...
Can someone fill in the details I htink i'm missing???
Thanks in advance
Cheers
How do I print my voice mail?
|
|
|
|
|
Hi
The PRE element is just preformatted text. Look at the structure and also an article that is on this site, concerning pre el.
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
hi,
my module is to send and receive a byte using rs232 with 8051 driver programming.in c
pls help
chels
|
|
|
|
|
BYTE bt_var;
bt_var = 0;
Now send it.
"Naked we come and bruised we go."
- James Douglas Morrison
Best Wishes,
ez_way
|
|
|
|
|
hai everybody,
I am a trainee, I am given a module to program lcd display Hitachi 44780 ,with 8051 micro processor,in c.can i know how to start with,and to proceeed,and any related websites for this lcd programming in match with my specification.plz help
chels
|
|
|
|
|