15,888,315 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 P Uday kishore (Top 69 by date)
P Uday kishore
19-May-14 0:39am
View
am using vector.pushback to store the elements.
P Uday kishore
19-Mar-14 0:57am
View
it's MFC Web-browser control,
I passed HTML file path as input in navigate function it worked for me.
P Uday kishore
22-Jan-14 6:19am
View
CString cookies= _T("Thu 05 Dec 2013 15:10:23 GMT");
COleDateTime dtTimecookie;
dtTimecookie.Format(_T("%a %d %b %Y %X %Z"));
dtTimecookie.ParseDateTime(cookies);
int yy=dtTimecookie.GetYear();
int mm=dtTimecookie.GetMonth();
int dd=dtTimecookie.GetDay();
int hr=dtTimecookie.GetHour();
int min=dtTimecookie.GetMinute();
int sec=dtTimecookie.GetSecond();
CString dateStrcookie;
dateStrcookie.Format(_T("%d/%d/%d %d:%d:%d"),dd,mm,yy,hr,min,sec);
P Uday kishore
5-Nov-13 4:55am
View
path of what u need in edit control?????
P Uday kishore
28-Oct-13 7:18am
View
Not to a separate file,but i just wanted that selected item to be copied into clipboard.
Sorry if i didn't clear in my question.
P Uday kishore
25-Sep-13 3:28am
View
For windows7/vista it is storing downloaded files information in a index.dat file,
but for XP am not able to get that.
P Uday kishore
18-Sep-13 1:55am
View
I declared like this.
struct Information{
xxxxx;
xxxx;
};
std::vector< Information >result_vector;
i populated data into result_vector ,i wanted to move this data into vector<vector> to display.
When am copying result_vector to another am not able to do so.Is there anyway to copy
vector (struct) data to vector(vector)
P Uday kishore
12-Aug-13 3:33am
View
not able to write structure for that.in the section of product name the OS information will be there but writing that structure am not able to.
P Uday kishore
8-Aug-13 0:46am
View
Yes.
C:\Windows\System32\config\software this is the file path.
P Uday kishore
7-Aug-13 8:10am
View
ya i know this path.from registry hive i can see it.but i need to read the offline file there i need help to read to move there.
P Uday kishore
7-Aug-13 7:57am
View
dead means i have to process a crashed system in that i need to find the operating system installed.so from the registry files i need to read that information(i.e software file).
P Uday kishore
7-Aug-13 5:49am
View
its not at all a live system.
i need to process a dead system.in that i need to go through the registry files and then extract that information.
P Uday kishore
6-Aug-13 9:08am
View
reading files is not a big deal for me using c++,problem is there are five files which are interlinked to one another.
http://www.chromium.org/developers/design-documents/network-stack/disk-cache
Follow that link you will get know something about that structure.
P Uday kishore
6-Aug-13 5:16am
View
means what??.
i struck at the reading those files there i need help.
P Uday kishore
6-Aug-13 1:07am
View
Using c++ code i wanted to retrieve the cache data of Google chrome browser.
P Uday kishore
18-Jun-13 0:45am
View
CFont staticfont= new CFont;
staticfont->CreatePointFont(105, _T("Lucida Grande Bold"));
apply the font using
"control variable.setfont(staticfont);"
this method works good.
P Uday kishore
13-Jun-13 8:37am
View
are you using Microsoft office??
P Uday kishore
30-May-13 3:44am
View
when am using c bitmap button,its just like plain image and its not showing any pressed style on clicking.
So do i have any pressed style property for C Bitmap button to make that style as normal button.
P Uday kishore
29-May-13 7:55am
View
Main class:
int Common::SetComponentFont(int nSize,HWND hWnd)
{
CFont* Sourcefont = new CFont;
Sourcefont->CreatePointFont(nSize,_T("Lucida Grande Bold"));
CWnd* pComponent= FromHandle(hWnd);
if (pComponent != NULL);
{
// here you load or create some Font
if(Sourcefont != NULL)
pComponent->SetFont(Sourcefont);
}
return 0;
}
derived class:
CCommon* csk = new CCommon();
CEdit* variable = (CEdit*) GetDlgItem(IDC_EDIT);
csk->SetComponentFont(75,variable ->m_hWnd);
this worked for me,when am calling from base class.
P Uday kishore
24-May-13 2:14am
View
In resource view did u get the menu items under MENU folder????
if came just check its properties once.
P Uday kishore
23-May-13 5:11am
View
its working am passing the control id directly in the call.
now i wanted to minimize the code still that,i wanted to move this block to main class of application from there i wanted to apply for each dialog.
can u suggest any idea for this....
P Uday kishore
23-May-13 2:26am
View
CFont* Sourcefont = new CFont;
Sourcefont->CreatePointFont(75, _T("Lucida Grande Bold"));
CWnd* pComponent= this->GetDlgItem(nID);
if (pComponent != NULL)
{
// here you load or create some Font
if (Sourcefont != NULL)
{
pComponent->SetFont(Sourcefont);
}
}
i did like this but am getting null into pComponent.Is there any problem????
P Uday kishore
22-May-13 5:27am
View
IS IT WORKING NOW?
P Uday kishore
22-May-13 1:31am
View
Check the properties once,may be you made it as readonly-TRUE in properties list.
P Uday kishore
22-May-13 1:27am
View
is that working fine now?
P Uday kishore
17-May-13 7:54am
View
i did scanning of the same type in mfc.
you can go through this code once.
FindFile(CString strPath, CString strWildCard)
{
CFileFind finder;
CString strTempPath = strPath + "\\" + strWildCard;
BOOL bWorking = finder.FindFile(strTempPath);
while (bWorking)
{
bWorking = finder.FindNextFile();
if (finder.IsDots())
continue;
if (finder.IsDirectory())
{
CString str = finder.GetFilePath();
FindFile(str,strWildCard);
}
else
{
CString strFileName= finder.GetFileName();
}
}
return true;
}
Explanation:here wildcard am using is *.*;
P Uday kishore
17-May-13 6:13am
View
to get it from the pop up menu you should override a method like
oncommand.
for eg:
ON_COMMAND(ID of the item, &xxxx::xxxxx)
P Uday kishore
17-May-13 6:07am
View
got any other solution??
P Uday kishore
16-May-13 7:08am
View
Thank u again....
P Uday kishore
16-May-13 6:04am
View
using cfilefind in MFC.
using this am getting the file-names one by one in a directory if the extension is in hidden mode(if two extensions)i cant scan it that's why i have to deal with registry key to unhide the extension and then scan for image.
P Uday kishore
16-May-13 5:47am
View
ya ya.Now issue got into deep like i have to deal with that registry key(to UN-HIDE extensions) when passing input to scan.
P Uday kishore
16-May-13 5:31am
View
eg: filename.txt.jpg i have.when i hide the extension filename.txt only it will show i passed this as the input then am not able to get the data.later when I've given with full extension i got output.
Got to know that file path should be clear.i missed it while scanning.Thank you..
P Uday kishore
16-May-13 0:52am
View
me again.if i change file name to filename.txt.jpg am not able to read it in binary mode even.am getting wrong data while reading.
P Uday kishore
15-May-13 7:50am
View
i have different controls in my application each of having different size text so i created many font variable to remove that headache is there any other way to get the font on controls???
P Uday kishore
15-May-13 5:45am
View
is it OK now???
P Uday kishore
15-May-13 0:59am
View
It is storing the elements right.nothing wrong there.
whats your doubt in that??
P Uday kishore
14-May-13 6:37am
View
Its working by following that reset.Thank u...
P Uday kishore
14-May-13 2:19am
View
do we have any format to identify text file????
P Uday kishore
13-May-13 3:19am
View
That's OK.but what returns am asking filename.jpg in this it returns filename it means????
i need info about filetype reading...
P Uday kishore
13-May-13 1:15am
View
whats that windows port of the Linux file command mean can you please brief it???
P Uday kishore
10-May-13 12:35pm
View
yeah for images am clear to use that.in the same way only do we have any for remaining file types.
is there any Microsoft predefined functions for that?????
P Uday kishore
10-May-13 8:28am
View
Hi,i got a new work can u help me in this context??/
how to get a file type if it is given without extension as input.
do we have any criteria to find that???
P Uday kishore
10-May-13 7:40am
View
One issue the Web Browser Control has that it’s perpetually stuck in IE 7 rendering mode by default. Even though IE 8 and now 9 have significantly upgraded the IE rendering engine to be more CSS and HTML compliant by default the Web Browser control will have none of it. IE 9 in particular – with its much improved CSS support and basic HTML 5 support is a big improvement and even though the IE control uses some of IE’s internal rendering technology it’s still stuck in the old IE 7 rendering by default.
P Uday kishore
10-May-13 0:05am
View
go through this link once.
http://msdn.microsoft.com/en-us/library/windows/desktop/ms633545%28v=vs.85%29.aspx
P Uday kishore
9-May-13 8:35am
View
as normal text file i tried but they need the format like sections and keys so am thinking to move on to that way of design.that's y
P Uday kishore
9-May-13 7:05am
View
so is there any other way to work with.requirement is to use INI file.do u have any idea how to create that using mfc/c++???
P Uday kishore
9-May-13 3:48am
View
r8 click on the dialog and select properties.
P Uday kishore
9-May-13 3:16am
View
check in properties of that dialog whether u have given ID properly or not.
P Uday kishore
9-May-13 0:37am
View
hw can u downvote then.question is not clear i told him that whats wrong ther?
P Uday kishore
9-May-13 0:33am
View
whats the wrong with this answer?
anything wrong there??
P Uday kishore
9-May-13 0:31am
View
Give the answer then......
P Uday kishore
6-May-13 7:03am
View
thanks for the explanation and code.I have one more doubt here is there any change in binary format in the new versions of jpeg/gif/png etc....
P Uday kishore
3-May-13 6:10am
View
but what to do requirement.???
P Uday kishore
3-May-13 6:07am
View
can i have brief explanation on this please????
P Uday kishore
3-May-13 3:03am
View
but we cant get that info in investigation.that's y we have to our self find the file type and send it to scanning.
P Uday kishore
3-May-13 2:52am
View
ya we wil hav the path.
i hav to check the extension and then i hav to send it to the scanning..so can i have any way to get that information.
P Uday kishore
3-May-13 2:32am
View
idea behind this is in my application i have to find the pornographic image in a given set of images.
if any one changed the extension of that image even then i have to do it for that i need know how to read file in binary mode.
P Uday kishore
2-May-13 1:49am
View
is that working fine?if not we can look into it further..
P Uday kishore
30-Apr-13 2:58am
View
do u have any example for that.can u clarify something on that.
P Uday kishore
29-Apr-13 5:54am
View
that handler also not there in code anywhere.
remaining are working fine.have to check the possibilities by comparing.
P Uday kishore
29-Apr-13 5:12am
View
nothing as above two methods.and the cursor is changing bt cant drag to change..
P Uday kishore
29-Apr-13 3:28am
View
to change column size am unable to drag the header..
P Uday kishore
23-Apr-13 0:19am
View
which operating system ur using.i faced problem while changing window text in windows 7 operating system.i used update data and invalidate for XP.bt for windows 7 i changed some other....
P Uday kishore
23-Apr-13 0:09am
View
invalidate()....
P Uday kishore
22-Apr-13 7:03am
View
try using updatedata(true) once...
P Uday kishore
17-Apr-13 8:48am
View
i got this code and it is working fine now..
can u suggest me any optimization in this code further.because it is taking more time when a folder contains more files ...
///////////////
CString defaultPath(_T("My Computer"));
CFile read_object;
CFile cfile_object;
char pbufRead[MAX_PATH];
memset(pbufRead,'\0',MAX_PATH);
if (!read_object.Open(csDllPath,CFile::modeRead, &e)) {
if (cfile_object.Open(csDllPath,CFile::modeCreate|CFile::modeReadWrite,&e)) {
cfile_object.Write("My Computer",11);
cfile_object.Flush();
cfile_object.Close();
}
}
else {
read_object.Read(pbufRead, sizeof(pbufRead));
read_object.Close();
CString tStr(pbufRead);
defaultPath=tStr;
}
if (pbufRead[1]!=L':') {
HTREEITEM hRootTree=m_CtrlMfcShellTree.GetRootItem();
CString headerTxt=m_CtrlMfcShellTree.GetItemText(hRootTree);
HTREEITEM hNextItem;
HTREEITEM hChildItem = m_CtrlMfcShellTree.GetNextVisibleItem(hRootTree);
while (hChildItem != NULL) {
hNextItem = m_CtrlMfcShellTree.GetNextItem(hChildItem, TVGN_NEXT);
CString childLabelStr=m_CtrlMfcShellTree.GetItemText(hChildItem);
if (childLabelStr.CompareNoCase(defaultPath)==0)
break;
hChildItem = hNextItem;
}
m_CtrlMfcShellList.DisplayFolder(defaultPath);
m_CtrlMfcShellTree.Expand(hChildItem,TVE_EXPAND);
//m_CtrlMfcShellTree.SetFocus();
}
else {
//m_CtrlMfcShellTree.SelectPath(defaultPath);
m_CtrlMfcShellList.DisplayFolder(defaultPath);
}
P Uday kishore
17-Apr-13 5:30am
View
hey can we compare the node items so we can get that????
P Uday kishore
17-Apr-13 3:13am
View
ya am looking on that.not able to set the path to that shell tree control...
P Uday kishore
17-Apr-13 2:28am
View
we created a custom browse dialog for that one side tree control and other list control we used.
now am saving the path also of the current selection.i need to load that into that tree control now...
Show More