|
Hello there
I am trying to move my CE based application from wCE 3/4 to vs 2005. I found out that all my database handling code needs to go into the bin, and I need to start from scartch...
My question, what should I use now - fro Windows Mobile 2003 / ARM architecture, C++ within vs 2005. It seems all my desire to use ADO is getting me to a dead end...
Hope someone can help
Thanks
Alex
|
|
|
|
|
Hi All,
Can anyone tell me as how I convert from a 2-dimensional charater array to a CStringArray.
Thanks
Subramaniam S.V.
|
|
|
|
|
I would imagine that you can iterate over the outer array, and if the inner array is of strings, you can builds a CString from each and put it in your array.
I'd advocate using std::vector, I always prefer C++ to external libraries where possible. They're standard, and they are better.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
No it is giving junk value when I try to assign Char[] to a string
|
|
|
|
|
Hi.
How do you plot x-y graph using visual C++ 6?
|
|
|
|
|
You would create a CBitmap, then you'd select it into a CDC, then you'd draw lines on it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
UnknownBlue wrote: How do you plot x-y graph using visual C++ 6?
CDC::MoveTo and
CDC::LineTo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
Thanks. Can that method be applied given two arrays, one for x axis and the other for y axis to plot the graph?
|
|
|
|
|
You could also use a chart control from this website. I developed one myself: follow the link in my sig.
I think it will make you gain some time.
|
|
|
|
|
Hi...I have some batch files that I want to execute upon the press of a button on my GUI. The batch files run some executables that setup parameters on another computer. At this point I cannot incorporate these executables into my GUI or change the executable in anyway. I want the console to remain hidden after the batch file has run, however I would like to display the console output to an edit box on my GUI. I have researched this a little bit and everything I find seems really complicated. Is there an easy way to pipe the console to my application? Or what options might I have? Thanks!
Clint Smith
|
|
|
|
|
|
Hi,
I try to use variable=2^2 to get the answer 4. BUt actually do not work in MFC Visual C++.
Why?
|
|
|
|
|
variable = 2*2;
---------------
Push down the front one
|
|
|
|
|
Actually the what I want is power operation in math 2^2=4, 2^3=8. Not multiplication.
Can tell me how to do it for power operation? THanks.
|
|
|
|
|
Yes, but 2^2 is equal to 2*2. I think this is what was being said.
Steve
|
|
|
|
|
#include <math.h> and use pow . ie.
double val = pow(2, 2);
Steve
|
|
|
|
|
|
exp is the wrong function. exp(x) is e^x. pow is the correct function to use.
Steve
|
|
|
|
|
You're right. My mind isn't currently working.
|
|
|
|
|
There is no exponentiation operator in C - ^ does a bitwise XOR. Use pow() instead.
|
|
|
|
|
This one has confused the hell out of me.
I have a class which has a std::vector static member. From the c'tor I initialize this vector. The initialization is quite lengthy but can be shared amongst all instances hence the static.
When I later come to use the vector ( from the same instance ), it's empty! How could this be happening?
|
|
|
|
|
Can you post some code?
Steve
|
|
|
|
|
There's not really any code to post.
The instance is created in global scope, yet when I call one of the methods the vector is empty. If I create the instance within the same function as the call to the method, it's fine. So I'm guessing the problem relates to initializing a static member from the global scope.
|
|
|
|
|
Put breakpoints on the vector initialisation code and method in question. Which one is hit first? I'd guess you're relying on the order of static initialisation.
Steve
|
|
|
|
|
The class is created in global scope, the c'tor is called before main(), which initializes the static vector. Within main() I call a method which uses the initialized vector, only to find it empty. Breakpoints confirm that the vector is indeed initialized. So somewhere between the global scope c'tor and main() the vector is being set back to empty.
|
|
|
|