Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: what the hell is this grammar all about Pin
LiYS29-Nov-04 23:08
LiYS29-Nov-04 23:08 
AnswerRe: what the hell is this grammar all about Pin
David Crow30-Nov-04 3:09
David Crow30-Nov-04 3:09 
Generalhighlighting a portion of a bitmap Pin
Arrun29-Nov-04 19:57
Arrun29-Nov-04 19:57 
QuestionFunction Parameters in a C DLL? Pin
Arsalan Malik29-Nov-04 19:41
Arsalan Malik29-Nov-04 19:41 
AnswerRe: Function Parameters in a C DLL? Pin
basementman30-Nov-04 4:45
basementman30-Nov-04 4:45 
GeneralRe: Function Parameters in a C DLL? Pin
Arsalan Malik30-Nov-04 16:53
Arsalan Malik30-Nov-04 16:53 
GeneralOLE2ANSI issue in VS.Net 2003 Pin
sajpt29-Nov-04 19:36
sajpt29-Nov-04 19:36 
GeneralRe: OLE2ANSI issue in VS.Net 2003 Pin
El'Cachubrey29-Nov-04 20:25
El'Cachubrey29-Nov-04 20:25 
What you try to do man???
LPSTR getFieldName(int index)
{
return (index < 0 ? "abcd" : SysAllocString("Newstring")) ;
}

This is totally stranger code i suppose

SysAllocString - allocated BSTR - BSTR is OLECHAR* olechar is WCHAR or CHAR (depend on macro definition OLE2ANSI and system).If you wont to return just LPSTR why you don't do this
return (index < 0 ? "abcd" : "Newstring") ;
and in any way when you allocate string by SysAllocString you shoul remove one by calling SysFreeString but when you return some constant string you don't care about this at all.
GeneralRe: OLE2ANSI issue in VS.Net 2003 Pin
sajpt29-Nov-04 20:48
sajpt29-Nov-04 20:48 
GeneralRe: OLE2ANSI issue in VS.Net 2003 Pin
sajpt29-Nov-04 23:22
sajpt29-Nov-04 23:22 
GeneralReading function signature from DLL... Pin
Orkun GEDiK29-Nov-04 18:50
Orkun GEDiK29-Nov-04 18:50 
GeneralRe: Reading function signature from DLL... Pin
ThatsAlok29-Nov-04 19:00
ThatsAlok29-Nov-04 19:00 
GeneralRe: Reading function signature from DLL... Pin
Orkun GEDiK29-Nov-04 20:43
Orkun GEDiK29-Nov-04 20:43 
GeneralRe: Reading function signature from DLL... Pin
ThatsAlok30-Nov-04 1:11
ThatsAlok30-Nov-04 1:11 
GeneralCopy Screen Pin
Timothy Grabrian29-Nov-04 18:09
professionalTimothy Grabrian29-Nov-04 18:09 
GeneralRe: Copy Screen Pin
ThatsAlok29-Nov-04 19:23
ThatsAlok29-Nov-04 19:23 
GeneralRe: Copy Screen Pin
David Crow30-Nov-04 5:42
David Crow30-Nov-04 5:42 
GeneralMsi Functions Pin
Yuvaraj N29-Nov-04 17:23
Yuvaraj N29-Nov-04 17:23 
GeneralRe: Msi Functions Pin
David Crow30-Nov-04 5:45
David Crow30-Nov-04 5:45 
Generalcombox box fields unable to select using mouse. Pin
TssPrasad29-Nov-04 17:16
sussTssPrasad29-Nov-04 17:16 
Generalcapture &quot;End Process&quot; event Pin
zecodela29-Nov-04 17:04
zecodela29-Nov-04 17:04 
GeneralRe: capture &quot;End Process&quot; event Pin
normanS30-Nov-04 2:06
normanS30-Nov-04 2:06 
GeneralRe: capture &quot;End Process&quot; event Pin
Blake Miller30-Nov-04 6:37
Blake Miller30-Nov-04 6:37 
GeneralRe: capture &quot;End Process&quot; event Pin
normanS30-Nov-04 19:29
normanS30-Nov-04 19:29 
GeneralMicrosoft common dialog control Pin
vc-programmer-29-Nov-04 16:44
vc-programmer-29-Nov-04 16:44 

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.