15,868,141 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by వేంకటనారాయణ(venkatmakam) (Top 63 by date)
వేంకటనారాయణ(venkatmakam)
27-Sep-11 5:21am
View
URL was corrected
వేంకటనారాయణ(venkatmakam)
19-Aug-11 2:58am
View
if you want read a line you can try like cin.getline(p, 80);check documentation of getline.
వేంకటనారాయణ(venkatmakam)
19-Aug-11 2:58am
View
Deleted
if you want read a line you can try like cin.getline(p, 80);check documentation of getline.
వేంకటనారాయణ(venkatmakam)
17-Aug-11 8:03am
View
Hey do not submit your comments as solution. you can use "Have a Question or Comment?" widget to give your reply.;)
వేంకటనారాయణ(venkatmakam)
4-Aug-11 9:08am
View
From your code i can think only the problem lies in that line.Try to rebuild the project and check.Also since you are using c++, try to use cin, cout.
వేంకటనారాయణ(venkatmakam)
22-Jul-11 2:48am
View
code is missing i think.repost the full code.
వేంకటనారాయణ(venkatmakam)
18-Jul-11 1:33am
View
Deleted
DockControlBar(&m_wndToolBar, AFX_IDW_DOCKBAR_BOTTOM); will dock your control bar on bottom of your window
వేంకటనారాయణ(venkatmakam)
14-Jul-11 9:17am
View
Full Information prerak. My 5
వేంకటనారాయణ(venkatmakam)
14-Jul-11 2:08am
View
Thank you Joan Murt
వేంకటనారాయణ(venkatmakam)
13-Jul-11 8:08am
View
Good home work :-).My 5.
వేంకటనారాయణ(venkatmakam)
12-Jul-11 2:31am
View
What you are getting in OnFileNew()?Have you seeing any child Frame created?
వేంకటనారాయణ(venkatmakam)
7-Jul-11 10:48am
View
See in System Info API link you can see lots of API's like GetProductInfo to know the product and service pack details.Take sometime and check each function.
వేంకటనారాయణ(venkatmakam)
6-Jul-11 2:04am
View
what is the vectorxyz type?
వేంకటనారాయణ(venkatmakam)
1-Jul-11 1:51am
View
which line is giving error?
వేంకటనారాయణ(venkatmakam)
28-Jun-11 4:54am
View
I think you can simulate the above toolbar functions by sending the messages like,TB_GETRECT,TB_SETBUTTONWIDTH,TB_SETMETRICS to toolbar hwnd.But i never tried in win32
వేంకటనారాయణ(venkatmakam)
22-Jun-11 1:59am
View
if you handle all edit changes in same OnEnChangeEdit handler,then how you are knowing which edit box is updated.Anyways if you provide the code inside
OnEnChangeEdit handler then it will be somewhat easy to understood the problem.
వేంకటనారాయణ(venkatmakam)
14-Jun-11 7:51am
View
Deleted
what is pages[l] in pPropertySheet->AddPage(pages[l]);
వేంకటనారాయణ(venkatmakam)
3-Jun-11 1:30am
View
No problem :)
వేంకటనారాయణ(venkatmakam)
3-Jun-11 1:29am
View
Thank you
వేంకటనారాయణ(venkatmakam)
2-Jun-11 11:29am
View
Added code block
వేంకటనారాయణ(venkatmakam)
2-Jun-11 11:26am
View
Thank you:)
వేంకటనారాయణ(venkatmakam)
2-Jun-11 4:51am
View
Thanks Harish
వేంకటనారాయణ(venkatmakam)
2-Jun-11 4:51am
View
Thank you.
వేంకటనారాయణ(venkatmakam)
2-Jun-11 4:51am
View
Thanks
వేంకటనారాయణ(venkatmakam)
1-Jun-11 5:09am
View
More on "self-assignment",
http://www.parashift.com/c++-faq-lite/assignment-operators.html
వేంకటనారాయణ(venkatmakam)
1-Jun-11 5:09am
View
Perfect Example with member pointers.5ed
వేంకటనారాయణ(venkatmakam)
30-May-11 3:09am
View
True.It will work. My 5
వేంకటనారాయణ(venkatmakam)
27-May-11 5:02am
View
passing file path as argument and checking the return value...,I think it is a simple solution :).
వేంకటనారాయణ(venkatmakam)
26-May-11 8:12am
View
I did not aware of that question.But for checking the existence of directory i think CreateDirectory is not a good solution,since we have some more alternates.:-)
వేంకటనారాయణ(venkatmakam)
26-May-11 6:54am
View
But CreateDirectory will create the directory if it not exists.So it is not useful i think.Any way i countered down vote :-)
వేంకటనారాయణ(venkatmakam)
24-May-11 3:22am
View
Check this article,
http://www.codeguru.com/cpp/controls/buttonctrl/windowsxp/article.php/c8211/
CCustomBitmapButton is a custom cwnd class.Check the notifications send by the CCustomBitmapButton, and how they are handled in the dialog.
వేంకటనారాయణ(venkatmakam)
19-May-11 3:34am
View
I think you have to provide some more information where you are getting the problem.
std::out_of_range error will come for lots of reasons.For example if you are accessing invalid index..
వేంకటనారాయణ(venkatmakam)
18-May-11 10:00am
View
this is the real requirement. This has to be mentioned in your question.So the requirement is that you have to generate a 10 digit unique number,Like a roll number for a student,right.
వేంకటనారాయణ(venkatmakam)
18-May-11 9:59am
View
Deleted
this is the real requirement. This has to be mentioned in your question.So the requirement is that you have to generate a 10 digit unique number,Like a roll number for a student,right.
వేంకటనారాయణ(venkatmakam)
18-May-11 9:25am
View
I think Niklas Lindquist given a easy solution. you will have only one 10 digit number and whenever you want to generate a number just increment it as uniqueNumber++;There is no need of updating last number.
వేంకటనారాయణ(venkatmakam)
9-May-11 14:00pm
View
More detailed explanation on this pointer.My 5 too.
వేంకటనారాయణ(venkatmakam)
9-May-11 13:58pm
View
Yes Shilpi is right.The functions(code memory) will be shared by all objects."this" pointer is used to refer the class member variables in the shared functions.refer the following link how "this" pointer is used in functions.
http://www.learncpp.com/cpp-tutorial/87-the-hidden-this-pointer/
http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=%2Fcom.ibm.xlcpp8a.doc%2Flanguage%2Fref%2Fcplr035.htm
వేంకటనారాయణ(venkatmakam)
2-May-11 9:32am
View
Code tags are added
వేంకటనారాయణ(venkatmakam)
2-May-11 7:44am
View
Thanks, I will do that next time:-)
వేంకటనారాయణ(venkatmakam)
2-May-11 7:43am
View
Deleted
Thanks, I will do that next time:-)
వేంకటనారాయణ(venkatmakam)
2-May-11 6:57am
View
Like this, this->textBox1->AppendText(line);
వేంకటనారాయణ(venkatmakam)
2-May-11 1:12am
View
you should not post comments as answer.Either you give it as comment to particular question or use improve question field.
వేంకటనారాయణ(venkatmakam)
2-May-11 1:12am
View
Deleted
you should not post comments as answer.Either you give it as comment to particular question or use improve question field.
వేంకటనారాయణ(venkatmakam)
19-Apr-11 7:18am
View
Then I did not get what you want now?You want us to complete the remaining?
వేంకటనారాయణ(venkatmakam)
18-Apr-11 1:25am
View
solution2:
Let your directory dialog is DirectoryDiag, and File dialog is FileDialog.
1st Idea:
Create a Constrcutor for FileDialog like this
CFileDialg::CFileDialog(CString& DirectoryPath)
{
//Save the DirectorPath in FileDialog Member variable.
}
In Directory Dilaog call fileDialog as
<pre>
void buttonClick_DirectoryDiag
{
//Your code for directory creation;
//After open the file dilaog
FileDialog fileDialog(Directorypath);
fileDialog.DoModal();
CString FilePath = FileDialog.FilePath;
}
2nd Idea:
user clicks on the button of DirectoryDiag after providing the directory path.So on button handler you probably do the following
<pre>
void buttonClick_DirectoryDiag
{
//Your code for directory creation;
//After open the file dilaog
FileDialog fileDialog;
fileDialog.DoModal();
CString FilePath = fileDialog.FilePath;
}
</pre>
Now in the File dialog you have a edit box for file path.so crate a DDX_Text(I think you know this) for that edit box and let the varaiabl name is FilePath.User Clicks on the button of FileDialog after providing the path.So in the button handler,
<pre>
void buttonClick_FileDialog
{
OnOk();//Updates All the controls data
}
</pre>
వేంకటనారాయణ(venkatmakam)
14-Apr-11 4:49am
View
I did not get the question but what i understood is you want show same dialog box two times one after the other correct?
వేంకటనారాయణ(venkatmakam)
13-Apr-11 6:47am
View
Yes Good link and good article.My 5 to both
వేంకటనారాయణ(venkatmakam)
2-Apr-11 10:38am
View
Thank you i like the first article and i will give a try.My 5.
వేంకటనారాయణ(venkatmakam)
29-Mar-11 8:02am
View
Thank You
వేంకటనారాయణ(venkatmakam)
29-Mar-11 8:01am
View
At this moment i have only one idea,
handle ON_COMMAND(ID_FILE_NEW, onFileOpen) in CChildFrame class.In onFileOpen() function you send your own message to CMyView window.Replay if you have any doubts.
వేంకటనారాయణ(venkatmakam)
28-Mar-11 6:05am
View
welcome
వేంకటనారాయణ(venkatmakam)
17-Mar-11 5:03am
View
Thank you
వేంకటనారాయణ(venkatmakam)
16-Mar-11 10:25am
View
Yes you are right i missed to define the destructor(means you can you can give {} if you don't want to do any thing in destructor)
class CInterface
{
public:
virtual ~CInterface() = 0 {};
virtual void SomeAction()=0;
};
class DerivedA:public CInterface
{
public:
DerivedA(){}
~DerivedA(){cout<<"In Deriveda"<<endl;}
void SomeAction()
{
cout<<"Action from Derived class A ."<<endl;
}
};
int main()
{
CInterface* A = new DerivedA;
delete A;
return 0;
}
వేంకటనారాయణ(venkatmakam)
16-Mar-11 3:34am
View
Check Solution from santosh for the code implementation of this solution
వేంకటనారాయణ(venkatmakam)
15-Mar-11 2:05am
View
Thank you,I used these links when i started learning MFC
వేంకటనారాయణ(venkatmakam)
1-Mar-11 2:28am
View
oh thank you its working now.But can you please explain what is ILC_MASK, I diid not understand from msdn
వేంకటనారాయణ(venkatmakam)
12-Feb-11 12:45pm
View
Thanks nishant,I got the solution with your clue,The solution is,
FormatDOMDocument(MSXML2::IXMLDOMDocumentPtr pDoc, CString& omstrFilePath)
{
MSXML2::ISAXXMLReaderPtr pReader = NULL;
pReader.CreateInstance(L"Msxml2.SAXXMLReader.4.0");
CComPtr<istream> pStream;
DWORD grfMode = STGM_WRITE | STGM_SHARE_EXCLUSIVE | STGM_CREATE;
HRESULT hav=SHCreateStreamOnFile ((LPCTSTR)omstrFilePath, grfMode, &pStream);
MSXML2::IMXWriterPtr w;
w.CreateInstance (L"Msxml2.MXXMLWriter.4.0");
w->put_output (CComVariant(pStream));
pReader->putContentHandler((MSXML2::ISAXContentHandlerPtr)wtr);
pReader->putErrorHandler((MSXML2::ISAXErrorHandlerPtr)wtr);
pReader->putDTDHandler((MSXML2::ISAXDTDHandlerPtr)wtr);
w->put_byteOrderMark(VARIANT_TRUE);
w->put_indent(VARIANT_TRUE);
HRESULT hr = pReader->parse((_variant_t)(pDoc.GetInterfacePtr()));
w->flush ();
return true;
}
వేంకటనారాయణ(venkatmakam)
9-Feb-11 5:59am
View
Yes you are right.I written a sample code and i came to know that non pointer types are automatically reclaimed.thanks for the answer.
వేంకటనారాయణ(venkatmakam)
9-Feb-11 5:57am
View
Thank you for the clarification from the first answer i came to know that auto-delete is not possible and from this answere i came to know why it is not possible.
వేంకటనారాయణ(venkatmakam)
9-Feb-11 5:54am
View
Thank you for the info.I have seen that memory for d1 is not deleted and output window is showing 4bytes of memory leak.But i did not included the lines,
#if defined(DEBUG) | defined(_DEBUG)
_CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF);
#endif
But output window is showing them automatically.
వేంకటనారాయణ(venkatmakam)
3-Feb-11 0:26am
View
sorry for invalid link, i hope this link fill show you the picture,
http://www.imgplace.com/viewimg156/7676/54505935.png
వేంకటనారాయణ(venkatmakam)
31-Jan-11 4:07am
View
Hi i uploaded a photo which explain exactly what i want.Please check the link, http://imageupload.org/?di=0129646471416
వేంకటనారాయణ(venkatmakam)
25-Jan-11 6:47am
View
But the example does not contain provision for selecting a file.
Show More