My background was also in mainframes (Univac 1100/2200 series), using Assembler and their proprietary high level (C-like) language. I was recruited to my last position specifically because of that background experience. I then transitioned into C, C++ and Java on Unix and Windows systems. Since retiring I have stuck at it and tried to learn new languages/frameworks (Android, C#, .NET, Python, SQL ...) for my own amusement. Much of my knowledge has been gained from articles here on CodeProject and elsewhere, and the help of other experts. So I could not have helped you without the help I received. After all, that is why most of us stick around here.
Thanks for your kind comments. And, as always, happy to help where I can.
float pound, kilogram;
printf("Pound --------- Kilos\n\n");
printf("%.2f lbs = %.2f Kg\n", pound, kilogram);
It makes it so much more obvious what is going on.
Then look at your code: where do you modify pound or kilogram?
Since they do not change, it will always print the same values.
By the way, a better loop format for your application would be a for loop:
for (int i = 0; i <= 300; i++)
for (int j = 1; j <= 100; j++)
Since you don't initialize i in your code at all, the value can be random depending on which compiler and / or compiler options you use.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
Windows services don't run in the context of a user's desktop. At any point whilst the service is running, there could be zero, one, or many users logged in to the computer, each with their own desktop.
You need to use a different solution. For example, you can use the Windows Task Scheduler to start an application when any user logs in. That application will have access to the user's desktop.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
new1 (33 hits)
XXX_Global.h: error: conflicting types for'uint32_t'
Line 17: typedef unsigned int uint32_t;
gcc-6.3-arm32-eabi\arm-none-eabi\include\sys\_stdint.h:48:20: note: previous declaration of 'uint32_t' was here
Line 24: typedef __uint32_t uint32_t ;
CListfeatures a deleted copy contructor.
Microsoft folks think it is not useful to pass collections by value.
You could use std::list instead (I believe Microsoft folks themselves recommend std::list over CList).
"In testa che avete, Signor di Ceprano?"
Still get error with list me thinks it has to do that I declared stdecs just as a type without actually allocating storage i.e struct stdecs storagediscriptor; when I have the template outside of a struct it compiles thanks