microsoft.public.vb.com
  Home FAQ Contact Sign in
microsoft.public.vb.com only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
microsoft.public.vb.com Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  pioneer hdmi 1.3 hdmi analog gutes hdmi kabel dvi monitor kabel hdmi analog         


Author: sdgvfwe
Date: Jul 20, 2008 19:10

Show full article (1.47Kb)
no comments
  add mscomm in my activex?         


Author: Adrian Chen
Date: Jul 17, 2008 19:32

I'am a beginner in Visual Basic 6.0. Now I try to write a ActiveX control
that is in charge of communication through COM1. So I decided to adopt
MSComm control.
I draged a button onto the usercontrol.Then I wrote some statements in
its double-click event handler,like this:

Private Sub Command1_Click()
Dim MyComm As MSComm
MyComm.CommPort = 1
MyComm.Settings = "9600,N,8,1"
MyComm.PortOpen = True
End Sub

Then I started to run it in a web page by printing F5. When I double-clicked
the button, a message box jumped out on which it says as following:

Run-time error '91':
Object variable or With block variable not set

Please tell me why this happened? Where did I wrote incorrectly? Thank all
of you!

Adrian
Chen
no comments
  hip hop topliste topliste script boys topliste hip hop topliste dance toplist         


Author: sdgvfwe
Date: Jul 17, 2008 19:12

Show full article (1.00Kb)
no comments
  429 ActiveX component can't create object when using late binding         


Author: Waldy
Date: Jul 17, 2008 08:12

Hi there,
why would I receive the above error when I use CreateObject?

The following code works:

Dim obj as MyComObj

Set obj = New MyComObj

but if I use the following code it errors:

Dim obj

Set obj = CreateObject("MyComObj")
4 Comments
  Spurious Error 9: Subscript out of range         


Author: Tony Proctor
Date: Jul 17, 2008 03:14

I'm looking for some suggestions here as a section of code is misbehaving
at only one site (2 machines) and works elsewhere. The code is part of a
multi-threaded ActiveX EXE. The exact same EXE is installed at several
sites.

At this one site, a subscript-out-of-range error occurs. Because of the
extensive logging I know that it occurs on entry to the following
initialisation loop and that it never gets through one iteration of it
(because no activity is logged on other thread IDs)

ReDim tThreads(0 To iThreadCount - 1)
For iThread = 0 To UBound(tThreads)
With tThreads(iThread)
Set .oThread = CreateObject(sThreadProgID)
.lThreadID = .oThread.Initialise(sWorkDir)
End With
Next iThread

I know that iThreadCount is 5 because the logging explicitly records it just
before entry to the loop

I'm guessing that either the ReDim has not created any entries (causing
UBound to fail), or that the internal With-block initialisation is failing
Show full article (1.53Kb)
no comments
  mscomm problems         


Author: Charles Panke
Date: Jul 17, 2008 01:35

Hi all,

since years I have a module in my app which
uses mscomm32 to send and receive data via RS232.

Works ok so far.

Now I have a device which uses XON/XOFF.
Should be no problem, but it is.
The receiver gives errors after some time.

There are some other programs around which can
communicate ok with the mentioned device.
So it's clear my transfer is not ok.

So I used a port monitor to see what's going on.

I can see mscomm makes a lot of traffic on the
port. My feeling is XON/XOFF is not functioning.
The other apps which send with success are
calm on the port.

I already tried a replacement for mscomm and
there is no difference to mscomm.

WSC4VB is working ok, but it's a lot of work
to replace mscomm with it.
Show full article (0.78Kb)
2 Comments
  Calling Visual Basic dll from Excel VBA code         


Author: B-rad
Date: Jul 15, 2008 08:29

Hello Everyone,

I'm having a problem using excel vba to call the following dll code
which was created as a "Class Library" using Visual Basic 2008 Express
Edition (note: "Class Library" was the only project choice that I saw
that created a dll).
_________________________________________________________
Public Class Class1
Public Sub a1_home_cell(ByVal jun As Excel.Workbook)

MsgBox("You're In!")
' returns each sheet to the home position

Dim sh As Excel.Worksheet
'Dim jun As Excel.Workbook

For Each sh In jun.sh
'ActiveWorkbook.Worksheets()
sh.Activate()
sh.Range("A1").Select()
Next sh
Show full article (1.17Kb)
10 Comments
  Calling Visual Basic dll from Excel VBA         


Author: B-rad
Date: Jul 15, 2008 08:23

Hello Everyone,

I'm having a problem using excel vba to call the following dll code
which was created as a "Class Library" using Visual Basic 2008 Express
Edition (note: "Class Library" was the only project choice that I saw
that created a dll).
_________________________________________________________
Public Class Class1
Public Sub a1_home_cell(ByVal jun As Excel.Workbook)

MsgBox("You're In!")
' returns each sheet to the home position

Dim sh As Excel.Worksheet
'Dim jun As Excel.Workbook

For Each sh In jun.sh
'ActiveWorkbook.Worksheets()
sh.Activate()
sh.Range("A1").Select()
Next sh
Show full article (1.17Kb)
no comments
  nic herrenmode kaufen phoenix herrenmode kaufen herrenmode kaufen online shop hansen herrenkleidung online www herrenmode kaufen         


Author: sdgvfwe
Date: Jul 13, 2008 10:34

nic herrenmode kaufen phoenix herrenmode kaufen herrenmode kaufen online shop hansen herrenkleidung online www herrenmode kaufen

+
+
+
+++ MAENNERKLEIDUNG KAUFEN +++ MAENNERKLEIDUNG ONLINE BESTELLEN +++
+
http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO
http://WWW.MAENNERKLEIDUNG-KAUFEN-24.INFO
http://WWW.MAENNERKLEIDUNG-KAUFEN...
Show full article (2.58Kb)
no comments
  Executable for other OSs         


Author:
Date: Jul 10, 2008 02:00

I have written a small VB6 executable program which I plan to publish
on the Internet. I know it works OK on Windows XP (and I assume Vista
also, although I haven't yet tested that) because the VB run time code
comes with those OSs. I don't want to distribute it using some
complicated Install program, I just want the end user to copy it to
their hard drive and be able to run it immediately, which it does.

My question is, if someone wants to install the program on some other
OS such as Win 98, Win ME, Win NT, etc (although this is fairly
unlikely) what other files would they need to obtain, where would they
get them from and how would they install them.

Peter Hibbs.
16 Comments
 
1 2 3 4 5 6 7 8 9