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

C / C++ / MFC

 
GeneralRe: what the hell is this grammar all about Pin
benjymous29-Nov-04 22:59
benjymous29-Nov-04 22:59 
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 
Hi all,

I have the following function in my VC6 project:

<br />
LPSTR getFieldName(int index)<br />
	  {<br />
		  return (index < 0 ? "abcd" : SysAllocString("Newstring")) ; <br />
          }<br />

It runs well in VC6 if I give the preprocessor macro OLE2ANSI.

When I convert the same project to VS.Net 2003, It starts giving errors in atlconv.h. So I had to remove the OLE2ANSI macro from preprocessor definitions.
Then it give the error:

<br />
c:\src\INCLUDE\OIP.CPP(123) : error C2664<br />
: 'SysAllocString' : cannot convert parameter 1 from 'char *' to 'const OLECHAR*'<br />


It gives the same error in VC6 with out the OLE2ANSI macro.

Is there a macro in .Net that can be used instead of OLE2ANSI in VC6?
Any idea how to solve the issue?

thanks...
GeneralRe: OLE2ANSI issue in VS.Net 2003 Pin
El'Cachubrey29-Nov-04 20:25
El'Cachubrey29-Nov-04 20:25 
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 

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.