15,896,111 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 Kumar 09 (Top 65 by date)
Kumar 09
2-May-13 1:51am
View
hi Brydon,
i am working on MFC Application, where i need to send the email confirmation to the company
from the Application and i am using windows 7 ultimate, the email environment can be anything except outlook.
can we do it by using sockets.
help me out on this issue.
Thank in advance.
Kumar 09
18-Mar-13 5:08am
View
ok, i will try with all these things and i get back to u. Thank u.
Kumar 09
12-Mar-13 3:13am
View
any example
Kumar 09
25-Feb-13 22:19pm
View
i have two applications on the server side and i want to call these two applications one after the other from the other systems over the web browser without downloading.
Kumar 09
25-Feb-13 21:36pm
View
so how can i do it, is there any other way where i can run application on web browser
Kumar 09
25-Feb-13 4:32am
View
Actually i want to run on web page, from local machine. I give the url path of the server where the exe is there and it should run the exe without downloading.
Kumar 09
25-Feb-13 3:12am
View
i want to run the application over the internet from client side
Kumar 09
13-Feb-13 4:44am
View
No, i am already running the timer in the application. i want to use the clock() functionality to reset the time.(time.h). please find the above improved question.
Kumar 09
21-Jan-13 20:27pm
View
Thank you very much Brydon. Its working fine.
Kumar 09
19-Jan-13 1:42am
View
In CreateFileFromResource() when i run the application its giving an error at the HMODULE hInstance and HRSRC hResource.
Kumar 09
18-Jan-13 1:14am
View
Thank u very much. one last question where should i add this createfilefromresource() funtion in the project. what parameters should i pass to it.
**Please see above i improved my qestion.
Kumar 09
17-Jan-13 21:19pm
View
Is it compulsory to write a CreateFileFromResource() function which you mentioned above comment. If yes in which class we should write this function.
one more query, if i do same thing whatever we discussed above and i copy the .exe and run in other computer whether the .exe will run correctly without any problems. Because i tried the same way but the exe is not responding at all (dependency files are not found as we mentioned the path in the resource file).
Kumar 09
16-Jan-13 20:56pm
View
Hello Brydon,
i tried the same way as u mentioned above like this
IDR_FILE_XML1 FILE "File1.XML"
IDR_FILE_XML2 FILE "File2.XML"
IDR_JPG1 FILE "image1.jpg"
IDR_JPG2 FILE "image2.jpg"
IDR_DLL1 FILE "cv210.dll"
IDR_DLL2 FILE "cvaux210.dll"
.... etc.
but when i run application from application folder its giving error "not responding" and application getting struck.
when i copy the dependency files like .dll's, .xml's and .jpg in to the folder where exe exists its running perfectly.
where i am going wrong i couldn't understand.
As i am using Visual Studio 2010 vc++ and opencv dll('s) and xml('s) files in the application.
Kumar 09
15-Jan-13 21:37pm
View
when i give the .xml and .jpg in .rc file like this for .xml
IDR_FILE_XML1 FILE "res\\File1.XML"
IDR_FILE_XML2 FILE "res\\File2.XML"
and for .jpg
IDR_JPG1 GIFF "res\\image1.jpg"
IDR_JPG2 GIFF "res\\image2.jpg"
and compile and build and when i run the .exe it is unable to display the .jpg file on the dialog and giving an error unable to load the file1.xml file.
all these .xml and .jpg files are stored in res folder in the application.
in the code i hard coded for the .xml and .jpg files as "res\\file1.xml" and "res\\image1.jpg".
is it the right way or not.
Kumar 09
15-Jan-13 5:17am
View
i mean to say, i want to merge all the .dll, .xml, .png and .exe file in to one single .exe file, so that i can run the exe in other system without dependencies of this files.
Kumar 09
9-Jan-13 4:28am
View
No, should i add the same path which exists in my pc to other pc in the environment variable
Kumar 09
9-Jan-13 3:39am
View
cvload() means, Loads object from file. It provides a simple interface to cvRead. After object is loaded, the file storage is closed and all the temporary buffers are deleted. Thus, to load a dynamic structure, such as sequence, contour or graph, one should pass a valid destination memory storage to the function and assign to the "CvHaarClassifierCascade* faceCascade" variable.
Kumar 09
9-Jan-13 2:45am
View
no, should i use this function, if yes where should i use and in which class.
Kumar 09
8-Jan-13 21:43pm
View
no, i don't have any server side technology. as i mentioned earlier that i have two .exe's in windows 2003 server. is there any other way.
Kumar 09
30-Dec-12 20:18pm
View
not the full path but the folder where these files are exists like xmldata()folder in this xml files, the path is xmldata\\file1.xml, xmldata\\file2.xml, xmldata\\file3.xml, and so on like this five xml files are there.
Kumar 09
26-Dec-12 4:00am
View
ok thank u but how to launch an .exe
Kumar 09
26-Dec-12 4:00am
View
any sample example? can i have
Kumar 09
26-Dec-12 3:26am
View
just i gave the example of the gmail. but i need to create my own web browser with username and password and after entering username and password i want to launch the .exe.
Kumar 09
26-Dec-12 3:22am
View
after the entering the username and password i need to call the .exe where face recognition of particular user has to be done then only login user can check his mail. It is for security purpose and malware.
Kumar 09
26-Dec-12 3:05am
View
main aim is that, suppose gmail where we are entering the username and password for login in to the account after entering the username and password i want to launch my own application (vc++.exe) for extra security reasons.
Kumar 09
8-Dec-12 21:13pm
View
Not for within the Application but for the Windows.
Kumar 09
8-Nov-12 23:31pm
View
hi Richard thank you for the reply,
one point i want to clear you is that when i build application using opencv dll's its working fine in my computer, whereas when i run the same application in other computer it is asking for the opencv dll's. Is there any other way that every time we dont copy these dll's in to other computer and run the application.
Thank u again in advance.
Kumar 09
31-Oct-12 22:09pm
View
i am working on a project where i need to read the data from .xml file. i am reading the data from .xml file in two scenarios.
1) i need to read data from xml file but it should be included in the windows registry. i am trying on this but not succeeded. any ideas on this scenarios help me out. and
2) i am using a javascript webpage where i call an exe, that exe contains .xml files i need to read the .xml file, but i am unable to read the .xml file in this scenario. any ideas help me out.
Thanks in Advance.
Kumar 09
31-Oct-12 7:22am
View
Putting the xml file into a dll? and how to include resource using vc++ any example.
Kumar 09
31-Oct-12 5:32am
View
while running audio files simultaneously can i add the (jpg, gif)image to static text control using worker thread. if possible how to do, if not possible any other solution
Kumar 09
29-Oct-12 22:39pm
View
I added the path to the registry like this "RegSetValueEx(HKEY_CURRENT_USER, "", 0, REG_SZ, (const BYTE*)"D:\\facedata.xml", 512);" but i am unable to retrieve the path from registry using RegGetValue() function. how can i get the given path from registry.
Kumar 09
27-Oct-12 0:46am
View
any example
Kumar 09
22-Oct-12 22:26pm
View
I added the path of the file in to registry like this RegSetValueEx(HKEY_CURRENT_USER, "", 0, REG_SZ, (const BYTE*)"D:\\facedata.xml", 512); but i am unable to read data from this facedata.xml.
Did i wrote the correct way or anything wrong.
Kumar 09
19-Oct-12 0:19am
View
Deleted
I added like this "RegSetValueEx(HKEY_CURRENT_USER, "", 0, REG_SZ, (const BYTE*)"D:\\testface\\facedata.xml", 512);" is it right.
Kumar 09
19-Oct-12 0:16am
View
Deleted
I added like this RegSetValueEx(HKEY_CURRENT_USER, "", 0, REG_SZ, (const BYTE*)"D:\\facedata.xml", 512); but i am unable to read data from this facedata.xml.
Did i wrote the correct way or anything wrong.
Kumar 09
18-Oct-12 5:20am
View
How to retrieve data from .xml through window registry.
Kumar 09
6-Oct-12 3:09am
View
Hello,
I am working with credential provider for face detection logon. I wrote some code to display the webcam in commandwindow.cpp for face detecting logon but it display the window not the webcam. I had been searching in google for correct information on credential provider for getting webcam in initial stage of reboot system i.e, at level 0. When system starts the webcam should be displayed try to detect the face. Can any one provide the information about how to display the webcam at level 0.
Thanks in Advance.
Kumar 09
2-Oct-12 2:05am
View
Hello,
I am working on Credential Provider using VC++. Where i want start a web cam using
opencv classes and libraries. Added all the header files and its libraries to
credential provider for accessing.
Code Like this:
cvCapture *camera = 0;
IplImage *frame;
IplImage *showimg;
cvNamedWindow("Input", CV_WINDOW_AUTOSIZE);
camera = cvCaptureFromCAM(0);
cvSetCaptureProperty(camera, CV_CAP_PROP_FRAME_WIDTH, 360);
cvSetCaptureProperty(camera, CV_CAP_PROP_FRAME_HEIGHT, 240);
while(1)
{
frame = cvQueryFrame(camera);
showimg = cvCloneImage(frame);
cvShowImage("Input", showimg);
}
added this code to display the cam on the window.
but its not displaying cam but displaying the window and giving the error Like this:
"This application has requested the runtime to terminate it in a unusual way. Please contact the application's support team for more information".
Can anyone give me some idea, how to solve this issue.
Thanks in Advance. .
Kumar 09
24-Sep-12 21:30pm
View
any example plz
Kumar 09
19-Sep-12 3:21am
View
is there any other way?
Kumar 09
17-Sep-12 23:18pm
View
when system gets restarted a cam window should be display for Login Authentication.
Kumar 09
2-Sep-12 22:53pm
View
i am new to timers can u give me a sample code. i had been trying hard for this but i couldn't get it. any sample code.
Kumar 09
28-Aug-12 5:57am
View
Deleted
example:
the web cam:|--------------------------------------------------|
| |
| |
| the rectangle: |
| |-----------------| |
| | image | outer |
| | | rectangle |
| need of | | |
| masking |_________________| |
|__________________________________________________|
Kumar 09
28-Aug-12 5:55am
View
Deleted
example:
the web cam:|--------------------------------------------------|
| |
| |
| the rectangle: |
| |-----------------| |
| | image | outer |
| | | rectangle |
| need of | | |
| masking |_________________| |
|__________________________________________________|
Kumar 09
28-Aug-12 5:36am
View
i developed face recognition using opencv but i need to mask the outer rectangle on the webcam
Kumar 09
8-Aug-12 22:19pm
View
hi,
i am shravan i am working on face detection and recognition using MFC VC++.
i added the code for camera on to the dialog, now i need to detect the face and later recognize the face.
can anyone help to detection of face.
Kumar 09
26-Jul-12 23:12pm
View
yes i can delete the elements from the xml file and working on editing the xml file.
after completing the editing i will give the code to u.
thank u.
Kumar 09
26-Jul-12 21:50pm
View
hi,
i am using a seperate function for modify and delete, and i am using a while loop to find the particular element and trying to remove the child elements of the particular element. but its not working.
any other suggestions or logic to implement?
Kumar 09
26-Jul-12 5:34am
View
hi,
how to remove or modify elements or node from an xml file.
i used the CMarkup class where removeelem() and removenode() is not working.
any suggestions.
Kumar 09
26-Jul-12 5:27am
View
hi,
how to remove or modify elements or node from an xml file.
i used the CMarkup class where removeelem() and removenode() is not working.
any suggestions.
Kumar 09
25-Jul-12 0:55am
View
yes i resolved the problem thank u for the help
Kumar 09
24-Jul-12 21:56pm
View
but the solution u given is working only for finding the first loginid in the xml file but it is not repeating the loop to search other elements in the xml file.
Kumar 09
24-Jul-12 4:20am
View
I want to find the elements and its containing data from the xml file.
Actually i added more than 5 login and password details in the xml file and i want to search whether the login name is exists in the xml file or not and retrieve the data from xml file.
any help regarding this xml using CMarkup.
Kumar 09
24-Jul-12 3:05am
View
I want to find the elements and its containing data from the xml file.
Actually i added more than 5 login and password details in the xml file and i want to search whether the login name is exists in the xml file or not and retrieve the data from xml file.
any help regarding this xml using CMarkup.
Kumar 09
23-Jul-12 22:51pm
View
hi soren,
i got the solution thank u.
Kumar 09
23-Jul-12 6:16am
View
thank u for the suggestion but at one go it displays two values but it should not display like that, if i stored like this for first time
records
login
....
/login
/records
next time i want to append values like <login> and <Password> at different intervals.
as i am working on dialog based applications i am creating user login data in xml file. i want to append data to xml file after first login elements ends...
Kumar 09
22-Jul-12 22:20pm
View
can u send me the code of c# where u created the xml file and appending data to it?
Kumar 09
22-Jul-12 22:12pm
View
did u got any solution
Kumar 09
22-Jul-12 21:48pm
View
the following is the code:
CMarkup xmlWrite;
sPath = L"D:\Login.xml";
xmlWrite.Load(sPath);
int nItem;
xmlWrite.Open(sPath, xmlWrite.MDF_APPENDFILE);
xmlWrite.AddElem(L"Records");
xmlWrite.IntoElem();
xmlWrite.AddElem(L"Login");
xmlWrite.IntoElem();
xmlWrite.AddElem(L"LoginID", getLoginstr);
xmlWrite.AddElem(L"Password", getEncrypted);
xmlWrite.AddElem( L"DateTime", getDateTime/*(LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S")*/ );
strXML = xmlWrite.GetDoc();
xmlWrite.SetDoc(strXML);
struct SampItem { LPCTSTR szLogin; LPCTSTR szPassword; LPCTSTR szDateTime; } aItems[] =
{
getLoginstr, getEncrypted, getDateTime
};
//xmlWrite.SetDoc(NULL);
//xmlWrite.AddElem(_T("Records"));
//xmlWrite.IntoElem();
for (nItem = 0; aItems[nItem].szLogin; ++nItem)
{
xmlWrite.AddChildElem( _T("Login") );
xmlWrite.IntoElem();
xmlWrite.AddChildElem( _T("LoginID"), aItems[nItem].szLogin );
xmlWrite.AddChildElem( _T("Password"), aItems[nItem].szPassword );
xmlWrite.AddChildElem( _T("DateTime"), aItems[nItem].szDateTime );
xmlWrite.OutOfElem();
break;
//xmlWrite.Save(sPath);
}
xmlWrite.Save(sPath);
xmlWrite.Close();
this is the code which i wrote.
Kumar 09
20-Jul-12 5:30am
View
hi, i am created the xml file by following code
sPath = ctIniFile::getComparePath() + _T("Login.xml");
xml.Open(sPath, xml.MDF_READFILE);
CMarkup xml; xml.Load(sPath); xml.FindElem(L"Login"); xml.IntoElem();
xmlWrite.AddElem(L"Records"); xmlWrite.IntoElem(); xmlWrite.AddElem(L"Login"); xmlWrite.IntoElem(); xmlWrite.AddElem(L"LoginID", getLoginstr); xmlWrite.AddElem(L"Password", sEncrypted); xmlWrite.AddElem( L"DateTime", (LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S") );
xml.save();
by this i created an xml file but i am unable to add some more data to the existing xml file like;
saved xml file looks like this;
<records>
<login>
<loginid>Shravan</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>20-Jul-2012 13:18:41</datetime>
</login>
<>/records>
whereas i want append some more data to it
<records>
<login>
<loginid>Shravan</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>18-Jul-2012 13:18:41</datetime>
</login>
<login>
<loginid>kumar</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>19-Jul-2012 13:18:41</datetime>
</login>
<login>
<loginid>abcdef</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>20-Jul-2012 13:18:41</datetime>
</login>
<>/records>
like this i want can any one help on how to append the data in to existing xml file.
Thanks in Advance....
Kumar 09
20-Jul-12 1:22am
View
Deleted
hi, i am created the xml file by following code
sPath = ctIniFile::getComparePath() + _T("Login.xml");
xml.Open(sPath, xml.MDF_READFILE);
CMarkup xml; xml.Load(sPath); xml.FindElem(L"Login"); xml.IntoElem();
xmlWrite.AddElem(L"Records"); xmlWrite.IntoElem(); xmlWrite.AddElem(L"Login"); xmlWrite.IntoElem(); xmlWrite.AddElem(L"LoginID", getLoginstr); xmlWrite.AddElem(L"Password", sEncrypted); xmlWrite.AddElem( L"DateTime", (LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S") );
xml.save();
by this i created an xml file but i am unable to add some more data to the existing xml file like;
saved xml file looks like this;
<records>
<login>
<loginid>Shravan</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>20-Jul-2012 13:18:41</datetime>
</login>
<>/records>
whereas i want append some more data to it
<records>
<login>
<loginid>Shravan</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>18-Jul-2012 13:18:41</datetime>
</login>
<>/records>
<records>
<login>
<loginid>kumar</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>19-Jul-2012 13:18:41</datetime>
</login>
<>/records>
<records>
<login>
<loginid>abcdef</loginid>
<Password>acfd61d28854bcb90e</Password>
<datetime>20-Jul-2012 13:18:41</datetime>
</login>
<>/records>
like this i want can any one help on how to append the data in to existing xml file.
Thanks in Advance....
Kumar 09
19-Jul-12 6:19am
View
the above mentioned xml code is working but i am unable to append some more data in to the existing xml file. just help me out on how to append the data in to xml file. thanks in advance
Kumar 09
19-Jul-12 4:54am
View
i faced a new problem in xml for appending the data in to xml file.
i am unable to append the data in the xml file using the username and password,
only one time i can store the username and password but i cant append other username and password to the existing xml file. help me out waiting for ur reply?
Kumar 09
19-Jul-12 3:44am
View
xmlWrite.AddElem(L"Login");
xmlWrite.IntoElem();
xmlWrite.AddElem(L"LoginID", getLoginstr);
xmlWrite.AddElem(L"Password", sEncrypted);
xmlWrite.AddElem( L"DateTime", (LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S") );
xmlWrite.OutOfElem();
xmlWrite.save(paath);
Kumar 09
12-Jul-12 0:08am
View
CMarkup xmlSettings;
MCD_STR strLoginFilename = _T("Login Testing.xml");
BOOL bTestingFileLoaded = xmlSettings.Load( strLoginFilename );
if ( !bTestingFileLoaded )
{
xmlSettings.SetDoc( NULL );
xmlSettings.AddElem( _T("Login Testing") );
bTestingFileLoaded = TRUE;
}
if ( bTestingFileLoaded )
{
CMarkup xmlLogin;
xmlLogin.Open( strLoginFilename, CMarkup::MDF_WRITEFILE );
xmlLogin.AddElem( _T("Login ID") );
xmlLogin.SetAttrib( _T("Value"), _T("Add Login ID Value") );
xmlLogin.AddElem( _T("Password") );
xmlLogin.SetAttrib( _T("Value"), _T("Add Password Value") );
xmlLogin.SetAttrib( _T("DateTime"), (LPCTSTR)CTime::GetCurrentTime().Format("%d-%b-%Y %H:%M:%S") );
xmlSettings.ResetChildPos();
xmlSettings.IntoElem();
xmlSettings.AddChildSubDoc( xmlSettings.GetDoc() );
xmlSettings.Save( strLoginFilename );
xmlLogin.Close();
}
hi this is how i am creating an xml file, it creates an xml file but i cant see any data in the xml file (blank)
Show More