|
Your are right. It will be hard to find such a number.
I thought there may be a possibility to convert the string on the fly without storing the whole number.
|
|
|
|
|
Heiko Gschwind wrote:
I thought there may be a possibility to convert the string on the fly without storing the whole number.
Yes, converting a base-16 string to a base-10 string is certainly feasible.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Is there a simple way (newbie), to find out if IE has finished loading? I am using VC .NET. I start IE with CreateProcess.
|
|
|
|
|
You need to handle the Browser events to acheive this.
Regards
Abhi Lahare
|
|
|
|
|
You should create a browser helper object, and handle the DOCUMENT_COMPLETE event.
Isn`t really simple, but there are a lot of examples in the web
|
|
|
|
|
:-DI am using MDI architecture wherein I need to scroll the MDI Child windows manually by dragging the scroll bars and using the Mouse Wheel.
For setting the horiz. & vert. scrolls in my child views, I have used the foll.
BOOL CChildFrame::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying the CREATESTRUCT cs
if( !CMDIChildWnd::PreCreateWindow(cs) )
return FALSE;
cs.style = WS_CHILD|WS_OVERLAPPEDWINDOW|WS_CAPTION|WS_MINIMIZEBOX|WS_SIZEBOX|WS_VSCROLL|WS_HSCROLL;
//cs.dwExStyle = WS_EX_RIGHTSCROLLBAR;
return TRUE;
}
*******************************************************************
So both the scrolls are visible. But iam not able to scroll the view by dragging the scrolls manually.
In order to implement MouseWheel i have defined the following.
*********************************************************************
BOOL CKolOSDBuilderView::OnMouseWheel(UINT nFlags, short zDelta, CPoint pt)
{
CPoint devPos;
devPos = GetDeviceScrollPosition();
if (zDelta < 0)
SetScrollPos(SB_VERT, devPos.y + m_panelVer / 10, TRUE);
else
SetScrollPos(SB_VERT, devPos.y - m_panelVer / 10, TRUE);
// this->ScrollWindow(devPos.x,devPos.y,
InvalidateRect(0); // Redraw
return CView::OnMouseWheel(nFlags, zDelta, pt);
}// EOF OnMouseWheel()
The handler is invoked but the scroll positions remain unchanged.
laiju
|
|
|
|
|
Did you have override the OnDraw function, if yes, check that, you may be drawing from the upper portion only, you have to get the scroll position and then have to draw that part of the image that actually comes on the screen, i.e. remove the top portion according to the scroll position.
http://www.priyank.in/
|
|
|
|
|
iam using the default OnDraw function that the frame work generates .
Hence Iam not overriding it.
laiju
|
|
|
|
|
laiju wrote:
OnDraw function that the frame work generates
AFAIK, framework already done that for you i.e. Overidden
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
R u saying i have to set the scroll position in ondraw where the first drawing exactly starts by specifying the method.
SetScrollPos().
laiju
|
|
|
|
|
|
Hey all,
I am new to this forum. Wish I was good at programming , so i cud have posted the solutions...unfortunately, I am not...Instead I have my own query....and am desperately seeking help...
I have this assignment submission next week. I have no idea about the logic for this assignment. My assignment is as follows:
*********************************************
Text segmentation from images with scenery + text. Obtain at least 10 images from newspapers, magazines etc. Some should be color. (3 min) Scan them as necessary. Devise three segmentation techniques to separate letters from background. Methods should be essentially automatic in operation. Methods: may include :Thresholding Local or Global, Color. Geometric Features, Texture
*************************************************
Can anyone help me out with the logic for this program? This thing is in C++. All I have done is binarise the input image.But I dont know how to proceed. Please help me out guys.
Cheers,
Raj
|
|
|
|
|
Do you know what Thesholding, Color, Geometric Features, Texture are referring to ?
Here's an obvious one - The text in all cases is going to be black - what if you looked for all pixels that were above a certain level and made them all white, which would hopefully leave you mostly with black text ? Any other black groups can be removed by checking that groups are individually within a certain size/shape.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey Christian,
Thanks for that reply. I did try that method out. But couldnt figure out a way to get rid of black images which were not text. You have referred to "checking the groups that are individually within a certain shape/size. How do I define that CERTAIN SHAPE/SIZE in the program?
Well, the thresholding in the program is the same what you suggested. Color refers to the cases where we have an image with say red text on it. so we have to seperate on the basis of color.
I am not quite sure how this method is going to work for color images.
Thanks anyways,
Raj
|
|
|
|
|
Hi,
i previously implemented an application using the SNMPUTIL code provided as a sample by Visual C++ guys. That sample used APIs to implement version 1 of SNMP. Now the problem is that i have to update it to version 3 of SNMP and i cant find any APIs that give me this functionality. Does any one know of any free samples or APIs that i can use.
Thanks in advance
regards
|
|
|
|
|
First of all, please downLoad my VC6 project with bug here [^]
In MyAppBarDlg.cpp , you will find these codes:
void CMyAppBarDlg::OnButton1()
{
dlg=new CAppBarDlg(IDD_DIALOG1,GetDesktopWindow());
ASSERT (dlg);
dlg->Create (IDD_DIALOG1);//here here, build the bar
dlg->m_pAppBar->AutoHide();//NoAutoHide() to disable it
dlg->m_pAppBar->SetAlwaysOnTop(TRUE);
}
the AppBar has 2 properties "AutoHide" & "AlwaysOnTop", I want both properties to work together, but it doesn't.
Who can do me a favor to fix this project? Please reply here or send me a mail.
thx very much!!!!!
My Email: orma_charf@hotmail.com
Ghostex@126.com
|
|
|
|
|
Please , help me~~~~
i must finish it in the next week.
|
|
|
|
|
Dude - everyone's problem is an 'emergency'. Why do you need to finish it next week ? There's not really anything useful on there as it stands - is it homework ? Are you required to make it stay on top and autohide at the same time ? Can you get a notification of when the window is shown if it is autohiding ? I'm wondering if you can call SetWindowPos just when the window is visible and when it hides again.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
thx for your reply and i am sorry to use 'emergency'. But .........lots of reasons.
As this is a Shell Programming, and i've not had any experience about it, so i couldn't handle this problem.
It is my work, so i have to finish it as a part of project. By the way, it is not my homework and i am not a student.
Just because it is a Shell Object, the parent Wnd of the dialog is not the Desktop. its parent is a AppBar Object.
At the moment , i don't know where the problem would be. The project is based on the ShellApi SHAppBarMessage().
So i come here for help. i hope someone can help me to find and resolve the problem.
|
|
|
|
|
Can I use these methods Receive and Send of CSocket to send char or Unicode string like TCHAR ?
Thank you.
|
|
|
|
|
microsoftcertificate wrote:
Can I use these methods Receive and Send of CSocket to send char or Unicode string like TCHAR ?
Yes!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
|
|
|
|
|
I created a CString StringData; on the Document Side
and also initialize it on the constructor as StringData = "";
Then i used the WM_CHAR, and typed this codes.
void CCaretsView::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
{
CCaretsDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
pDoc->StringData += nChar;//Error from here "It pop out an error saying that its error C2593: 'operator +=' is ambiguous
Invalidate();
CView::OnChar(nChar, nRepCnt, nFlags);
}
What Happen?
|
|
|
|
|
nChar is a UINT. conversing from int to char is implicit ( it happens all by itself ), but UINT is a completely different type. Try pDoc->StringData += (char)nChar;, that should do it ( or something similar to that, in any case ).
If you pass FALSE to your Invalidate, it won't call WM_ERASEBKGND, which will eliminate flicker. You realise that this code will not allow for the user to edit the string, but just to make it longer ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
hello body, I want to use IShellView to refresh my desktop.So I write follow codes,but it does not work. Please help me .Thanks in advance.
//--------------------------
CoInitialize(NULL);
IShellFolder *ppshf=NULL;
IShellView *iShelview=NULL;
SHGetDesktopFolder(&ppshf);
hr=ppshf->CreateViewObject(::GetDesktopWindow(),IID_IShellView,(LPVOID*&iShelview);
iShelview->Refresh();
iShelview->Release();
ppshf->Release();
|
|
|
|
|
Hello geek's
want to ask you..
what a method you are suggesting for me in this my project:
I want to grab frames or whole video from two USB WebCam's simultaneously..
So, what I must to use to do it ?
I mean what technology:
VFW
DirectShow
WDM
or smf..
I working with MSVS C++
thanks a lot
oh, links, source codes are welcome..
|
|
|
|