|
yes font is installed that is why it is showing in other resources.
|
|
|
|
|
Hi,
I want to install usb device driver in xp machine through my mfc exe application.
My driver is a dll file with some other files referenced in an inf file.
User is able to install it by right clicking inf file and choosing "install".
But when I try to register it through my mfc, it does not install.
I have tried three functions..
1. SetupCopyOEMInf with inf file path
2. ShellExecute(NULL,L"open",L"rundll32.exe", infpath, NULL , SW_SHOWNORMAL);
3. ShellExecuteEx with rundll32.exe, driver path, and verb as "install"
but none succeed.
Any suggestion how to do it.
|
|
|
|
|
Hi,
I have a string from socket. Now I want copy some bits from this string . Like bits from offset 3rd to 27th.
Please tell that how can I do this?
Thanks and Regards,
Vishal Soni
|
|
|
|
|
Vishal Kumar Soni wrote: I have a string from socket. Now I want copy some bits from this string
Copy to what?
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
[My articles]
|
|
|
|
|
Copy these bits to long variable or in some other string.For different cases, I need to copy the bits in to different type of variables.
Thanks,
Vishal
|
|
|
|
|
const char s[]="foo";
int i= (*(int * )s) & 0x07FFFFC;
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
[My articles]
|
|
|
|
|
Thanks CPallini!
Regards,
Vishal Soni
|
|
|
|
|
|
|
Hi Alison,
I want to copy bits from string not byte. It can be starting from 4th bit of first byte to 5th bit of 6th byte.
GetAt is for bytes.
Thanks
Vishal
|
|
|
|
|
|
Thanks Alison!
Regards,
Vishal Soni
|
|
|
|
|
Hi,
Can we restrict the window move to certain extent in screen.
We can move the window left or right by clicking on the Caption Bar and when we move to left side,its get moved and and also it moves out of screen alos. Can we restrict that.Like it should be move when X=50,y=50.With this limit it should move anywhere.But after that it shold not move.
Pls help me.
Anu
|
|
|
|
|
Have a look at this DavidCrow's article: "Bounded rectangles".
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
[My articles]
|
|
|
|
|
I saw that.And when i change the left and right corner,the size of dialog get changed.
Anu
|
|
|
|
|
Its working now.Thanks.
Anu
|
|
|
|
|
You restrict your window's size by handling the WM_GETMINMAXINFO message.
LRESULT OnGetMinMaxInfo ( WPARAM wParam, LPARAM lParam )
{
MINMAXINFO* pmmi = (MINMAXINFO*) lParam;
pmmi->ptMinTrackSize.x = 100;
pmmi->ptMinTrackSize.y = 150;
pmmi->ptMaxTrackSize.x = 600;
pmmi->ptMaxTrackSize.y = 400;
return 0;
}
|
|
|
|
|
I cannot get OnGetMaxMinInfo as LRESULT
it looks like this only
void CChildFrame::OnGetMinMaxInfo(MINMAXINFO* lpMMI)
Anu
|
|
|
|
|
Hi,
I want to remove title bar of running application. I have HWND of that windows.
How can I do this?
|
|
|
|
|
In Mainframe class,in PreCreateWindow(),set window style as
cs.style = WS_POPUP ;
Anu
|
|
|
|
|
That windows, which title bar is to removed, is third party application.
|
|
|
|
|
|
::SetWindowLongPtr(hWnd, GWL_STYLE, ::GetWindowLongPtr(hWnd, GWL_STYLE) & (~WS_CAPTION));
|
|
|
|
|
Remove the relevant styles from the target window:
DWORD dwStyle = ::GetWindowLong(hWnd, GWL_STYLE);
DWORD dwRemove = WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX;
DWORD dwNewStyle = dwStyle & ~dwRemove;
::SetWindowLong(hWnd, GWL_STYLE, dwNewStyle);
::SetWindowPos(hWnd, NULL, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
cheers,
AR
When the wise (person) points at the moon the fool looks at the finger (Chinese proverb)
|
|
|
|
|
Alain Rist wrote: DWORD dwNewStyle = dwStyle & ~dwRemove;
You may just use
DWORD dwNewStyle = dwStyle ^ dwRemove; there.
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
[My articles]
|
|
|
|