C++ Interop, _gc Strings to _nogc char*
Tech-Archive recommends: Speed Up your PC by fixing your registry
- From: "Urs Vogel" <uvogel@xxxxxxx>
- Date: Mon, 4 Jul 2005 10:02:17 +0200
Hi
Is there a similar method like Marshal::StringToHGlobalAnsi() by using an
existing pointer, rather than allocating memory and returning a new pointer?
My target buffers are persistent must must not be allocated every time when
converting from String to char*;
Thanks,
Urs
.
Relevant Pages
- Re: Implementing an interface
... pointer to pointer, which is supposed to contain the version number of ... I am not correctly allocating memory ... If the caller just expects a string with the version then you ... (comp.unix.programmer) - Re: When to use pointers?
... If 'b' were a pointer ... upon instantiation of the 'A' object - you would have to ... What all this really boils down to, is that allocating memory ... But what efficiency are ... (alt.comp.lang.learn.c-cpp) - Re: pointer to struct
... You are allocating memory that will hold ... mallocreturns the pointer to this memory and you ... I cannot comment on the sizeof usage, as my perception differs a lot ... bug will be easy to find, however once you have> 100,000 lines of code ... (comp.lang.c) - Re: C++ Interop, _gc Strings to _nogc char*
... existing pointer, rather than allocating memory and returning a new pointer? ... My target buffers are persistent must must not be allocated every time when converting from String to char*; ... (microsoft.public.dotnet.languages.vc) - Re: Object creation
... pointer. ... Directly adding "a" as a member variable makes the design simple as ... you do not need to worry about allocating memory for a, ... EventStudio 2.5 - Automate sequence diagram generation ... (comp.lang.cpp) |
|