16,015,583 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 skfoo1 (Top 10 by date)
skfoo1
29-Apr-12 23:23pm
View
Thanks for the reasons.
The DLL was supposed to be linked and used in another MFC dialog-based project. And in this 2nd project, I've a few buttons. One button named: "Create Data". When i clicked on this button, i am supposed to bring up the plotting dialog from the DLL. And in the plotting dialog, I've a File Dialog (created when click "open" button), and 2 other dialogs(created when clicked other buttons in the plotting dialog).
skfoo1
26-Apr-12 22:03pm
View
Whats the reason for not launching dialogs from secondary threads?
skfoo1
19-Apr-12 3:14am
View
Yep, I've changed. But now the diagrams moves up when i dragged up. Think something is wrong with the panning function. gonna go check it out. Thanks for your help. :)
skfoo1
18-Apr-12 22:56pm
View
Yea, by right that should be the way. But for some reasons, dragging down nCurPos returns a positive and dragging up nCurPos returns a negative.
skfoo1
18-Apr-12 1:49am
View
I see. Thanks for your help.
I've got another question related to the slider control.
int nMinY = floor(m_dMinY);
int nMaxY = ceil(m_dMaxY);
m_nSliderVert = ((nMaxY + nMinY) / 2); // Get the middle of the range
m_slidervertical.SetBuddy(&m_ChartCtrl, FALSE);
m_slidervertical.SetRange(nMinY, nMaxY);
m_slidervertical.SetTicFreq(1);
m_slidervertical.SetPos(m_nSliderVert);
void CDlg::OnVScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar)
{
int nEndVal = m_slidervertical.GetPos();
double Shift = (double)(m_nSliderVert + nEndVal);
m_dSliderMinYShift = m_dMinY - Shift; // m_dMinY = Current Min value of the Y-axis
m_dSliderMaxYShift = m_dMaxY - Shift; // m_dMaxY = Current Max value of the Y-axis
// Do Panning.
// Get Current Min & Max values of the Y-axes.
}
When ever i scroll up or down, the graphs will move. But after a while, the values of the Y-axis will be very large, and the graphs will be moved out of range. I've tried to use the original values of the Y-axis to calculate the shifting. But it can only works when the graphs are in the original state. If the graphs are zoomed-in, and the slider is dragged, the shifting is still using the original values which is wrong. It should be using the current Max & Min values of the Y-axis. How can i solve this problem? Hope I make the question clear. Pardon my bad English.
skfoo1
4-Apr-12 5:08am
View
ok! Thanks for the enlightenment! :)
skfoo1
4-Apr-12 3:13am
View
I see. What possible side effects are you talking about?
skfoo1
16-Feb-12 19:37pm
View
Actually, this is the part that is giving me the problem.
Token = sBuf.Tokenize(Seperator, Position);
while(!Token.IsEmpty())
{
// Get next token.
Token = sBuf.Tokenize(Seperator, Position);
}
Everytime after i exit the loop, it will give me the assertion error. It seems that "Position" will return a -1 whenever it finished its job.
skfoo1
16-Feb-12 3:37am
View
Oh yea! I overlooked it. I have a function that creates the column, but i call this function before the creating column function. No wonder it did not came out. Thx alot! :) But how do i extract the "--" and solve the debug assertion error? the error occurs when the function exits the while loop.
skfoo1
16-Feb-12 2:43am
View
I can't seem to update my question. It keeps giving errors.
anyway, my data looks something like this:
rawf 0 0 1 1 1 0XA52A2A --
I want to extract just the "--", and the all spaces are in fact "\t".
I'm not sure whether i am going in the right direction.
Show More