Click here to Skip to main content
15,902,189 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to convert Visio files to pdf files in C#.net Pin
NarVish19-May-09 3:06
NarVish19-May-09 3:06 
QuestionSend PCL from c# to Printer HP LazerJet 4100 Pin
totoprog18-May-09 2:32
totoprog18-May-09 2:32 
QuestionInterface!!? Pin
pcsience18-May-09 2:26
pcsience18-May-09 2:26 
AnswerRe: Interface!!? Pin
Luc Pattyn18-May-09 2:30
sitebuilderLuc Pattyn18-May-09 2:30 
AnswerRe: Interface!!? Pin
molesworth18-May-09 2:34
molesworth18-May-09 2:34 
AnswerRe: Interface!!? Pin
OriginalGriff18-May-09 2:34
mveOriginalGriff18-May-09 2:34 
QuestionMore elegant way then .Split(']'); Pin
Rick van Woudenberg18-May-09 1:11
Rick van Woudenberg18-May-09 1:11 
AnswerRe: More elegant way then .Split(']'); [modified] Pin
Anthony Mushrow18-May-09 1:27
professionalAnthony Mushrow18-May-09 1:27 
You might be able to do something like (I'd normally use something like this for reading from a file, but it seems to work here too):

string ReadWord(string buffer, char delimiter, int startPos)
{
    StringBuilder sb = new StringBuilder();
    for(int i=startPos; i<buffer.Length; i++)
    {
        if(buffer[i] == delimiter)
            break;

        sb.append(buffer[i]);
    }

    return sb.toString();
}

void main()
{
    string firstPart = ReadWord(fullLine, ' ', 0);
    int startPos = fullLine.IndexOf('[');
    string secondPart = ReadWord(fullLine, ']', startPos);
}


Thats just from memory so it may not compile, but you get the idea.

My current favourite word is: Delicious!
-SK Genius

Game Programming articles start -here[^]-

modified on Monday, May 18, 2009 7:42 AM

AnswerRe: More elegant way then .Split(']'); Pin
monstale18-May-09 1:50
monstale18-May-09 1:50 
AnswerRe: More elegant way then .Split(']'); Pin
musefan18-May-09 2:15
musefan18-May-09 2:15 
AnswerRe: More elegant way then .Split(']'); Pin
PIEBALDconsult18-May-09 4:05
mvePIEBALDconsult18-May-09 4:05 
QuestionMulti threading Pin
yesu prakash17-May-09 23:53
yesu prakash17-May-09 23:53 
AnswerRe: Multi threading Pin
Rajesh R Subramanian18-May-09 1:04
professionalRajesh R Subramanian18-May-09 1:04 
AnswerRe: Multi threading Pin
Manas Bhardwaj18-May-09 2:53
professionalManas Bhardwaj18-May-09 2:53 
QuestionHow to remove form flickering ?? Pin
lnmca17-May-09 23:12
lnmca17-May-09 23:12 
AnswerRe: How to remove form flickering ?? Pin
Nagy Vilmos17-May-09 23:34
professionalNagy Vilmos17-May-09 23:34 
GeneralRe: How to remove form flickering ?? Pin
lnmca17-May-09 23:38
lnmca17-May-09 23:38 
GeneralRe: How to remove form flickering ?? Pin
Manas Bhardwaj17-May-09 23:43
professionalManas Bhardwaj17-May-09 23:43 
GeneralRe: How to remove form flickering ?? Pin
Mycroft Holmes18-May-09 2:16
professionalMycroft Holmes18-May-09 2:16 
GeneralRe: How to remove form flickering ?? Pin
Nagy Vilmos18-May-09 3:21
professionalNagy Vilmos18-May-09 3:21 
GeneralRe: How to remove form flickering ?? Pin
Baeltazor18-May-09 12:33
Baeltazor18-May-09 12:33 
QuestionCode Coverage for .dll Source file Pin
Net_Bond_2.017-May-09 22:12
Net_Bond_2.017-May-09 22:12 
AnswerRe: Code Coverage for .dll Source file Pin
Manas Bhardwaj17-May-09 22:20
professionalManas Bhardwaj17-May-09 22:20 
Questionturn off system Pin
shahin gholami17-May-09 22:10
shahin gholami17-May-09 22:10 
AnswerRe: turn off system Pin
N a v a n e e t h17-May-09 22:13
N a v a n e e t h17-May-09 22:13 

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.