Click here to Skip to main content
15,894,343 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to write burning program for CDR! Pin
Christian Graus27-Jun-02 13:32
protectorChristian Graus27-Jun-02 13:32 
AnswerRe: How to write burning program for CDR! Pin
Mike Nordell28-Jun-02 9:16
Mike Nordell28-Jun-02 9:16 
GeneralGetting the Device Context Pin
JennyP27-Jun-02 6:03
JennyP27-Jun-02 6:03 
GeneralRe: Getting the Device Context Pin
Roger Allen27-Jun-02 6:20
Roger Allen27-Jun-02 6:20 
GeneralRe: Getting the Device Context Pin
JennyP27-Jun-02 6:30
JennyP27-Jun-02 6:30 
GeneralRe: Getting the Device Context Pin
Roger Allen27-Jun-02 6:37
Roger Allen27-Jun-02 6:37 
GeneralRe: Getting the Device Context Pin
JennyP27-Jun-02 7:13
JennyP27-Jun-02 7:13 
GeneralSimple String Conversion Pin
Ryan B.27-Jun-02 5:05
Ryan B.27-Jun-02 5:05 
Im doing a simple non-MFC application.. I need to convert an ASCII string into an OLECHAR array. I want to pass my string into a SysAllocString(); function call like this:

<br />
char string[] = "ASCII STRING";<br />
(t+f)->str = SysAllocString(string);<br />


Of course this doesnt work because, SysAllocString is expecting an OLECHAR FAR*. The function works fine when I do:

<br />
(t+f)->str = SysAllocString(OLESTR("Test String"));<br />


Im actually passing in an array of UDTypes with variable length strings from VB and populating each element of the array / structure.

Im not very familiar with this whole ATL/COM string stuff.. =) Ill be honest, Im a C programmer, so Im out of my element. What can I do.. Please Help.

Ryan Baillargeon
Software Specialist
Fuel Cell Technologies Inc.
GeneralRe: Simple String Conversion Pin
Le centriste27-Jun-02 5:18
Le centriste27-Jun-02 5:18 
GeneralRe: Simple String Conversion Pin
Ryan B.27-Jun-02 5:36
Ryan B.27-Jun-02 5:36 
GeneralRe: Simple String Conversion Pin
Le centriste27-Jun-02 7:36
Le centriste27-Jun-02 7:36 
QuestionHow do I find the task bar color Pin
Rama Krishna Vavilala27-Jun-02 4:42
Rama Krishna Vavilala27-Jun-02 4:42 
AnswerRe: How do I find the task bar color Pin
Scott H. Settlemier27-Jun-02 7:43
Scott H. Settlemier27-Jun-02 7:43 
GeneralSelf Termination Pin
27-Jun-02 4:34
suss27-Jun-02 4:34 
GeneralRe: Self Termination Pin
27-Jun-02 4:53
suss27-Jun-02 4:53 
GeneralRe: Self Termination Pin
Rage27-Jun-02 5:00
professionalRage27-Jun-02 5:00 
GeneralRe: Self Termination Pin
_Magnus_27-Jun-02 5:04
_Magnus_27-Jun-02 5:04 
GeneralRe: Self Termination Pin
Roger Allen27-Jun-02 6:22
Roger Allen27-Jun-02 6:22 
GeneralRe: Self Termination Pin
Scott H. Settlemier27-Jun-02 7:59
Scott H. Settlemier27-Jun-02 7:59 
GeneralIntellisense in VS.NET Pin
Steve Thresher27-Jun-02 4:30
Steve Thresher27-Jun-02 4:30 
GeneralRe: Intellisense in VS.NET Pin
Mike Nordell28-Jun-02 9:20
Mike Nordell28-Jun-02 9:20 
Generalserializing issue Pin
27-Jun-02 4:01
suss27-Jun-02 4:01 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 4:12
Joaquín M López Muñoz27-Jun-02 4:12 
GeneralRe: serializing issue Pin
27-Jun-02 4:16
suss27-Jun-02 4:16 
GeneralRe: serializing issue Pin
Joaquín M López Muñoz27-Jun-02 4:20
Joaquín M López Muñoz27-Jun-02 4:20 

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.