|
sanjutvm wrote: So when i open a recordset, i'm getting unhandled exception.
Which implies you should have a try /catch block to handle this.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Thank you for the reply.
I've catch(CDBException* pDB), catch(CException* e), catch(...). But it is not going to any one of this catch block.
Thanks & Regards,
Sanju
|
|
|
|
|
Is IsDestinationReachable() of any help?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi,
Thank you for the reply.
Actually, i need to check the connection status of db if network is disbled and enabled in between. I'm using odbc connection.
Thanks & Regards,
Sanju
|
|
|
|
|
simon alec smith wrote: sorry for the multiple posting
don't say that. just delete your multiple posts and please follow a same and only thread
spot the delete and Modify links at the bottom of your messages... you are on a forum, not a chat
|
|
|
|
|
Getting Undeclared identifier in MFC
|
|
|
|
|
Please provide some more informations...
MSDN says :
Requirements<br />
<br />
Header: atlimage.h
did you include this header?
|
|
|
|
|
Please show the relevant code-snippet.
(And delete the other, unused, forum posts. Thank you!)
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Already posted this, and tried out <altimage.h> didn't work
anything else you might suggest
|
|
|
|
|
please don't post multiple posts.....
|
|
|
|
|
Hi,
I start first instance of my activex control in IE it works fine, but when i launch another instance of IE that contains my activex control it crashes, does anyone know about it?
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|
|
what i under stood from your question is you have developed an AX in vc++ and using in html right. confirm me i will try to answer.
|
|
|
|
|
Thanks for reply.
chandu004 wrote: you have developed an AX in vc++ and using in html right.
Yes exactly, sorry for vague question.
Best Regards,
Mushq
Mushtaque Ahmed Nizamani
Software Engineer
Ultimus Pakistan
|
|
|
|
|
You've provided no details so it's hard to say much.
Steve
|
|
|
|
|
As per MSDN is have implemented the method
HRESULT CreateComponentCategory(CATID catid, WCHAR *catDescription)
HRESULT RegisterCLSIDInCategory(REFCLSID clsid, CATID catid)
HRESULT UnRegisterCLSIDInCategory(REFCLSID clsid, CATID catid)
and modified the method
STDAPI DllRegisterServer(void)
STDAPI DllUnregisterServer(void)
My code compile perfectly, but still my ocx show the same warning when i initialize the ocx from my web page.
Can any one help me.
Is any certificate required to do so?
Regards
gr
|
|
|
|
|
HI
Why is my window displaying the previous content after i resize it and draw it completely ????.
Thanx'n'Advance.
|
|
|
|
|
If the window dont have the class styles CS_VREDRAW and CS_HREDRAW, then the window will not be redrawn automatically. Then you have to call the Invalidate to get the window redrawn, in the OnSize().
- NS -
|
|
|
|
|
Thank u.
I am sorry for mentioning it as window. its a dialog box , and i found that
its calling paint immediately after WM_SIZE as its painting the client area,
but the previous content remains at that position.
Once i min/max or send a wm_paint to dialog box the previous content gets disappeared
Thanx'n'Advance
|
|
|
|
|
arshadkc wrote: the previous content remains at that position
I think you are not erasing the background. Can you show me the code in OnPaint and OnEraseBkgnd?
arshadkc wrote: i min/max or send a wm_paint to dialog box the previous content gets disappeared
It is expected, right?
- NS -
|
|
|
|
|
this is what i do.....in paint
CRect rect(10,10,200,200);
this->GetClientRect(&rect);
CPaintDC dc(this);
dc.FillRect(&rect,new CBrush(RGB(255,0,255)));
dc.Rectangle(rect.Width()/2,rect.Height()/2,100,100);
i dnt process WM_SIZE or WM_ERASEBKGND
ya thats what i expect.....
|
|
|
|
|
|
Use UpdateWindow immediately after ShowWindow function which force it to Update its contents.
|
|
|
|
|
Thank u all for replyin
this is what i do.....in paint
CRect rect(10,10,200,200);
this->GetClientRect(&rect);
CPaintDC dc(this);
dc.FillRect(&rect,new CBrush(RGB(255,0,255)));
dc.Rectangle(rect.Width()/2,rect.Height()/2,100,100);
i dnt process WM_SIZE or WM_ERASEBKGND
if WM_SIZE repaints whole client area, why is it not filling the rect coz of which the previous content is displayed... am i correct??
Thanx'n'advnance
|
|
|
|
|
Code is doing exactly what it should do.. what do you want to do buddy ??
|
|
|
|
|
ok
I want to display a rectangle at the middle of dialog box.
for that i
. first fills my whole client area with a particular color
. then i draw a rectangle at the middle of ma client area.
. Now when i maximize my window i get two rectangle's. one at top left and
other at middle.
. so i just want to know why am i gettin the top left rectangle when i maximize.
Hope u got it... may be i am wrong , if wrong please help me...
Thanx'n'advance
|
|
|
|