|
RedDragon2k wrote: m:\GNFS\src\blanczos64.c(318) : error C2065: 'asm' : undeclared identifier
I believe you'll need __asm for this.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
RedDragon2k wrote: m:\GNFS\src\blanczos64.c(318) : error C2065: 'asm' : undeclared identifier
is that an
asm
{
...
};
block ?
if so, try replacing "asm" with "_asm"
(yeah, what David said)
Cleek | Image Toolkits | Thumbnail maker
-- modified at 15:56 Friday 28th October, 2005
|
|
|
|
|
Hello,
When I leave my computer for 30 minutes, the monitors are turned off (power-save mode), but the computer remains on and ready for networking/serving.
I would like to code a small app to force the monitors/displays to power-saving mode immediately (at the press of a button) while keeping the rest of the system on. Could someone point me in the right direction in the MFC library?
thanks,
JennyP
|
|
|
|
|
How about looking into SPI_SETPOWEROFFACTIVE , seems like what you are after.
|
|
|
|
|
can i do some thing like "On Error Go To" like in visual basic in visual c++?
|
|
|
|
|
you need exceptions, have a look at try and catch
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Looking for a (free) c++ library that contains financial engineering routines. By "financial engineering routines" I don't mean simple functions like mortgage calculators; I'm looking for something that handles Black-Scholes option pricing, etc.
Does anybody have any experience with one that they could recommend? It is proving difficult to locate one and the ones that I do find I don't know how reliable/good they are.
|
|
|
|
|
John Theal wrote: I'm looking for something that handles Black-Scholes option pricing, etc.
Does this help? Here is another.
"Take only what you need and leave the land as you found it." - Native American Proverb
|
|
|
|
|
Thanks David. The CodeProject one I was aware of and it was not quite what I needed. The other one, however, looks quite interesting. Thanks for the help.
|
|
|
|
|
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.
|
|
|
|