|
yes david when i answer to this question i see he asked this question already
whitesky
|
|
|
|
|
So, what's your point?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I say and you say but again we say a same question again again,...,I can say please dont post a same question like a loop
whitesky
|
|
|
|
|
Hi,
I have a really annoying problem, and I can't find the solution to it. Hopefully someone here can help me.
When I run my application on Win XP with themes activated, sometimes the vertical scrollbar in my childwindows locks and can't be used. Though I can still scroll with left/right on the keyboard.
The app works fine on 2000/XP without theme.
The app is an MDI application, and in one of the windowcontrols, I have a windowcontrol and then a childwindow control.
It is the childwindow controls that locks, but only the ones I've created by myself. A CListCtrl for example works perfectly. It's like my controls doesn't get that the scrollbar is used.
I really, really hope someone can shed some light on this for me
/Markus
"Computers are like airconditioners, they don't work properly when you open windows..."
|
|
|
|
|
hi all,
I have a Dll which will call CForm View. I want to Access the Member functions of the CMainframe Class all member functions which are userdefined from the DLL when i Execute the DLL.
Please let me know.
uday.
|
|
|
|
|
You want to put your view class in a DLL? Or your Frame class? or both?
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
Are there any socket events in Windows and how can I handle them?
modified 9-Mar-17 17:16pm.
|
|
|
|
|
They hide that information in the DOCUMENTATION[^]
"Just about every question you've asked over the last 3-4 days has been "urgent". Perhaps a little planning would be helpful?" Colin Angus Mackay in the C# forum
led mike
|
|
|
|
|
Hello all,
I have an activex control,which is a video player plays .cam files.I run this activex control using IE.Everything is working good.
The problem is, if i open two windows(IE) at a time,one is crashing and showing error.how to overcome this problem..
Giv me some ideas..
Thanks in advance
Sunita
|
|
|
|
|
What does your video player do when a second instance is started?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
hi,
when the second instance gets started,a new player will be downloaded again.As soon as the new player downloads,the older player is crashed and the new player starts playing the old cam file.
Any solution for this..
thanks in advance
sunita
|
|
|
|
|
This question would probably be better answered in the COM forum ... but here goes:
Is this an OCX, DLL, or EXE? Specifically, is it running in process or out of process? If it is running in process, you shouldn't have this problem ... but if you do, chances are it is due to holding onto the sound or video resources so that another instance cannot access them. If it is out of process, are you starting a new instance for each time it is instantiated, or are you trying to use the same instance?
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
hi Zac,
Thanks for ur reply..
I am using dll of the activex control.I give its classId in <object> in HtmlPage(IE).
So whenver i open the IE page,Activex control Dll is downloded and then player starts downloading cam file and plays it.
So if i again open IE page,a new instance is instantiated and new player opens.This player uses the same Dll and starts downloading the cam file.
The problem is,as soon as 2nd player opens,the first player is crashing.
Any solution for this..
Thanks in advance
sunita
|
|
|
|
|
Can you explain how you to use your activex
whitesky
|
|
|
|
|
Hi,
If I have classes like this
class A
{
virtual void fun();
void gun(int);
int i, j;
}
class B : public A
{
virtual void fun1();
virtual void fun();
void gun(int);
virtual void run(int);
int i, j;
}
main()
{
A a;
B b;
}
Now how many vtable will create here.
-- modified at 2:17 Monday 17th July, 2006
|
|
|
|
|
Where is the class B?
If you have mistyped it , it should be like
class B:public A
Then In this case two VTABLEs will be created one for each class .
A VTABLE is created for each class containing a virtual function and for each of the class that is derived from it.
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
Hi Anshuman,
In this case, how many v-tables will be crated? (Means, the derived class doesn't have its own virtual fn.s.)
class A
{
virtual void fun();
void gun(int);
int i, j;
}
class B : public A
{
void gun(int);
int i, j;
}
Thanks in advance,
Sarvan AL
|
|
|
|
|
In this example only one vtable will be created which (ignoring RTTI) will contain a pointer to the single virtual function A::fun . The constructor (implicitly generated by the compiler) will set the vtable pointer in class A's instance data to point to this table. If B had overridden this method then there would be another vtable for class B and B's constructor would replace the vtable pointer (set in A) with a pointer to B's vtable.
Steve
|
|
|
|
|
how to close all child windows in MDI?
like the VC->windows->Close All
|
|
|
|
|
use AfxGetApp()->CloseAllDocuments(FALSE)
|
|
|
|
|
Hi everyone, i need to resize an image(sizes vary) to a thumbnail so that i can add it to an image list for a list box, what is the best way to do it.... any help would be much appreciated.
the image list and the list box work fine, but i am unable to resize the image. so when it is displayed you just see the top left hand corner of the image.
Thanks in advance
Lee
|
|
|
|
|
You have to create a thumbnail image by your self. Here is the code snippet for that
//lets say your original image is in BitmapOrg
BITMAP BmpInfo;
BitmapOrg.GetBitmap(&BmpInfo);
CDC *pDC=GetDC();
CDC MemDC,MemDC2;
if (MemDC.CreateCompatibleDC(pDC) && MemDC2.CreateCompatibleDC(pDC))
{
CBitmap Bitmap;
CSize szThumbnail(32,32);
if (Bitmap.CreateCompatibleBitmap(pDC,szThumbnail.cx,szThumbnail.cy))
{
CBitmap* pbmpOld=MemDC.SelectObject(&Bitmap);
CBitmap* pbmpOld2=pDC->SelectObject(&BitmapActual);
MemDC.StretchBlt(0,0,szThumbnail.cx,szThumbnail.cy,0,0,BmpInfo.bmWidth,BmpInfo.bmHeight,SRCCOPY); //this function will create a thumbnail
MemDC.SelectObject(pbmpOld);
MemDC2.SelectObject(pbmpOld2);
}
MemDC.DeleteDC();
MemDC2.DeleteDC();
}
ReleaseDC(pDC);
|
|
|
|
|
I think if you use StretchBlt for change size not good
see (of course its a suggestion)
<br />
CRect rect;<br />
Image *img ;<br />
ImageAttributes imAttrib; <br />
<br />
Graphics graphics(GetDC()->m_hDC) ;<br />
GetWindowRect(rect);<br />
ScreenToClient(rect);<br />
img = Image::FromFile(L"D:\\0.bmp") ;<br />
graphics.DrawImage(img,Rect(0,0,rect.right/2,rect.bottom/2),<br />
0,0,img ->GetWidth(),img ->GetHeight(),<br />
UnitPixel,&imAttrib);<br />
whitesky
|
|
|
|
|
Hi,
I Have used
MessageBox(NULL,"Please wait","Information",MB_OK).
to display message box in win32 DLL.
But now i need display a Message Box without any button ,i.e This message box should disappear itself after few seconds ...
Manjunath S
GESL
Bangalore
|
|
|
|
|
;Pcreate a dialog, and use time event......
|
|
|
|