The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Coders Corner

Reply
 
Thread Tools Display Modes
Old 05-15-2008, 02:12 PM   #1
Newbie
 
Join Date: Jul 2007
Posts: 9
My Photos: (0)
[VB6] Problems with MsComm in a DLL plugin for Road Runner

Hy everybody...
I'm becoming mad with a problem that I can't solve:

in my visual basic 6 program, that is a plugin for road runner (a DLL),so it has not a Form, and I must use the com port.
I initialize it with these two commands:

Code:
Dim MsComm1 As MSCommLib.MSComm Set MsComm1 = New MSCommLib.MSComm

but while executing, the program says: "utilizzo non valido della parola chiave NEW", in english: "incorrect use of the keyword NEW"

I searched help in google, but purposed solutions can't solve my problem...

I tried this:

1.
Code:
Dim MSComm1 as MsComm MSComm1 = CreateObject("MSCommlib.MSComm")

but the program says that it can't create the ActiveX object

2. writing only
Code:
Dim MSComm1 as MsComm

but this time the program says that the variable is not defined...

someone help me please!!!
DaveDevil is offline   Reply With Quote
Sponsored Links
Old 05-16-2008, 01:09 AM   #2
Maximum Bitrate
Robby BMW's CarPC Specs
 
Robby BMW's Avatar
 
Join Date: Aug 2005
Location: Italy
Vehicle: BMW 320i
Posts: 485
My Photos: (1)
Create an invisible Form and place the MsComm control in it
__________________
_______________________________________
Car installation 95% [■■■■■■■■■■■■■■■■■■■]
Current project: Parking sensor USB interface
Robby BMW is offline   Reply With Quote
Old 05-16-2008, 01:57 AM   #3
Newbie
 
Join Date: Jul 2007
Posts: 9
My Photos: (0)
uhm... but how can i "load" the form, if i'm using a DLL?

I must load a invisible form every time that I call my function, and at the end close it?

or simply when the skin loads, do all the events in the dll?
DaveDevil is offline   Reply With Quote
Old 05-16-2008, 04:24 AM   #4
Newbie
 
Join Date: Jul 2007
Posts: 9
My Photos: (0)
i think that i solved the problem:

in the net i found this
Code:
Dim MSComm1 as MsComm MSComm1 = CreateObject("MSCommlib.MSComm")

that i pasted directly in my program.

but it's not correct, because in the second line i create an object that is already existing.

so i had to modify in this:

Code:
Dim MSComm1 as Object MSComm1 = CreateObject("MSCommlib.MSComm")

and it works perfectly!

Thanks everybody!!!
DaveDevil is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Road Runner & Blue Devil - MapPoint 06 & playlist problems toones Road Runner 4 12-27-2006 03:22 PM
Extension plugin problems festy Road Runner 2 06-23-2006 06:20 PM
problems with video + road runner. nealric Road Runner 1 01-14-2006 09:37 PM
Problems with Markus Zehender's plugin SA bombboyer General Hardware Discussion 5 11-25-2002 02:58 PM
Lorty's plugin display problems, really weird dudah85 Software & Software Development 2 08-07-2001 11:59 PM


All times are GMT -5. The time now is 01:56 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics