Click here to Skip to main content
16,006,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnChangeEdit needs to be paused Pin
Cedric Moonen23-Jun-05 6:13
Cedric Moonen23-Jun-05 6:13 
GeneralRe: OnChangeEdit needs to be paused Pin
Blake Miller23-Jun-05 3:58
Blake Miller23-Jun-05 3:58 
Questionhow to Rotate,translate ,scale a polygon Pin
pradish23-Jun-05 3:31
pradish23-Jun-05 3:31 
AnswerRe: how to Rotate,translate ,scale a polygon Pin
Budric B.23-Jun-05 5:41
Budric B.23-Jun-05 5:41 
GeneralRe: how to Rotate,translate ,scale a polygon Pin
pradish23-Jun-05 5:49
pradish23-Jun-05 5:49 
GeneralPatching IAT of IE Pin
Chintoo72323-Jun-05 3:26
Chintoo72323-Jun-05 3:26 
GeneralDrawing Image on Device Context Pin
swati2423-Jun-05 2:32
swati2423-Jun-05 2:32 
GeneralYet another problem with LPCTSTR 2 Pin
tomek1823-Jun-05 2:30
tomek1823-Jun-05 2:30 
The reason I use such ugly code, is because that's the only code I know. I am a begginer in programming. At the moment I am reading some materials on STL and MFC, but find it quite difficult to understand, as I have a lot of gaps in my programming knowledge. To that I have no one to ask for help apart from the forum. So THANK YOU all for helping me out!

Maybe you could help me out with this error I get:

cannot convert parameter 1 from 'unsigned short' to 'char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast.

The solutions you helped me out with, was not exaclty what I was looking for. Basicaly pszData is only 1 character at a time. So I want to store that 1 character in an array, then add the next character that comes from pszData and add it to the array. When I have 10 characters, That's when I want to display on screen. pszData recieves a character at different times, could be a split second or a whole day.

Thanks in Advance!


void CChildView::SortData(LPCTSTR pszData)<br />
{<br />
    TCHAR buffer[10];<br />
<br />
  ????? I have no idea what to put here ???? <br />
           Can anyone please help me.<br />
<br />
    buffer[10] = _T('\0'); //enforce NUL Termination<br />
    DisplayData(buffer);<br />



There is no fixed set of rules according to which clear, understandable, and provable programs can be
constructed. There are guidelines, of course, and good ones at that; but the individual programmer's style
(or lack of it), his clarity of thought (or lack of it), his creativity (or lack of it), will all contribute
significantly to the outcome.
-- Peter J. Denning
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 3:05
GDavy23-Jun-05 3:05 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
tomek1823-Jun-05 3:29
tomek1823-Jun-05 3:29 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 3:49
GDavy23-Jun-05 3:49 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
Cedric Moonen23-Jun-05 3:55
Cedric Moonen23-Jun-05 3:55 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 8:44
GDavy23-Jun-05 8:44 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
Cedric Moonen23-Jun-05 8:45
Cedric Moonen23-Jun-05 8:45 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
tomek1823-Jun-05 3:45
tomek1823-Jun-05 3:45 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
GDavy23-Jun-05 3:59
GDavy23-Jun-05 3:59 
GeneralRe: Yet another problem with LPCTSTR 2 Pin
tomek1824-Jun-05 2:00
tomek1824-Jun-05 2:00 
GeneralDrawing Image on Device Context Pin
swati2423-Jun-05 2:27
swati2423-Jun-05 2:27 
Generalsave as html format Pin
Ashok_kavi23-Jun-05 1:19
Ashok_kavi23-Jun-05 1:19 
GeneralRe: save as html format Pin
khan++23-Jun-05 1:40
khan++23-Jun-05 1:40 
Generalresx file use from plain C++ problem Pin
keletron23-Jun-05 0:13
keletron23-Jun-05 0:13 
Questionwhy does CreateInstance(&quot;ADODB.Connection&quot;) bring out exception? Pin
liuyue22-Jun-05 23:31
liuyue22-Jun-05 23:31 
AnswerRe: why does CreateInstance(&quot;ADODB.Connection&quot;) bring out exception? Pin
David Crow23-Jun-05 4:05
David Crow23-Jun-05 4:05 
Generalbroland c++ source code to visual c++ Pin
formula_200222-Jun-05 23:16
formula_200222-Jun-05 23:16 
GeneralRe: broland c++ source code to visual c++ Pin
Cedric Moonen22-Jun-05 23:24
Cedric Moonen22-Jun-05 23:24 

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.