15,894,740 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 peoria123 (Top 35 by date)
peoria123
14-May-18 9:16am
View
Thank you!!
peoria123
15-Jun-17 16:25pm
View
Thanks..Yes it is in hex..I tried using inter datatype too but it is giving datatype error.
peoria123
8-Nov-16 14:14pm
View
Yes this is the repost..I am using newtonsoft jason library but not able to deserialized objects of json file.
peoria123
4-Nov-16 14:25pm
View
Thank you !!
peoria123
13-Apr-16 11:25am
View
Getting this error:
Msg 262, Level 14, State 1, Server CC2DENDIMBLJ11L\SQLEXPRESS, Line 1
CREATE DATABASE permission denied in database 'master'.
can you please tell me step by step procedure to connect .mdf to crystal report.
Thanks.
peoria123
14-Aug-15 17:26pm
View
Hi,
I am not using fragment of code taken somewhere.. Company has old project they want me to add some functionality in that project. add some tools in the project but I am not able to open the form. I can able to build the old project.
old project is in VS2006 ..I am using VS2010.
Thank you.
peoria123
18-Dec-14 15:43pm
View
I am using Visual Studio but which language do i use c++,c# or VB?
peoria123
18-Sep-14 17:04pm
View
Thanks for reply..
Is changing Max_Path size to greated than 260 solved problem?
what I can use instead of ShellExecute?
peoria123
7-Jul-14 13:51pm
View
Hi,
Thank you for your answer. It is working but I have very big excel file with lots of rows and 4 columns. Row size is not fixed .can I read whole coloumn at once insted of reading cell by cell. or can it be possible to open excel file in Sheet1 and it will plot graph for the data which is in sheet 1.
Thank you.
peoria123
29-May-14 11:18am
View
Hi,
I have used 7-zip to store the file in compact format with password protected on zip ..How I can uesed password protected file as input to my project without unzip. don't want to everybody can see that file data.
Thanks.
peoria123
16-Jan-14 10:47am
View
Deleted
This is the reference artical..
http://api.codeproject.com/Articles/1317/Editable-Table-Control?rp=/KB/list/nirs2000/nirs2000_src.zip
Thank you.
peoria123
13-Jan-14 12:21pm
View
Deleted
// Read Rdm1.csv
float ReadFile(float Elastmod[], int NumLines,float Elastmod3[])
{
ifstream myReadFile;
char inputfile[_MAX_FNAME ],
Extension[ _MAX_EXT ] = ".CSV";
_makepath(Infilename, "C:", Dir, inputfile, Extension);
myReadFile.open("Rdm1.csv");
char* pch; //DYNAMICALLY ASSIGN ARRAY
//pch= new char[NumLines];
char* pch1; //DYNAMICALLY ASSIGN ARRAY
pch1= new char[NumLines];
char* Token; //DYNAMICALLY ASSIGN ARRAY
Token = new char[NumLines];
int i;
if (myReadFile.is_open())
{
while (!myReadFile.eof())
{
myReadFile.ignore(256,'\n'); // to ignore first Line
myReadFile.getline(Token,256,',');
for(int i=0;i<(NumLines-1);i++)
{
pch = strtok (Token,",");
myReadFile.getline(Token,256,',');
float test = 0.04166;
Elastmod[i]= atof(pch) ;
if ( Elastmod[i] > test)
Elastmod3[i]= 15.7;
else if ( Elastmod[i] == test)
Elastmod3[i]= 24;
else
Elastmod3[i]= 30;
}
}
}
else
{
//cout << "Error opening file";
}
myReadFile.close();
return Elastmod3[NumLines] ;
}
peoria123
11-Dec-13 12:40pm
View
Thank you....
peoria123
19-Jun-13 14:36pm
View
Thanks ..but still getting same error..
peoria123
12-Jun-13 9:49am
View
Thank you !!
peoria123
12-Jun-13 9:48am
View
Thank you !!
peoria123
3-Apr-13 17:34pm
View
ShellExecute(NULL, ("open"),("1.exe"),NULL,NULL,SW_SHOWNORMAL);
ShellExecute(NULL, ("open"),("2.exe"),NULL,NULL,SW_SHOWNORMAL);
ShellExecute(NULL, ("open"),("3.exe"),NULL,NULL,SW_SHOWNORMAL);
peoria123
25-Mar-13 16:15pm
View
sorry.. I mean to run .exe on button clicked event in the mfc
peoria123
19-Mar-13 16:48pm
View
Thank you very much for helping me out.
It is working now.
peoria123
19-Mar-13 12:43pm
View
Thank you.
peoria123
18-Mar-13 17:55pm
View
yeah it doesn't have GetFilepath..I have used MFCEDITBrowse controls on my dialog.. with that i can browse the file and editbox of browsecontrol shows that selected filepath. I want to store that filepath into any variable or string to pass to another control.(how I can get selected path from editbox of browse control?)
Thank you.
peoria123
18-Mar-13 12:40pm
View
Thanks for your solutions.. but no luck with assigning ponter to dlg1.I am getting error for 1st solution : ambiguous call to overloaded function Dlg1::Dlg1 (...)
{
ptrToDlg1 = this;
}
and for second solution
ptrDlg2->SetPtrToDlg1 (ptrDlg1); SetPtrToDlg1 is not member of Dlg1.
peoria123
15-Mar-13 15:46pm
View
// Dialog1
void MyDlg1::OnBnClickedButton6()
{
// TODO: Add your control notification handler code here
char strFilter[] = { "BCR Files (*.bcr)|*.bcr|All Files (*.*)|*.*||" };
CFileDialog FileDlg(TRUE, ".bcr", NULL, 0, strFilter);
if(FileDlg.DoModal() == IDOK)
{
CString PathName1 = FileDlg.GetPathName();
m_Edit4.SetWindowText( PathName1 );
}
}
void MyDlg1::SetPathName(CString PathName1 )
{
m_PathName1=PathName1; // assign member variable to store pathname1
}
CString MyDlg1::GetPathName()
{
return m_PathName1;
}
// Dialog2
void MyDlg2::OnBnClickedButton2()
{
// TODO: Add your control notification handler code here
MyDlg1 Dlg1;
ShellExecute(NULL, ("open"), ("C:\\ABC.exe"),Dlg1.m_PathName1,NULL,SW_SHOWNORMAL);
}
dlg1.m_PathName1 value is not getting to shellexecute()
peoria123
15-Mar-13 11:35am
View
void MyDlg1::OnBnClickedButton6()
{
// TODO: Add your control notification handler code here
char strFilter[] = { "BCR Files (*.bcr)|*.bcr|All Files (*.*)|*.*||" };
CFileDialog FileDlg(TRUE, ".bcr", NULL, 0, strFilter);
if(FileDlg.DoModal() == IDOK)
{
CString PathName1 = FileDlg.GetPathName();
m_Edit4.SetWindowText(PathName1);
}
}
CString MyDlg1::GetPathName()
{
return PathName1; //error undeclared variable
}
Thank you for the reply .how I can store PathName1 value to pass to dlg2 ?
peoria123
14-Mar-13 14:57pm
View
Thanks for the reply ..dlg2 is not created from dlg1..those are tabs..tab1 and tab2 in tab1 I have used FileOpenDialog to access the filename. I want to give selected filename to ShellExecute() which is on second tab..(buttonclickedevent)
peoria123
7-Feb-13 11:44am
View
I want to open text file into Listcontrol. listcontrol has 6 columns,
1,xyz,1 HP-1 Sigma,1.0,Y,Single,,
(comma separeted columns)
Thank you.
peoria123
5-Feb-13 10:10am
View
Got the answer.thanks you.
peoria123
5-Feb-13 10:02am
View
I mean CVSListbox..Thanks
peoria123
29-Jan-13 11:57am
View
Hi,
Thanks...I have been serching from long time i haven't seen that kind of example..can you please see the link if you have that link in history or by putting some code on google you can find the link..I will really appriciate that Thanks.
peoria123
14-Jan-13 14:02pm
View
Thankss for your solution..I know the basic stuff..my problem is..for each combobox have 25 strings , 20 combobox on the dialog box..the selction of string is not fixed for all comboboxs i can select string a,b,c..or anything from 25 strings. it should populate corresponding strings into edit boxes. e.g for "a" selection populatin string would be x,y,z for selection "b" strings are z,m,n etc..i have to populate editbox fields depending on selected string how i can do that?
peoria123
18-Dec-12 14:18pm
View
They contain the same strings...but selected string for comboobox is different..for 1st combobox "string1" is selected for 2nd combobox "string2" is selected and so on.
peoria123
3-Dec-12 10:51am
View
How i can pass server ip address to client side
in java code(how to pass args to client).
peoria123
26-Nov-12 11:28am
View
My Scroll bar handle is moving but the screen contents are fixed. how to make them move with scroll bar.
peoria123
20-Nov-12 12:25pm
View
Hi Gregory,
Thank you for your reply.
I searched on google about XML file but I don't know which example is appropriate for me.can you please send me a link which will help me or guide me. Is there any other option to save the listcontrol?
Thank you.
peoria123
19-Nov-12 15:48pm
View
Thank you for your reply. I don't know how to read and write file in xml. I am working in vc++ mfc dialogbased application. is serialization is good method for dialogbased application? any alternative method (like get ,set current value)??
(dialog box has 2 tabs ..List control with editable columns and combobox columns on each tab)
Thank you.
Show More