16,012,316 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 .NET 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 Member 9274864 (Top 15 by date)
Member 9274864
18-Sep-12 6:02am
View
Hello kindly can any one give me the example code to lock the folder, i am struct in this kindly help me to solve this
Member 9274864
18-Sep-12 5:06am
View
Is their any other way to lock the folder
Member 9274864
12-Sep-12 4:08am
View
What is CDataMonitor,do i need to call this function in my code
Member 9274864
7-Sep-12 2:33am
View
Hey Joan Murt kindly help to solve this iam struct in this, i have declared in this way in the CSVfile.cpp file.
CCSVFile::CCSVFile(LPCTSTR lpszFilename, Mode mode)
: CStdioFile(lpszFilename, (mode == modeRead) ?
CFile::modeRead|CFile::shareDenyWrite|CFile::typeText
:
CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite)
{
But still iam unable to append the file,kindly guide me to solve this.
Member 9274864
6-Sep-12 21:44pm
View
Kindly suggest where i have gone wrong
Member 9274864
6-Sep-12 6:49am
View
I have a function for updating data in the list control , i have called this function in the OnInitDialog() and this function is called only once while initializing , but i want that list control to be updated continuously in the run time,as that list control runs in the backround in the hidden mode.So kindly suggest where should i call that function so that function gets called in the run time with out clicking any button or any thing...
So i checking out for a function which i always called ,so that i can declare my function in it, through which my list control gets updated continously
Member 9274864
6-Sep-12 6:39am
View
Hi i used the same method iam not able to append the data in the excel sheet,can you kindly suggest how to do it ,below is my code
CCSVFile::CCSVFile(LPCTSTR lpszFilename, Mode mode)
: CStdioFile(lpszFilename, (mode == modeRead) ?
CFile::modeRead|CFile::shareDenyWrite|CFile::typeText
:
CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite)
{
Member 9274864
6-Sep-12 6:38am
View
Iam still facing the same issue,iam not able to append the data in the excel file,plz kindly help me to solve this,below is my code
CCSVFile::CCSVFile(LPCTSTR lpszFilename, Mode mode)
: CStdioFile(lpszFilename, (mode == modeRead) ?
CFile::modeRead|CFile::shareDenyWrite|CFile::typeText
:
CFile::modeCreate|CFile::modeNoTruncate|CFile::modeReadWrite)
{
Member 9274864
6-Sep-12 5:57am
View
Its working fin ,one last thing every time i write in to the file its creating new file , i want to append the data in the same file.So how to do it.
Member 9274864
6-Sep-12 4:43am
View
Thanks for the solution ,but what about the second question ,do u have any idea about that.
2)And one more thing to ask you,i need a function in which i can keep my code so that it can be called continuously.I have written a code for list control and it gets updated only when the user clicks the refresh button,now i want to call that refresh button automatically with clicking any button for that i need a function which call continuously so that i can cal my function in it.
Member 9274864
6-Sep-12 2:27am
View
Hi Kuthuparakkal thanks for the immmediate reply
1)The above code is useful for me for the other application which iam building.
So i need to add the .cpp and .h files in my code and take the instance of the CXServiceManager and call the CreateService function.
But how do i exactly use this to install it in the registries and to start the application when the applications boots.
2)And one more thing to ask you,i need a function in which i can keep my code so that it can be called continuously.I have written a code for list control and it gets updated only when the user clicks the refresh button,now i want to call that refresh button automatically with clicking any button for that i need a function which call continuously so that i can cal my function in it.
Member 9274864
5-Sep-12 22:37pm
View
Can i have a sample code for CMultiLock::Lock
Member 9274864
5-Sep-12 22:36pm
View
Now iam able to write in to the file but ,it is writing multiple times in the file ,For example if am having 10 items list control then if am saving those items in the list control,then 1st item is storing 10 times in first column and second one is storing 9 times in the second column it continues till other items ,i have atached my code to this plz check it
LPCTSTR lpszFilename = "XYZ.csv";
enum Mode { modeRead, modeWrite };
CCSVFile csvFile((LPCTSTR) lpszFilename );
int nlistCount = m_CtrlList.GetItemCount();
LPINT pItems = new int[nlistCount];
for(int index=0; index<=nlistCount; index++)
{
CString str1 = m_CtrlList.GetItemText(index,0);
CString DispName = str1 + "," + getDateTime;
CStringArray NameArry.Add(DispName);
csvFile.WriteData(NameArry);
}
Member 9274864
5-Sep-12 5:40am
View
yes i have included the .cpp and .h file
Member 9274864
5-Sep-12 2:58am
View
I have used this artical "Reading and Writing CSV Files in MFC[^]"
but iam linker error after using this.
error LNK2019: unresolved external symbol "class CCSVFile __cdecl csvFile
I have taken the instance of that class and called the WriteData() in my class.
This is how i have done
i want this write function to be done in the callback function.
i have taken the instance of the class with parameters and called the write function.
CCSVFile csvFile(LPCTSTR lpszFilename = "abcd", Mode mode = modeWrite);
csvFile(lpszFilename).WriteData(data);
i dont understand where have i done wrong plz help me
Show More