Click here to Skip to main content
15,907,183 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Calculate the required size of text to fit in column Pin
Michael Dunn26-Jul-03 22:42
sitebuilderMichael Dunn26-Jul-03 22:42 
GeneralRe: Calculate the required size of text to fit in column Pin
drabudawood27-Jul-03 1:32
drabudawood27-Jul-03 1:32 
GeneralRe: Calculate the required size of text to fit in column Pin
drabudawood27-Jul-03 1:44
drabudawood27-Jul-03 1:44 
GeneralRe: Calculate the required size of text to fit in column Pin
Michael Dunn27-Jul-03 2:14
sitebuilderMichael Dunn27-Jul-03 2:14 
GeneralProblem with outp() in vc6.0 Pin
funwey26-Jul-03 19:44
funwey26-Jul-03 19:44 
GeneralRe: Problem with outp() in vc6.0 Pin
phlipping26-Jul-03 20:15
phlipping26-Jul-03 20:15 
GeneralRe: Problem with outp() in vc6.0 Pin
Erik Funkenbusch26-Jul-03 20:46
Erik Funkenbusch26-Jul-03 20:46 
GeneralExtended chars with SendInput Pin
phlipping26-Jul-03 19:01
phlipping26-Jul-03 19:01 
come on, someone must know this...

How can you send a char that's not on the keyboard using SendInput?
To send '¯', for example, you hold alt and type 0175 on the num pad.
So I guessed this, but it doesn't work Frown | :(
int i;
INPUT input[10];
ZeroMemory(input, sizeof(input));
for (i = 0; i < 10; i++)
  input[i].type = INPUT_KEYBOARD;
input[0].ki.wVk = 18; //there doesn't seem to be a VK_ALT
input[1].ki.wVk = input[2].ki.wVk = 0x60; //num0
input[3].ki.wVk = input[4].ki.wVk = 0x61; //num1
input[5].ki.wVk = input[6].ki.wVk = 0x67; //num7
input[7].ki.wVk = input[8].ki.wVk = 0x65; //num5
input[9].ki.wVk = 18;
input[2].ki.dwFlags = input[4].ki.dwFlags = input[6].ki.dwFlags =
  input[8].ki.dwFlags = input[9].ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(10, input, sizeof(INPUT));
using a keyboard logger, i can see that it does exactly what I want, ie press alt, type 0175, release alt, but it doesn't send '¯' to the active app
Confused | :confused: Confused | :confused:
Any ideas?

thanks in advance

=====
Phlip

Always proofread carefully to see if you any words out

BTW: Why doesn't replying bump messages to the top of the forum?
QuestionHow reliable is "cin" for receiving data? Pin
WREY26-Jul-03 17:56
WREY26-Jul-03 17:56 
AnswerRe: How reliable is "cin" for receiving data? Pin
Beer2626-Jul-03 18:12
Beer2626-Jul-03 18:12 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
WREY26-Jul-03 18:48
WREY26-Jul-03 18:48 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Ryan Binns26-Jul-03 20:26
Ryan Binns26-Jul-03 20:26 
GeneralRe: How reliable is "cin" for receiving data? Pin
Beer2627-Jul-03 2:48
Beer2627-Jul-03 2:48 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Ryan Binns27-Jul-03 4:06
Ryan Binns27-Jul-03 4:06 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Beer2627-Jul-03 4:37
Beer2627-Jul-03 4:37 
GeneralRe: How reliable is &quot;cin&quot; for receiving data? Pin
Bob Stanneveld27-Jul-03 8:16
Bob Stanneveld27-Jul-03 8:16 
QuestionHow can I execute a .chm file? Pin
DanYELL26-Jul-03 15:25
DanYELL26-Jul-03 15:25 
AnswerRe: How can I execute a .chm file? Pin
Beer2626-Jul-03 15:50
Beer2626-Jul-03 15:50 
AnswerRe: How can I execute a .chm file? Pin
Beer2626-Jul-03 15:53
Beer2626-Jul-03 15:53 
GeneralRe: How can I execute a .chm file? Pin
DanYELL26-Jul-03 16:12
DanYELL26-Jul-03 16:12 
AnswerRe: How can I execute a .chm file? Pin
pranavamhari26-Jul-03 16:29
pranavamhari26-Jul-03 16:29 
GeneralRe: How can I execute a .chm file? Pin
Hashim Saleem27-Jul-03 2:41
Hashim Saleem27-Jul-03 2:41 
GeneralRe: How can I execute a .chm file? Pin
Hashim Saleem27-Jul-03 4:07
Hashim Saleem27-Jul-03 4:07 
QuestionHow to put background image into CListCtrl. Pin
Artem Moroz26-Jul-03 12:58
Artem Moroz26-Jul-03 12:58 
AnswerRe: How to put background image into CListCtrl. Pin
Beer2626-Jul-03 13:08
Beer2626-Jul-03 13:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.