|
Try looking at the TA-LIB on sourceforge.
|
|
|
|
|
The pdb files that VS6 generates for our programs shows both the function names and the parameters info, but the pdb files in the 'windows symbols' that I downloaded today seem to give only the function name and not the function call parameter info. Am I doing something wrong in windbg or that is how it is? How are these pdb files different?
thanks in advance.
|
|
|
|
|
Make sure that the PDB from windows actually got reloaded with the .reload command, otherwise you are just seeing the function names because the export table of the modules was examined instead.
|
|
|
|
|
Hi,
Am doing an app in win32. I need to set a timed progress bar for my app. ie.
I'll read the time value (in millisec) from a file and the progress bar should progress according to that time. For eg. if the time is 6 sec then the progress bar should complete its full length in 6 sec. if the time is 60 sec then the progress bar should complete its full length in 60 sec. (ie. its for the indication for the user to complete a task within that time)
how do I do this.
I have created the progress bar in my dialog and have the PBM_SETPOS in my WM_TIMER. The progress bar is working, but i have to fix it with the time.
How??? Thanks in advance.
|
|
|
|
|
First, send the control a PBM_SETRANGE message. Then after each second elapses, send it a PBM_SETPOS message.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I know how to create a mdi using AppWizard. So far I have not been able to find any information on how to get a simple word processor program up and running like wordpad or word that shows a caret and receives input with the mouse and keyboard from the user. I have read articles on understanding the document and view classes, but so far, nothing about the "nuts and bolts" of a basic word processor application. I don't want to draw lines or click the mouse to make boxes and use paint to paint pretty lines. Those are good for learning, but not practical for what I need. Can anyone point me in the right direction so I can get started on this project. Thanks so much!!!
RRL
|
|
|
|
|
here[^] is a colorizing edit control i wrote (mostly). it takes a lot of code to do what it does, but it's still a fairly simple editor. with a little digging, you should be able to figure out how i do the mouse and caret handling.
Cleek | Image Toolkits | Thumbnail maker
|
|
|
|
|
I have used MiniDump to create a dump file of my program.
The problem is, how do I tell him which .dpb files to use?
It seems that no matter in which library is the dump file, it tries to use the .dpb files that are in my project's release directory.
I would prefer to be able to copy my .dpb files from the relase directory into another directory and that WindDbg will use the copied .dpb files with the dump file.
Do you know how this can be done?
Thanks in advance.
|
|
|
|
|
File menu, Symbol File Path... menu item.
Set the directories in this folder and select reload.
|
|
|
|
|
Hello, I am fairly new to programming and I am curious...
I built a small 5 line program that asks me what I typed in, followed by echoing what I typed in... if I insert a number with more than one decimal, I can't get the same result that I typed in.
I've used int, long, double, float for my variable.
Can anyone put me on the right track? Thank you
---Mike.
-- modified at 11:02 Friday 28th October, 2005
|
|
|
|
|
|
As soon as you put a second decimal whay you are typing is no longer a number. It becomes are char string.
|
|
|
|
|
Not necessarily. Some areas use . as the digit-grouping symbol and , as the decimal symbol.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I didn't think of that.
But aren't they still invalid character's for an numberic type.
For example: enter 1,000.00 into a float is invalid because the ',' is not a valid. It should be entered as 1000.00
I would expect that in alternate notations such as 1.000,00 the same validity would be expected.
|
|
|
|
|
If you entered 1,000.00 in code, it would result in a compiler error. If you entered the same thing in a masked edit control, it should be acceptable. It appears to me mtucker6784 is working with user input of some sort.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I assumed a simple fscan type operation since he said he was a beginer and it was a 5 line program.
|
|
|
|
|
Here is what I'm looking at
"
#include <iostream>
#include <windows.h>
using namespace std;
float ipad;
void main() {
cout << "What is my ip address?\n";
cin >> ipad;
cout << "I typed in\n";
cout << " " << ipad;
}
"
I'm not sure what an fscan function is but I'll look around the site and see how I can use it. I'm using the ip address situation as an example of having more than one decimal. In reality, I'm just trying to understand how this all will work. Thanks in advance, --Mike
|
|
|
|
|
mtucker6784 wrote: I'm not sure what an fscan function is
It's called fscanf() . It allows reading formatted data from a stream. To read formatted data from the keyboard, you could use scanf() , like:
char a[4], b[4], c[4], d[4];
scanf("%[0-9].%[0-9].%[0-9].%[0-9]", a, b, c, d); I would not recommend this, however, as there is no way to check for bad input.
SInce IP addresses are strings, even though they happen to contain dots, what you are using will work if you change ipad to a string type rather than a float .
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
I have an edit box which people text many lines of text into.
Lets say the text is:
Danielle Brina
Suite 1
I want to get each line of the edit box, so I have:
int i, nLineCount = pmyEdit->GetLineCount();
CString strText, strLine;
for (i=0;i < nLineCount;i++)
{
// length of line i:
int len = pmyEdit->LineLength(pmyEdit->LineIndex(i));
pmyEdit->GetLine(i, strText.GetBuffer(len), len);
strText.ReleaseBuffer(len);
}
But what happens is the first line looks like:
Danielle Brina
and the 2nd line looks like
Suite 1e Brina
which is a combination of the two. I tried adding strText.Empty();
as well as other commands, but I cant get the two lines to stop
blurring. Anyone see an obvious solution?
Please, any response any one can give me will be greatly appreciated.
Sincerely,
Danielle Brina (an overworked graduate student)
|
|
|
|
|
GetLine does not append a NULL terminator to the end of the string, so you have to insert a NULL at the end of the line yourself.
int len = pmyEdit->LineLength(pmyEdit->LineIndex(i));
LPTSTR Buffer = strText.GetBuffer(len + 1);
pmyEdit->GetLine(i, Buffer, len);
Buffer[len] = NULL;
strText.ReleaseBuffer();
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Hi Friend,
I want to create a link list using STL. I am doing the following
-----------------.h file---------------
struct CNode
{
long x;
_bstr_t b;
_bstr_t c;
};
class A
{
...
typedef std::list<CNode* > SEC_MSG_DATA;
SEC_MSG_DATA node;
...
}
--------------------------------------------------
I am trying to acces the member of the structure CNode through the object pointer of class A (pA->node.x) however i am getting the error message
<x is not a member of 'list<struct CNode *,class std::allocator<struct CNode *> >
Can you please help me.
Thanks
-- modified at 11:39 Friday 28th October, 2005
|
|
|
|
|
please edit your post, put the code between <pre></pre> tags, and use the buttons "<" and ">" at the bottom of the edit field to let us see what you put in your list.
moreover, please give us the entiere error message and the related code that is crashing.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
|
how do you access the node please (give me some real code that's accessing it !)
consider using iterators...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
using iterator i can get the store data however i have to fill the member of structure first.I have made some change in the code above.
|
|
|
|