|
toxcct wrote: but one has to be careful with BOOL, as I stated at the end of my most here[^]
Indeed. C language implicit mapping of non-zero values to true and zero value to false is more coherent.
toxcct wrote: looks like it has[^]
I saw it, but: shhhhhh, noone, except Nemanja, knows.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
CPallini wrote: I saw it, but: shhhhhh, noone, except Nemanja, knows.
Oh come on. You are a "C" lover. I would have expected you to know.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Well, I'm a traditional-C lover: that fancy new C99 is alien to me.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
Thanks for ur kind reply to all members whoever particpated in the discussion.,
by,
Manivannan@Congruent
Born to win...!
|
|
|
|
|
toxcct wrote: if you're coding in C, bool just don't exist
It did not exist in C89, but exists in C99[^]
|
|
|
|
|
Can anyone please tell me how to programmatically determine if a particular assembly is registered in GAC. Is there any API.
Thanks,
Mushq
|
|
|
|
|
posting on any of the .NET Message Board helps more.
|
|
|
|
|
Hi Raj,
Thanks for reply, actually I want to do that in C++, may be some API exists for finding an assembly in GAC, that's why I put it here.
Regards,
Mushq
|
|
|
|
|
Mushq wrote: actually I want to do that in C++,
yes, i believe it is .NET framework concepts, you may post in Managed C++ forum. I think there is .NET class library for installing assemblies in GAC, and there should be similar methods to find it also.
|
|
|
|
|
There is a command line utility called
gacutil /l or something like that.
|
|
|
|
|
i am using Date Time Picker for selecting Date and Month.
when i click on this control it display date, month,Year.
but i don`t want year.
can i remove year by code or any property is there ?
varun
|
|
|
|
|
CDateTimeCtrl* pCtrl = (CDateTimeCtrl*) GetDlgItem(IDC_DATETIMEPICKER1);
ASSERT(pCtrl != NULL);
pCtrl-><a href="http://msdn.microsoft.com/en-us/library/0x5f7wz2(VS.80).aspx">SetFormat</a>(_T("dd-MMM"));
|
|
|
|
|
Hi thanks yar
it is working
varun
|
|
|
|
|
I am using the MCIWnd class to play a video within my MFC application. However, the video location in the UI defaults to the upper left hand corner. I am trying to move that location using the MCIWndPutSource function.
Here is what I am trying:
m_Player = MCIWndCreate(GetSafeHwnd(),AfxGetInstanceHandle(),
WS_CHILDWINDOW | WS_VISIBLE | MCIWNDF_NOMENU, name);
RECT *temp = new RECT;
temp->left = 0;
temp->top = 500;
temp->right = 320;
temp->bottom = 740;
MCIWndSetZoom(m_Player, 200);
MCIWndPutSource(m_Player, temp);
MCIWndPlay(m_Player);
After the PutSource call, if I call the GetSource function, it returns back the original coordinates as if I did not move the location at all.
Anyone have an idea why this isn't working, or how I can accomplish this another way?
Thanks for anything.
|
|
|
|
|
|
MCIWndPutSource is to crop the video image, it seems you want to use MCIWndPutDest.
And it seems MCIWndPutSource fails; you haven't checked the return value, because may be the rectangle you specified is out of bound of the video image.
|
|
|
|
|
Rajkumar R wrote: MCIWndPutSource is to crop the video image, it seems you want to use MCIWndPutDest.
I have tried the PutDest function as well. When I use this, the video inside the window shifts, but the window in which it plays does not.
Basically, when the video starts to play, the child window (the video player) defaults to the upper left hand corner. If I use any of the MCI functions, it seems that the video within the player window will shift, but not the window itself which is what I am looking for.
|
|
|
|
|
then you just want to move the MCI child window, m_Player, right? MoveWindow, SetWindowPos.
RECT *temp = new RECT;
temp->left = 0;
temp->top = 500;
temp->right = 320;
temp->bottom = 740;
BOOL MoveWindow(
m_Player
temp->left,
temp->top ,
temp->right - temp->left,
temp->bottom - temp->top,
TRUE
);
remember you are positioning relative to parent window.
I thought you are trying to position the video within the MCI window.
|
|
|
|
|
Rajkumar R wrote: then you just want to move the MCI child window, m_Player, right?
Yes, I want to move the child window, but neither MoveWindow or SetWindowPos allow me to do that from what I can tell.
|
|
|
|
|
I don't remember, try MCIWNDF_NOAUTOSIZEWINDOW in MCIWndCreate if not working, i think you need to move the parent window (that is specify a movable child window as parent window of MCI window)
|
|
|
|
|
Hi,
i am working on a control derived from COleControl class. I want to delete a DC whenever the control get out of focus. But in case when i am pressing window key from the keyboard,
OnKillFocus() function is not working properly. Can anybody suggest an alternate solution.
Thanks.
|
|
|
|
|
IMHO use paint DC which spans only within the paint handler.
|
|
|
|
|
Hi, actually i am using the DC to call DrawDragRect function. On LButtonDown i am capturing the mouse and creating the DC and on LButtonUp i am releasing the capture and deleting the dc. But if user is pressing the the window button, OnLButtonUp is not getting called and the DC is not getting deleted.
Thanks
|
|
|
|
|
I think that is because your application lost capture when windows key is pressed. May be you need to handle the WM_CAPTURECHANGED Notification also.
|
|
|
|
|
Hi,
the application is working fine after using OnCaptureChanged.
Thanks
|
|
|
|