Results 1 to 3 of 3

Thread: String$ [resolved]

  1. #1

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329

    Resolved String$ [resolved]

    g'day folks

    i want to convert a bit of vb.net code to c#, but there is one bit thats bugging me

    VB Code:
    1. Private retData As String = Space$(128)

    the above if i understand right will make a string with a 128 space buffer kinda thing

    I looked in the msdn files and i cant work out what the equiv in c# would be (btw dunno if it helps but im working with the win32 api here)

    im also using .net 2.0

    any ideas?
    Last edited by Colonel Klink; Dec 31st, 2005 at 08:20 AM.
    Our Father, who 0wnz heaven, j00 r0ck!
    May all 0ur base someday be belong to you!
    May j00 0wn earth just like j00 0wn heaven.
    Give us this day our warez, mp3z, and pr0n through a phat pipe.
    And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
    Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
    For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    898

    Re: String$ [unresolved]

    Code:
    string s = new string(' ', 128);
    Will work that way in VB.NET as well.
    Last edited by grilkip; Dec 31st, 2005 at 06:45 AM.
    "so just keep in mind that fantasy is not the same as realtiy and make sure u remember that wii sports may be fun but u cant count on it as exercise ok cool bye" - HungarianHuman

  3. #3

    Thread Starter
    Hyperactive Member Colonel Klink's Avatar
    Join Date
    Aug 2002
    Location
    Gold Coast, Australia
    Posts
    329

    Re: String$ [unresolved]

    cheers mate worked a charm
    Our Father, who 0wnz heaven, j00 r0ck!
    May all 0ur base someday be belong to you!
    May j00 0wn earth just like j00 0wn heaven.
    Give us this day our warez, mp3z, and pr0n through a phat pipe.
    And cut us some slack when we act like n00b lamerz, just as we teach n00bz when they act lame on us.
    Please don't give us root access on some poor d00d'z box when we're too pissed off to think about what's right and wrong, and if you could keep the fbi off our backs, we'd appreciate it.
    For j00 0wn r00t on all our b0x3s 4ever and ever, 4m3n.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width