Skip to content

Visual Basic

Visual Basic Questions

This category can be followed from the open social web via the handle visual-basic@forum.codeproject.com

34.4k Topics 120.1k Posts
  • Dereferencing in VisualBasic

    help
    2
    0 Votes
    2 Posts
    11 Views
    L
    It's not directly possible to dereference a variable in Visual Basic, but you can do a workaround with the help of the api-function "rtlmovememory" (copymemory). This function makes it possible to copy the data of the variable when only having its adress (varptr-function in VB; some api-functions only return pointers to datastructs). Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" _ (hpvDest As Any, ByVal hpvSource As Long, ByVal cbCopy As Long) This function copies the value of a variable into another variable of the same size (hpvDest). The second parameter takes the adress of the sourcevariable. The third parameter takes the size of the variable. I think there is an example of this technique in the Knowledge Base... "HOWTO: Call NetUserGetInfo API from Visual Basic" Article ID: Q151774
  • Save date and time to a txt document

    tutorial question
    2
    0 Votes
    2 Posts
    8 Views
    K
    Here is a list of commands/functions that you might need: NOW, OPEN, PRINT, CLOSE.
  • Run ExE

    2
    0 Votes
    2 Posts
    9 Views
    L
    Here is an easy way to do it: Write a VBA script in OutLooks script editor. In the Application_Startup event, call Shell "OurExe.exe"
  • Detect Application Launch

    tutorial question
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • rename file

    tutorial question
    3
    0 Votes
    3 Posts
    15 Views
    L
    I need that in VBScript.I think Vbscript doesn't support file.name I am not sure about this.Please let me know.
  • vbcomponent in javascript

    javascript com data-structures tutorial
    3
    0 Votes
    3 Posts
    11 Views
    L
    i don't think that:suss: X| :rose: :rose: :rose: :rose: :rose: foryou ghlooooooooooooooooooooooo
  • iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • variable problems

    csharp visual-studio com debugging json
    3
    0 Votes
    3 Posts
    19 Views
    L
    I would say that if vNumber should be a numerical value, explicitly cast it to what you need it to be. It is probably turning into a string. Set a breakpoint at the MsgBox line and set a watch on vNumber(x). That will probably help you determine how the data is kept and what you need to do with it. Text1.Text = CInt( vNumber( x ) ) By the way, is x declared elsewhere?
  • Passing variable values between forms

    question lounge
    3
    0 Votes
    3 Posts
    16 Views
    L
    You dont even have to declare it on each form. Just reference the one in frmMain as illustrated by Jason. Make it local to the function you are using it in Private Sub cmdDoStuff_Click() Dim iPort as Integer iPort = frmMain.Port ' etc. End Sub
  • Scanning (Not anti-virun scanning) using VB API

    json tutorial
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Is it possible to build mail server in vb?

    sysadmin help tutorial question
    2
    0 Votes
    2 Posts
    9 Views
    G
    i dont know actually but u can use cdonts.dll for this. we can send mail with this
  • Run ExE

    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • irc bot

    help question lounge
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • how do i make a program that makes change!

    question
    1
    0 Votes
    1 Posts
    5 Views
    No one has replied
  • dreMaking a 2D game.

    help question delphi com adobe
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • ADOBE & VB

    adobe
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • Crazy question

    question database help announcement
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied
  • Service app - How do I tell if a user logs in?

    question linux help
    4
    0 Votes
    4 Posts
    19 Views
    J
    Write your service as usual, and then write secondary app which you can place in the user startup folder which tries to connect to your service. VNC is a remote control app, which is well respected and exists under GPL I think: http://www.uk.research.att.com/vnc/ It also gives an icon in the 'clock box' when running as a service. Al. ATL Student :rolleyes:
  • Antialiasing Question

    question tutorial
    1
    0 Votes
    1 Posts
    6 Views
    No one has replied
  • How to use IPAdress Control in VB ??

    com tutorial question
    1
    0 Votes
    1 Posts
    4 Views
    No one has replied