|
WM_SETFONT[^]?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Good answer, the SetFont[^] function sends a WM_SETFONT message.
modified 13-Sep-18 21:01pm.
|
|
|
|
|
Just override the standard SetFont() function inside your CListCtrl class.
|
|
|
|
|
Hi all,
I am trying to add Edit Box on my dialog application.
I am creating a variable name as
CString m_strEdit;
through
ClassWizard->Member variables
but when i run the application some junk value is coming on editbox and when i close the application(i.e end all the dialogs)
I am getting error.
Can someone tell me,whats going on wrong
The debug error is shown below
Debug Assertion Failed!
File:dbgheap.c
Expresion:_CtrlIsValidHeapPointer(pUserData)
Thanks
Raj
|
|
|
|
|
Have you initialised m_strEdit with any valid content before you show the dialog? As to the Debug Assertion, you should try setting some breakpoints in your application and check the call stack to see where in your application the failure is likely to be.
I must get a clever new signature for 2011.
|
|
|
|
|
Hi,
I have a 2D matrix (basically an array of data) with values between 0-255 and 'm trying to do some skewing, rotation and resizing of it using gdiplus. I can use that data to display an image using gdiplus by creating a 8bit bitmap with the array as pixel data and attaching it to a gdiplus bitmap object and using that with a gdiplus graphics object. I am not sure how I can perform skew in both directions, then rotate and then resize it as per my application requirements. At the end I would like to save the bitmap that has all those transformations applied as a tiff file (or for now as bitmap).
any help is appreciated
thanks
PKNT
|
|
|
|
|
|
Hi guys!
Sorry, this is cross post, I wasn't sure where to put it and what looked like the appropriate forum hadn't had any activity in a few weeks. I've been programming professionally for 5 years, and all the companies that I've worked for in the past have had all the development tools in place before I arrived. I'm currently starting a new job, and the company wants me to develop some in house software for their use. My question is, how do I go about choosing the correct environment(VS2008, VS2008 Pro, VS2010?). Do we need MSDN licenses? What about SDK's? I know these seem like pretty basic questions, but all of the other companies I've worked for the IT department handled these issues, and I had no control over them. This is a small company, and their first attempt at software development, I don't want them to have to buy unnecessary tools, and I don't want to be halfway through a project before I realize I've missed a huge component.
[Insert Witty Sig Here]
|
|
|
|
|
This is the C++ forum, and is for posting C++ questions only! I've answered your query in the "Running a Business" forum.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Thank you, again, sorry for the cross post.
[Insert Witty Sig Here]
|
|
|
|
|
Hi all,
I am trying to paste some text from another file ,but only half of the text is comming.
I am not able to display whole text message.
How can i increase the buffer size.
Thanks
Raj
|
|
|
|
|
|
Hi,
Thanks a lott.Its working
Thanks
Raj
|
|
|
|
|
You're welcome!
|
|
|
|
|
Mark his answer as "Good Answer". I only see my vote on his post right now.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Rajesh, I see that this is a trend.
Once their problems are solved, the OPs often forget to vote.
Thank you very much for the vote and the support!
Best Regards,
Nuri
|
|
|
|
|
I think may be he don't know how to vote or may be he don't understand the value of vote.
Genuinely I was also unaware with that feature when I joined CP.
Take my 5 +
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
Yes Shilpi, you are right.
I also didn't know about the voting system at the beginning but after about a week wandering through the forums I realized how things work.
Thank you very much!
Best Regards,
Nuri
|
|
|
|
|
Hi, I want to find my pc's current os version.
I am using ::GetVersionEx(OSVERSIONINFO &osver) API to know.
But the problem is Windows 7 and Windows Server 2008 R2 have same version number i.e., 6.1
How can i find what is the exact version (Windows 7 or Server 2008 R2)?
Thanks in advance,
Regards
msr
|
|
|
|
|
Use OSVERSIONINFOEX, and check in MSDN
Link ->[^]
Windows 7 6.1 6 1 OSVERSIONINFOEX.wProductType == VER_NT_WORKSTATION
Windows Server 2008 R2 6.1 6 1 OSVERSIONINFOEX.wProductType != VER_NT_WORKSTATION
Version of both Windows 7 and Windows Server 2008 R2 is same but wProductType is different.
I Think it will help you
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
Take a 5, you gave the correct answer as well (albeit with no proper emphasis on formatting).
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Hummm Next time I will try to send answer with proper formatting and all. Thanks
I believe in LOVE AT FIRST SIGHT...
Bcoz I have loved my Mother...
even since I opened my eyes...(ICAN)
|
|
|
|
|
From the remarks section of OSVERSIONINFO Structure[^]:
Operating system | Version no. | dwMajorVersion | dwMinorVersion | Other |
---|
Windows 7 | 6.1 | 6 | 1 | OSVERSIONINFOEX.wProductType <font color=red style="BACKGROUND-COLOR: yellow">==</font> VER_NT_WORKSTATION | Windows Server 2008 R2 | 6.1 | 6 | 1 | OSVERSIONINFOEX.wProductType <font color=red style="BACKGROUND-COLOR: yellow">!=</font> VER_NT_WORKSTATION |
So, you just need to check for the wProductType member of the OSVERSIONINFOEX structure that you're passing in to the API.
"Real men drive manual transmission" - Rajesh.
|
|
|
|
|
Shilpi Boosar and Rajesh,
thank you so much.
Regards
msr
modified on Saturday, February 12, 2011 12:10 AM
|
|
|
|
|
Rajesh R Subramanian wrote: a lot of table information
OK, now you're just showing off!
Iain.
I am one of "those foreigners coming over here and stealing our jobs". Yay me!
|
|
|
|