Search:

Type: Posts; User: Doomguy0505

Page 1 of 2 1 2

Search: Search took 0.18 seconds.

  1. Re: code that display data in newline in the textbox

    You posted no code, but if you wanted a new line, you use vbCrLf

    eg.


    Text1.Text = "1" & vbCrLf & "2"
  2. Replies
    16
    Views
    967

    Re: system("Pause")

    For some reason the main function is excluded from this rule.

    And you can correct it by adding return 0; after the system("PAUSE")
  3. Replies
    0
    Views
    1,574

    Fixed: Problem compiling on mingw32

    When I try to compile my application with mingw32 I get a bazillion errors

    http://paste.ubuntu-nl.org/22565/

    Here is the source code, just type in "bash cross-config.sh"
    ...
  4. Replies
    8
    Views
    1,029

    Re: Installing .NET 2.0 App on Windows 98

    I got .NET 2.0 on my windows 98 machine, but you need to install IE6 from Windows Update first. The installer should be called dotnetfx.exe
  5. Replies
    43
    Views
    1,727

    Re: Vista and VB6 issue...

    Why did Microsoft decide to change this directory location anyway?
  6. Replies
    7
    Views
    6,067

    Re: clsBSTR - the ultimate string class

    How do you get operators in VB6 classes?
  7. Re: StringArray: exactly like Array, but returns a string array

    Wouldn't it be better written like this?


    Public Function StringArray(ParamArray Strings() As Variant) As String
    StringArray = Strings
    End Function
  8. Replies
    6
    Views
    2,951

    Re: [03] Has anyone tried Linux XP 2007?

    You should use http://art.gnome.org/themes/metacity/501 with GNOME if you want a Windows XP look.
  9. Replies
    55
    Views
    10,156

    Re: C++ Is A Dying Language?

    People who are dependant on BASIC languages?
  10. Re: Vector difference_type doesn't work with typename?

    So I guess vector is a pos?
  11. Vector difference_type doesn't work with typename?

    I've found this problem with creating difference_types when the type is a typename definition (I've also tried class), is there anyway around it?



    expected ';' before 'k'
    'k' was not declared...
  12. Replies
    4
    Views
    614

    Re: How to determine IP address

    I think he wants to resolve a hostname to an ip address
  13. Re: [RESOLVED] Form with no Titlebar but with Caption in Taskbar

    I got notepad's current hWnd (with Spy++) and got rid of its menu bar :D :D :D
  14. Re: How to close a form in 30 seconds?

    Option 1

    Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
    Private StopSleep As Boolean
    Private Sub Form_Load()
    Me.Show
    Dim i As Long
    For i = 1 To 30000
    If StopSleep...
  15. Re: simple change in replacement

    """" is the same as chr(34)
    " "" " is the same as " " & Chr(34) & " "

    .Text = Replace(.Text, """", " "" ")
  16. Replies
    12
    Views
    1,093

    Re: Run Time Error "5"

    You should have set up partitions when you had the chance, which is when you install Windows XP (it lets you use ghost without a disk so you don't have to reformat either)...
  17. Re: Converting from xml to text

    You might want to use FreeFile otherwise you'll get an error if file buffer 1 is already being used by your program.

    Dim FB As Integer, strBuffer As String
    FB = FreeFile
    Open Filename For Input...
  18. Re: Retrieving the Default Gateway information using VB6

    Replace Command1_Click with whatever name you like

    Sub Command1_Click()
    Dim v As Variant, fname As String
    fname = """" & App.Path & "\ipcfg.txt"""
    Shell "cmd.exe /c ipconfig |find...
  19. Re: Retrieving the Default Gateway information using VB6

    You need to use the 2 double quotes escape sequence to put "s in strings. You should use command.com if it doesn't exist.

    Sub GetGateway()
    On Error GoTo DosWindows
    Shell "cmd.exe /c ipconfig...
  20. Replies
    45
    Views
    2,375

    Re: String conversion

    Why would you use comma's as decimals anyway?


    Dim i As Long
    i = 20
    MsgBox Len(i)


    I guess coertion explains why 20 is 4 characters long?
  21. Re: A better way of saving information

    Download the source code for doom builder (www.doombuilder.com or www.codeimp.com) and look at the "clsConfiguration.cls" file and then look how the configuration files are structured better than...
  22. Replies
    45
    Views
    2,375

    Re: String conversion

    Val() is a more foolproof version of CDbl()
    PS: Val() > CInt() (Doubles can be larger than 32767)

    Dim dTest As Double, iTest As Integer
    dTest = 32768.1131241
    MsgBox dTest
    iTest = 32768.1131241...
  23. Solution: Creating Shortcuts with only file i/o

    I found an alternative way to make shortcuts without any dlls whatsoever.
    I made this shortcut on my desktop with notepad


    [InternetShortcut]
    URL=G:\MyDocs\Fspace.exe
    IconIndex=0...
  24. Replies
    48
    Views
    7,518

    Re: IE7 has definately broken VB 6!

    You're lucky, you can still open help files, IE7 stuffed my installation of XP up.
  25. Replies
    2
    Views
    511

    VB6 Crashes

    The IDE will crash if i type in code like this:

    ReDim Some(0 To 1).Aa(1)
  26. Replies
    26
    Views
    1,796

    Re: Remove and replace chars

    MsgBox Asc("Char goes here")
    MsgBox Chr$(1) ' VB equivalent of "\1"
  27. Replies
    7
    Views
    6,293

    Re: Error Handling Made Simple

    Err.Clear is a shorter way instead of setting Err.Number to 0
  28. Replies
    2
    Views
    17,427

    VB6 - Ini Class

    This class can store information from an ini into memory rather than the API calls where you constantly open and close the same file over and over. It also does not require to load from a file, eg....
  29. Replies
    2
    Views
    1,501

    Re: Textbox SetFocus (SSTab)

    The code you're using makes the textbox get focus when you go from tab 0 to another tab.

    Private Sub tabSettings_Click(PreviousTab As Integer)
    Select Case tabSettings.Tab
    Case 0...
  30. Replies
    5
    Views
    844

    Re: Autoplay movie in VB6 using timer

    I don't know how to play or end it, but this code would begin the movie and end it after 30 seconds if the code to play and stop the movie was added.

    Public EndMode As Boolean
    Private Sub...
  31. Replies
    5
    Views
    844

    Re: Autoplay movie in VB6 using timer

    Create a Timer control and set the "Interval" property to 1000.

    If you wanted it to start at 10:30 PM then you would use (replace the Timer1 with the name of the Timer)

    Private Sub...
  32. Re: Timers on Windows 2003 Server

    If the control was missing, you would get an error.
  33. Re: Need help with this Error...

    Dim FB As Integer, FileData As String
    FB = FreeFile
    Open thefile For Binary Access Read Lock Write As #FB
    FileData = Space$(LOF(FB))
    Get #FB, 1, FileData
    Close #FB
    If InStr(1, FileData,...
  34. Replies
    4
    Views
    25,655

    [VB6] XP Styles Manifest Creating Tool

    This program quickly makes manifest files if you have forgotten how to do it and don't want to search over the internet for tutorials. I made this because I'm too lazy to look for the XP styles...
  35. Simple PHP Configuration/Database Functions

    These are an alternative to databases and are more effective than ini files because they can have newlines and carriage returns.

    EDIT: Reading bug fixed
    Here's the code


    <?php
    function...
  36. Replies
    5
    Views
    633

    Re: Changing data in exe file

    You just canceled out that reason with your last post.
  37. Replies
    5
    Views
    633

    Re: Changing data in exe file

    I'm making a program which is based on scripting and I want the users (who aren't likely to have vb6 or any vb) to be able to make distributable versions of their scripts as exes so that the people...
  38. Replies
    5
    Views
    633

    Changing data in exe file

    How can I make a program which writes data to an executable file, without corrupting it. And how can I read that data with the target app. If this is possible. This is so that I can change hardcoded...
  39. Re: Solving the arguments (Web server)

    Yes. One to support those arguments

    EDIT: I found out a way, here it is if you're interested

    to test it you need microsoft scripting runtime enabled


    Public Function SolveCommands(ByVal...
  40. Re: Solving the arguments (Web server)

    So that blah.php?var1=aa&var2=bb would return a value (preferably a dictionary object) with the object with a value called var1 set to "aa" and var2 set to "bb". Also to work out the % hex codes
Results 1 to 40 of 55
Page 1 of 2 1 2



Click Here to Expand Forum to Full Width