Hi everyone, I need a base-10 data type, and was wondering if there is one for the environment that I'm using. I'm using C++ in Visual Studio 2008 (Standard Edition). I know there is one in vb.net and c#. I've tried ::DECIMAL but it says this is undeclared. Thanks.
b rad311
Posts
-
Decimal data type in visual studio 2008 -
how to register dll or ocx file via c++ codeAlternatively, can the .ocx file be embedded into the binary??
-
how to register dll or ocx file via c++ codeThanks Ash, Will this work on Vista and Windows 7 with them having the extra security features?
-
how to register dll or ocx file via c++ codeHello, Does anyone know how to register a dll or ocx file using c++ code (in particular I'm using vc++ 2008 standard)? I need it to work for Vista and Windows 7. Thanks!
-
mfc executable won't run on other machinesThanks. I thought that by setting it to statically link mfc that all the necessary dll's would be imbedded into the binary, thus avoiding having to install the redistributable. Am I wrong?
-
mfc executable won't run on other machinesHi, the dependency walker has a question mark besides the following dlls: GPSVC.DLL IESHIMS.DLL Would I try to locate these on my machine and then keep them in same folder as executable?
-
mfc executable won't run on other machinesHi everyone, I built an mfc application using visual studio 2008 (standard edition) c++ on a windows 7 OS. I've compiled the code as a "Release" build and it works great on my machine, but won't execute at all on any other machine (whether its Windows 7, xp, vista, etc). No error messages or anything. You briefly get the hour glass and then nothing. I've set the following options: "Use MFC in static library" and I've set the Runtime library to "Multi-threaded (/MT)" Any ideas? Thanks! P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
-
rounding doubles to set # decimal placesExcellent, this did exactly what I was needing. Thanks! One thing I noticed was when I used -265.3215894 with n=2, it returns -265.31 instead of -265.32 Any thoughts on this?
-
rounding doubles to set # decimal placesThanks for the help Ash!
-
rounding doubles to set # decimal placesHi, Does anyone know if there's a built in function in c++ or mfc in which you can pass a double or long double and declare how many places you'd like the value to be rounded to? For example, pass it 12.125 and n=2 decimal places, and out comes 12.13, etc. Thanks! P.S. Formatting the values during cout won't work for me, I need to store the rounded values in a new variable.
-
how to convert vector of doubles to a variant typeok, thanks. I'll look into this.
-
how to convert vector of doubles to a variant typeHi everyone, Can anyone tell me how to convert a vector (of doubles) to a variant? I am receiving the following error message from vc++ 2008:
error C2664: 'CiPlotChannelX::AddXYArrays' : cannot convert parameter 1 from 'std::vector<_Ty>' to 'const VARIANT &'
I have close to 1 million values so I'm trying to avoid any "for" loops. Thanks!
-
plotting in vc++ [modified]Thanks Max!
-
plotting in vc++ [modified]Hello, Does anyone know of a simple package to allow for plotting line plots from visual c++ 2008? I'd love to use koolplot because it seems to be the quickest and simplest route, but it keeps looking for missing header files (i.e. graphics.h, jview.h, interfacekit.h, ...). Thanks! P.S. I'm using windows os.
modified on Tuesday, June 15, 2010 11:19 AM
-
vector of doubles (division)worked great, thanks Ash!
-
vector of doubles (division)Thanks Ash. I implemented the code, but it is giving many errors, the first being:
error C2825: '_Fn2': must be a class or namespace when followed by '::'
and the 2nd:
error C2039: 'first_argument_type' : is not a member of '`global namespace''
-
vector of doubles (division)Thanks for your help Ash. I'm currently doing the following and it works! However, how could I send "op_divide" another parameter? I don't always want to divide by "5", I'd like to send "op_divide" the denominator to use.
long double op_divide (long double d) { return d/5; }
transform (vec1.begin(), vec1.end(), vec2.begin(), op_divide);Thanks!
-
vector of doubles (division)Thanks Steve!
-
vector of doubles (division)Thanks for checking, could just be some weird option in my compiler.
-
vector of doubles (division)Hi, I'm getting the following error:
error C2677: binary '/=' : no global operator found which takes type 'std::vector<_Ty>' (or there is no acceptable conversion)