I have CMapStringToString object as a static member variable of a class and using it in static method of that class, but the linker doesn't recognise that object, can any one knows what's the problem?
hi all, i am coding a routine where i need to know about the status of network which got connected through cyberoam client. i need to get notification when cyberoam fails and connects.i have used IsNetworkAlive but cud able to get notification when the network is disabled or enabled but cudnt get when cyberoam disables or enables!!!!
regards and thanks in advance
I'd written keyboard hook dll in MFC.
i am able to convert keys like "a" into any of the alphabets of 'b' to 'z'.
But when i am trying to assign it virtual key value of gujarati fonts i am not getting the things right can you help me what is wrong?
I believe you're adding the days from the years, and you're then adding the day of the week, when what you want to do is calculate the days in the months that have passed since the last birthday.
Also, 365.25 is not 100% accurate, but I'm sure you know that. It depends on when the first leap year was from the birthdate, and there's also an extra leap year every 100 years, I think.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Mercy, you can get closer than that with something as crude as:
wherein if you borrow from the month, you add 30 to the day, and if you borrow from the year, you add 12 to the month. Doing this gives my age as 38Y 5M 12D, when my actual age is 38Y 5.4M. That's close enough for government work!
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
Good day to you all! I have a program where a CSTRING contains a string of hex value then turn it to INT. The way I convert basically is to use a for loop and convert each char one-by-one till I get the result. Now, this for me is a problem since I am doing a char per char conversion which takes long to process especially when I am having a huge hex value. I would like to know if there is a better way of doing a hex to int conversion.
for(nindex = 0;nindex < nlength; nindex++)<br />
ctemp = buffstrdata.GetAt(nindex);<br />
ntemp = GetIntValue(ctemp); //a function that brings back the int equivalent of the hex<br />
result = result + (int)pow(16, nlength - 1 - nindex) * ntemp;<br />
Hey I am making a wallpaper changer in MFC its a regurlar dialog box. I have it all working that it changes the windows wallpaper of a click of a button. The only thing I would like to add to this would be a thumbnail view of the windows wallpaper. Any help? http://www.endlesscillia.com/Images/walpapers.jpg[^]
I included a picture so you can see what I'm trying to do visualy.
There's lots of ways to load and display a bitmap image.
The easiest way I know is using GDI+. Here's an example of loading an image and drawing it on
a MFC window (specified by "this") with upper left corner at 50,50. The same DrawImage method
will stretch the resultig image to whatever size you specify. I use te original bitmap size
I'm trying to implement a CEdit box that has a horizantal scroll bar that will fill up to 1000 characters at a time. I used SetLimitText to set the limit to 1000 characters. The problem cropped up when I tried to use SetRect(). After I called the function it would not let me place the cursor in the box anymore. I can still call ReplaceSel() and place text in the box that way, but I cannot type it in with the keyboard. Some of the code: