IT Community - Software Programming, Web Development and Technical Support

I want to display LRESULT in messagebox.Is it..

This is a discussion on I want to display LRESULT in messagebox.Is it.. within the C and C++ Programming forums, part of the Software Development category; I want to display LRESULT in messagebox. Is possible to convert LRESULT to LPCWSTR (vc++ win32) ? An LRESULT is an ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 07-17-2007, 03:30 AM
theone theone is offline
D-Web Sr.Programmer
 
Join Date: Jun 2007
Posts: 129
theone is on a distinguished road
Default I want to display LRESULT in messagebox.Is it..

I want to display LRESULT in messagebox. Is possible to convert LRESULT to LPCWSTR (vc++ win32) ?

An LRESULT is an integer, you need to convert it to a string. Sample code is given below.
LONG result = GETVALUE();
wchar_t buffer[20];
_itow_s(result, buffer, 20, 10);
MessageBox(0, buf, L"Converted", 0);

consider GETVALUE() method returning LONG result (LRESULT).
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display xml element to user? S.Vinothkumar HTML, CSS and Javascript Coding Techniques 5 11-12-2007 11:59 PM
How to display the raw image in a picturebox using C# oxygen C# Programming 0 07-21-2007 02:58 AM
How to Display ms office files in asp.net? theone ASP and ASP.NET Programming 1 07-21-2007 01:36 AM
Display tooltips in flash oxygen Flash Actionscript Programming 0 07-18-2007 12:53 AM
Is there any way to display the name of current tower being used by... itbarota Mobile Software Development 0 07-16-2007 10:43 PM


All times are GMT -7. The time now is 07:09 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0