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

Managed C++/CLI

 
GeneralRe: kindly help me with this errors: Pin
ursus zeta19-Feb-05 11:11
ursus zeta19-Feb-05 11:11 
GeneralApplication quits prematurely Pin
SACHITHA16-Feb-05 22:59
SACHITHA16-Feb-05 22:59 
GeneralExpose COM interface from managed C++ Pin
e1e0n16-Feb-05 9:08
e1e0n16-Feb-05 9:08 
GeneralClient/Server Pin
densitet16-Feb-05 6:18
densitet16-Feb-05 6:18 
GeneralPrinter - Escape Sequence Pin
tjuentgen16-Feb-05 1:59
tjuentgen16-Feb-05 1:59 
GeneralRe: Printer - Escape Sequence Pin
Christian Graus16-Feb-05 9:56
protectorChristian Graus16-Feb-05 9:56 
Questionparser? Pin
jedskie_a14-Feb-05 13:26
jedskie_a14-Feb-05 13:26 
AnswerRe: parser? Pin
RNEELY18-Feb-05 8:59
RNEELY18-Feb-05 8:59 
Well, the following works in C#:
static void Main(string[] args)
{
string myString = "Just words, please.";
char [] seperators = {' ', ',', '.', '?'};
int startPos = 0;
int endPos = 0;
do
{
endPos = myString.IndexOfAny(seperators, startPos);
if(endPos == -1)
{
endPos = myString.Length;
}
if(endPos != startPos)
{
Console.WriteLine(myString.Substring(startPos, (endPos-startPos)));
}
startPos = (endPos + 1);
} while (startPos < myString.Length);
}
And you can get a C# string in C++ as follows:
#pragma push_macro("new")
#undef new
String* str = new String(S"Just words, please.");
#pragma pop_macro("new")

There must be a way to put them together.

Good luck.


Sincerely,
-Ron
GeneralRe: parser? Pin
jedskie_a18-Feb-05 12:41
jedskie_a18-Feb-05 12:41 
GeneralMeasuring execution time of C functiom Pin
jim198114-Feb-05 9:14
jim198114-Feb-05 9:14 
GeneralRe: Measuring execution time of C functiom Pin
ursus zeta15-Feb-05 7:45
ursus zeta15-Feb-05 7:45 
GeneralRe: Measuring execution time of C functiom Pin
Anonymous16-Feb-05 6:47
Anonymous16-Feb-05 6:47 
GeneralInherieting MFC based objects in .NET Pin
Boy Wunder14-Feb-05 9:04
Boy Wunder14-Feb-05 9:04 
GeneralRe: Inherieting MFC based objects in .NET Pin
ursus zeta15-Feb-05 7:52
ursus zeta15-Feb-05 7:52 
GeneralRe: Inherieting MFC based objects in .NET Pin
Anonymous15-Feb-05 10:10
Anonymous15-Feb-05 10:10 
GeneralRe: Inherieting MFC based objects in .NET Pin
RNEELY18-Feb-05 8:11
RNEELY18-Feb-05 8:11 
GeneralStrange compile problem Pin
Yaakov Davis12-Feb-05 9:00
Yaakov Davis12-Feb-05 9:00 
GeneralRe: Strange compile problem Pin
Anonymous14-Feb-05 5:47
Anonymous14-Feb-05 5:47 
GeneralRe: Strange compile problem Pin
Anonymous14-Feb-05 6:02
Anonymous14-Feb-05 6:02 
GeneralDetermining Local Group Permissions Pin
jabroney11-Feb-05 19:18
jabroney11-Feb-05 19:18 
QuestionHow can I open Web page in Microsoft Web Browser through ATL Pin
devom11-Feb-05 0:05
devom11-Feb-05 0:05 
General879879789 Pin
abeyjobs10-Feb-05 18:29
abeyjobs10-Feb-05 18:29 
General...error LNK2019: unresolved external symbol __aulldvrm referenced in function... Pin
bitbrain9-Feb-05 8:50
bitbrain9-Feb-05 8:50 
GeneralRe: ...error LNK2019: unresolved external symbol __aulldvrm referenced in function... Pin
Christian Graus9-Feb-05 9:43
protectorChristian Graus9-Feb-05 9:43 
GeneralWeb page control. Pin
Signal-94-Feb-05 17:15
Signal-94-Feb-05 17:15 

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.