Search Results - VBForums

Search:

Type: Posts; User: Peter Swinkels

Page 1 of 7 1 2 3 4

Search: Search took 0.02 seconds.

  1. Re: Another Serial Question. String or Byte

    I've taken a quick look at your code and I'm afraid that I can't really help you with anything specifically related to serial ports. However I can give you some general advice on programming: I...
  2. Replies
    4
    Views
    175

    Re: How are windows created

    Take a look here: http://www.vbforums.com/showthread.php?699019-Creating-a-window-by-using-the-API
  3. VS 2010 Re: How to Setup Startup Form in a VB.NET DLL Object

    You can't set the startup object for a DLL. Any initialisation needs to be done in "sub new":



    Class Class1
    Sub New()
    REM Put your initialization code here.
    End Sub
    End Class
  4. Re: Another Serial Question. String or Byte

    Do you have any code that you could post here? That would make helping you easier.
  5. Re: Is vb the right application for what I am trying to do?

    Here is a simple console program that can convert bitmaps to jpg files and also resize them:



    'This module's imports and settings.
    Option Compare Binary
    Option Explicit On
    Option Infer Off...
  6. Replies
    3
    Views
    148

    Re: MDI Form border problem

    Is the window you're trying to modify part of your own application or another program? If it's part of your own program I don't really understand why you would want to change its properties using the...
  7. Re: Run time error 94 "Invalid use of Null"

    You could try using the IsNull() function to check whether a variable is a null or not. You might want to look at the code attached to this thread:...
  8. Re: VB3 program saved in binary need to convert to text problem

    I should be able to get my copy of Visual Basic 3.0 running under Windows 3.11 in DOSBox. If you mail me the files or post them here I can try converting them.

    EDIT:
    Windows 3.11 and Visual Basic...
  9. Replies
    9
    Views
    285

    Re: Cant figure out the right code

    First of all: this belongs in the vb.net forum. What kind of files do you want to protect? Windows provides way to determine which users can access certain files and folders. Microsoft Office and...
  10. Re: Is there maximum length of input to an InputBox?

    I did some testing, it appears to be that the maximum input length for the InputBox function is 254 characters.

    Test code:


    MsgBox Len(InputBox("Input:", , String(1024, "*")))


    The code...
  11. Re: Unicode and the registry; so many extra chars

    From the MSDN on the RegQueryValueEx function:
  12. Re: Pick a number between 20 and 60????

    To avoid an exception when the user doesn't enter an integer, you could try this code:



    Dim Success As Boolean = Integer.TryParse(Console.ReadLine(), Number)


    The "Success" variable will...
  13. Re: Motion Detector.NET - detects movement inside a webcam's field of view.

    Okay, I made some changes to the code. Thanks for the comments. If you find anything else...
  14. Re: Motion Detector.NET - detects movement inside a webcam's field of view.

    Hi, thanks for commenting on my program. To answer your questions:

    1. CInt(0) - I always explicitly convert literal numerals to the required data type when doing API calls. A bit redundant...
  15. Re: Unicode and the registry; so many extra chars

    Ok. As you can see in my second to last post, I corrected these things.
  16. Re: Unicode and the registry; so many extra chars

    What do you mean? The data returned by the RegQueryValueExW function is converted only once. The first StrConv function call is to pass the value's name as unicode.

    EDIT 1:
    I took another look at...
  17. Re: Unicode and the registry; so many extra chars

    Try this code:



    Option Explicit

    Private Const ERROR_SUCCESS As Long = 0&
    Private Const KEY_ALL_ACCESS As Long = &HF003F
    Private Const MAX_REG_VALUE_DATA As Long = &HFFFFF
    Private Const...
  18. Re: Please help me help someone else

    You could try using a password on the .zip file (or any other archive type that supports it.) to bypass a virus scanner. I had to do that on occasion when I had to send some one a binary file. Just...
  19. Re: ADODB and SQL queries with parameters question

    It works now, thank you very much.
  20. Re: ADODB and SQL queries with parameters question

    Ok, thanks for the reply. I decided to forget about the second parameter. I now use the CreateParameter function. It still doesn't work though:



    Option Explicit

    Public Sub...
  21. Re: ADODB and SQL queries with parameters question

    I didn't add parameters? Then what is the Execute method's second parameter for? The documentation states that you can pass a variant array of parameters with it.



    Set CommandResult =...
  22. [RESOLVED] ADODB and SQL queries with parameters question

    Hello,

    I am trying to execute SQL queries with parameters using ADODB. From what I understand question marks in a query are replaced with the parameters specified as a variant array in the Execute...
  23. Motion Detector.NET - detects movement inside a webcam's field of view.

    This program captures images from a webcam and determines the level of movement in the camera's field of view. When the level of movement exceeds a threshold specified by the user, it displays a...
  24. Query Assistant - connect to databases and execute queries.

    What is the Query Assistant?
    A complete application that makes connecting to databases, executing and executing queries easier.

    What can it do?
    1. Connect to database using Microsoft ADO as...
  25. Re: [VB6] - Compare images using GetDIBits() API function

    Just count the number of pixels that don't match and perform this calculation:

    Percentage = (DifferenceCount / TotalPixelsCompared) * 100

    You also might want to look at this thread:...
  26. Registry Editor - demonstrates how to use various registry related API functions.

    Registry Editor is a basic utility for editing the Windows registry. The user can view, create, modify, and delete keys and their values. It shows how binary/numeric data can be handled by converting...
  27. Replies
    5
    Views
    5,253

    Re: Refresh / Redraw Windows Desktop

    I have written a program dealing with the manipulation of another program's window in Vb6 and Vb.net. The code it contains might also achieve what you want to do with the desktop.

    Vb6 version:...
  28. Cartooners Actor Viewer - export and import actors

    Looking for a challenge I decided to try and reverse engineer Cartooners' (a game by: ITDA/Electronic Arts, 1988) actor file format. After a lot of hard work, I have figured out about 99 percent of...
  29. Re: Created an application in Windows 7 that will not run on Windows XP

    Does your code make any API function calls? Especially to those that are new to Windows Vista and 7?
  30. Replies
    6
    Views
    727

    Re: vbKeyClear

    Perhaps I misunderstood, but, no key has any effect until you write code to be executed upon detection. What effect did you expect the vbKeyClear key to have?
  31. Replies
    6
    Views
    727

    Re: vbKeyClear

    Okay, this is what I found out:
    The vbKeyClear constant refers to the "5" key on the numeric keypad when Num Lock is turned off. Try the following code with Num Lock alternatively turned on and off:...
  32. Replies
    0
    Views
    1,335

    DAsm 8086 - a disassembler

    DAsm 8086 is a disassembler that can disassemble 8/16 bit code for 8086/8087/8088/80186 processors. The program also contains options to display information contained in MS-DOS executable (*.exe)...
  33. LBM Loader - Loads LBM (Deluxe Paint) and IFF (Amiga) images

    LBM Loader is a class that can load LBM (Deluxe Paint) and IFF (Amiga) images. It can load both compressed and uncompressed images. Supported color depths: 1, 4, and 8 bit.

    The attached file...
  34. TextBin.net - Extract text from binary files

    The attached program demonstrates how to extract strings containing only specific characters from a binary file. The project contains a class called TextBinClass and a form TextBinDemoModule.
    The...
  35. VB.NET Express 2010 - Window Scanner.Net - Explore and modify program windows

    Window Scanner.NET displays all active application windows and any child windows (controls) on the desktop. The user can modify these windows and view information such as which process owns the...
  36. HTML Document Explorer - Access HTML documents displayed by other processes.

    HTML Document Explorer allows the user to view the HTML documents displayed by other processes. The program also displays a list of elements and their attributes when a HTML document is selected.
    ...
  37. TextBin - Extract text from binary files

    The attached program demonstrates how to extract strings containing only specific characters from a binary file. The project contains a class called TextBinClass and a form TextBinDemoWindow.
    The...
  38. Re: Excel Add-In Script is not working through Active Setup

    I don't know anything about Active Setup, however when I tried to run your script normally (WScript), it didn't work. Even after creating an Excel addin called "testing.xla" in the same directory as...
  39. Re: How to get a Menu Item string of an MDI Applications?

    This is the API forum for Visual Basic and I see that your code appears to be written in C. Now I don't know much about C, but I know a little about API programming, so here are some ideas/questions:...
  40. Replies
    4
    Views
    4,310

    Re: Having trouble with If Then command:

    Does this do what you want?



    Option Compare Binary
    Option Explicit On
    Option Infer Off
    Option Strict On

    Imports System
Results 1 to 40 of 259
Page 1 of 7 1 2 3 4



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.