|
Any useful links to understand AVL Tree insertion Algorithm?
Sarath
|
|
|
|
|
hi all
does ne1 know the best way of extracting a sting
what i need to do i extract str1 out of str2
CString str1 = "7"
CSting str2 = "07HGN"
so the result for str2 would be "0HGN"
any ideas
thanks
si
|
|
|
|
|
Check out : CString members[^]
"If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
|
|
|
|
|
The common logic is:
int nPos = str2.Find(str1);
int nDelLen = str1.GetLength();
if(nPos != -1)
str2.Delete(nPos,nDelLen);
This is a simple method. u can also use extraction method using Left, Right, Mid functions and concatenate the extract the string.
Sarath
|
|
|
|
|
Or how about:
str2.Replace(str1,"");
....
|
|
|
|
|
CString str1 = "7";
CString str2 = "07HGN";
CString strResult = str2.Mid(0, str2.Find(str1)) + str2.Find(str.Find(str1)+1, -1);
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I have a CDialog (as child of something else) that I need to reparent to another window ( a CWnd child of a floating/non-floating evil dialogbar ).
Are there any caveats when reparenting CWnd in general ?
( I know it's very vague, but I'm looking for generics before going deeper into the problem )
Thanks.
Max.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Hi
I want to develop one small Win32 Console Application which monitors the Microsoft Exchange Outlook and if there is any new mail in user mail box it will tell that there is new message.
For this I want to use Advise Sink and and using MAPI I want to develop small application. Any material or any example that can help me.
Though I have foun many applications but all are in COM or DCOM so I don't know how to write Interface in simple C++ ?
Please if any one can help me it will be gr8
Thankx in advance...
Yours
Mike
|
|
|
|
|
kindly give me the information about how to link between the projects created in workspace using win32 console application
Nowshad.M.C
nowshadmc@rediffmail.com
|
|
|
|
|
Hi
I am starting a new project to program an AI Agent. Before I started I wanted to look for source code for similar projects. Can anyone give me links or anything? just to have an idea
Thanks
|
|
|
|
|
|
hiii...
how can i get an ICON from a window and pass it to the
CreateWindowEx function?
regards,
kedar.
|
|
|
|
|
kedar.dave wrote:
how can i get an ICON from a window and pass it to the
CreateWindowEx function?
if you want to get the Icon from some other window and use that in your window program you can use ExtractIcon api
here is small code listing for that
HICON m_hRemoteIcon;
CString m_strFileName;
<font color=#008000>
</font>
m_hRemoteIcon=ExtractIcon(NULL,m_strFileName,0);
<font color=#008000>
m_statIcon.SetIcon(m_hRemoteIcon);
"I Think this Will Help"
<h5
alok gupta="" <br=""> visit me at http://www.thisisalok.tk
|
|
|
|
|
thanks a lot Alok...
i also have another Query...
how can i get a bitmap and an image n use it ?
if possible...can u attach a piece of code..
regards,
kedar.
|
|
|
|
|
(MFC questions)
how to use mouse to resize property sheet
thx
includeh10
|
|
|
|
|
http://www.codeproject.com/property/resizableproperties.asp[^]
Basicly in your propertysheet's OnSize handler you have to resize the tab control to match the sheet and then resize the active page to match the tab control. Then use your propertypage's OnSize handler to resize the controls on the page.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it! Honoured as one of The Most Helpful Members of 2004
|
|
|
|
|
Is there any API to get dimensions(height and width)of an image(jpg or gif)?
Please help..
|
|
|
|
|
|
With GDI+ it could be like this:
#include <windows.h>
#include <gdiplus.h>
#include <stdio.h>
using namespace Gdiplus;
INT main()
{
GdiplusStartupInput gdiplusStartupInput;
ULONG_PTR gdiplusToken;
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
Image* image = new Image(L"Crayons.jpg");
UINT imageHeight = image->GetHeight();
printf("The height of the image is %u.\n", imageHeight);
delete image;
GdiplusShutdown(gdiplusToken);
return 0;
}
viliam
|
|
|
|
|
Hi,
Well, I have a console based application which keeps printing to the console for every second or so. The problem that I am facing is when some user clicks on the console, the application is just hanging because of the "printf()" function. The thread resumes operation only after the user presses the right click button.
Any clues as to how I can over ride the mouse events in a console application? (this seems to be the only solution to me, any other solutions are more than welcome).
I have heard something about "GetConsoleWindow()" etc. which provides an alternative to printf()...any1 can please update me on this??
Thanks a lot folks.
Regards,
Mahadevan.
|
|
|
|
|
Hi!
I am writing an application kinda photo album in which i want to provide the page flip effect. i don't know what
should i select from the following:
DirectX
GDI
OpenGL
or something else.
currently i worked with my graphics+web designer and developed the application using Flash; but you might know that
flash is not reliable and doesn't provide better integration with VC.
I can code in VC, C# and VB/VB.NET. so i would appreciate your effort if you suggest me in this regard.
Thanks.
Muneeb-ur-Rehman Baig.
A thing of beauty is the joy forever.
|
|
|
|
|
|
GDI is most apropriate for this. Although you can use DirectX and OpenGL even if you are going to be using C#.
This posting is provided "AS IS" with no warranties, and confers no rights.
Alex Korchemniy
|
|
|
|
|
Hi!
I have source codes of my programs. One of them is dialog based application and the other is SDI Single Document Interface. I would like to combine that two sources into one. SDI program should have the dialog based program inside. What should I do?
Best regards.
|
|
|
|
|
CSdiApp
CSdiDoc
CSdiView
CSdiMainFrame
----------------
CDialogApp
CDialogDlg
---------------
now copy the clas CDialogDlg to the SDI app, you must also open
the .rc file from the dialog app and add the dialogtemplate to your SDI app
CSdiApp
CSdiDoc
CSdiView
CSdiMainFrame
CDialogDlg
now you must check the CDialogApp class, if there is some code you must
also add to your new App.
Add a menuentrie to the Mainmenu, and in the eventhandler for
this menu you can create a modal dialog of your
old app and show it to the user...
I hope this helps.
|
|
|
|