Click here to Skip to main content
15,892,674 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: Reading/Writing file probs Pin
dj_oden14-Feb-04 1:05
dj_oden14-Feb-04 1:05 
GeneralRe: Reading/Writing file probs Pin
Nik Vogiatzis18-Feb-04 16:52
Nik Vogiatzis18-Feb-04 16:52 
GeneralRe: Reading/Writing file probs Pin
Nik Vogiatzis19-Feb-04 12:44
Nik Vogiatzis19-Feb-04 12:44 
GeneralCalling Convention Trouble Pin
Pazzuzu10-Feb-04 23:54
Pazzuzu10-Feb-04 23:54 
GeneralCalling Dll's Pin
Pazzuzu10-Feb-04 3:46
Pazzuzu10-Feb-04 3:46 
GeneralSTRING* to LPTSTR Pin
bollwerj9-Feb-04 10:29
bollwerj9-Feb-04 10:29 
GeneralRe: STRING* to LPTSTR Pin
Dirk Moshage12-Feb-04 23:21
Dirk Moshage12-Feb-04 23:21 
GeneralRe: STRING* to LPTSTR Pin
bollwerj13-Feb-04 3:27
bollwerj13-Feb-04 3:27 
Dirk, Thanks for the response.

I seem to be a bit thick headed, I don't understand what you are suggesting. What data type is pStr? The compiler does not recognize GetBuffer as a member of LPTSTR or of .Net String class. It is a member of .Net MemoryStream class. How do you propose that I do this?

What I am doing now to convert a String* variable named line to a LPTSTR (char*) is:

char* chars = new char[line->length+1];
for (register i = 0; i < line->length; i++) {
chars[i] = (char)line->Chars[i];
}
//Add the NULL at the end
chars[line->length] = '\0';

The above seems to work but it just seems like a lot of processing to just convert from one data type to another. I'm thinking that there must be a more straightforward way.

Thanks

John B

GeneralRe: STRING* to LPTSTR Pin
Nik Vogiatzis18-Feb-04 16:57
Nik Vogiatzis18-Feb-04 16:57 
GeneralRe: STRING* to LPTSTR Pin
bollwerj19-Feb-04 3:18
bollwerj19-Feb-04 3:18 
GeneralReal time Loop in Managed C++ Pin
Tank_Aviator8-Feb-04 11:48
Tank_Aviator8-Feb-04 11:48 
GeneralAdding XP Style Pin
Skute6-Feb-04 5:28
Skute6-Feb-04 5:28 
GeneralRe: Adding XP Style Pin
MKlucher8-Feb-04 17:21
MKlucher8-Feb-04 17:21 
GeneralRe: Adding XP Style Pin
dj_oden14-Feb-04 1:17
dj_oden14-Feb-04 1:17 
GeneralRe: Adding XP Style Pin
Skute14-Feb-04 5:20
Skute14-Feb-04 5:20 
GeneralListView Item Selection Problem Pin
bollwerj6-Feb-04 5:26
bollwerj6-Feb-04 5:26 
GeneralRe: ListView Item Selection Problem Pin
bollwerj6-Feb-04 9:23
bollwerj6-Feb-04 9:23 
GeneralRe: ListView Item Selection Problem Pin
hyph3n15-Feb-04 2:34
hyph3n15-Feb-04 2:34 
GeneralMaking a slow program run faster Pin
Tank_Aviator5-Feb-04 19:30
Tank_Aviator5-Feb-04 19:30 
GeneralRe: Making a slow program run faster Pin
dj_oden14-Feb-04 1:33
dj_oden14-Feb-04 1:33 
GeneralPrint .Net Bitmap With MFC Pin
Shaun Becker4-Feb-04 9:14
Shaun Becker4-Feb-04 9:14 
GeneralLoad Icon From Resource Pin
Skute4-Feb-04 3:47
Skute4-Feb-04 3:47 
GeneralHELP!!! compiler seems confused... Pin
Nik Vogiatzis3-Feb-04 20:30
Nik Vogiatzis3-Feb-04 20:30 
GeneralRe: HELP!!! compiler seems confused... Pin
Roger Stewart5-Feb-04 6:53
professionalRoger Stewart5-Feb-04 6:53 
GeneralRe: HELP!!! compiler seems confused... Pin
Nik Vogiatzis5-Feb-04 9:51
Nik Vogiatzis5-Feb-04 9:51 

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.