Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / April 2005



Tip: Looking for answers? Try searching our database.

VB DLL COM Object for ASP

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Timeless - 17 Apr 2005 18:42 GMT
Hello,
Could you please help me for my following problem.

I am developing a COM Object with VB 6.0 to be used for ASP.

It has a PictureBox Control in a Form Object
Picturebox loads picture from the dynamically created file.
It writes some text on the PictureBox , resizes and saves the picturebox
image to a file. then outputs the picture to the asp page.

It works fine when it is used in a Standard Exe Project. (called as
compiled dll)

also works on debugging mode. (Creates file)

But the problem is it doesn't work when it is called from the ASP.

The Error it gives:
Microsoft VBScript runtime (0x800A01FB)
An exception occurred: 'myObj.ShowImage'
/htdocs/test.asp, line 8

Line 8 is where the Object's method is called

Am I doing something wrong or
is there any restriction to use Picturebox control in COM Object for ASP
if So' can you advice me any alternative solution ?

Thanks in Advance!
Paul Clement - 18 Apr 2005 17:40 GMT
¤ Hello,
¤ Could you please help me for my following problem.
¤
¤ I am developing a COM Object with VB 6.0 to be used for ASP.
¤
¤ It has a PictureBox Control in a Form Object
¤ Picturebox loads picture from the dynamically created file.
¤ It writes some text on the PictureBox , resizes and saves the picturebox
¤ image to a file. then outputs the picture to the asp page.
¤
¤ It works fine when it is used in a Standard Exe Project. (called as
¤ compiled dll)
¤
¤ also works on debugging mode. (Creates file)
¤
¤ But the problem is it doesn't work when it is called from the ASP.
¤
¤ The Error it gives:
¤ Microsoft VBScript runtime (0x800A01FB)
¤ An exception occurred: 'myObj.ShowImage'
¤ /htdocs/test.asp, line 8
¤
¤ Line 8 is where the Object's method is called
¤
¤
¤ Am I doing something wrong or
¤ is there any restriction to use Picturebox control in COM Object for ASP
¤ if So' can you advice me any alternative solution ?

Could be a permissions issue. What does the ShowImage code look like?

Paul
~~~~
Microsoft MVP (Visual Basic)
Timeless - 19 Apr 2005 14:39 GMT
Hi,
I find out the problem. In fact it is so strange when i assign the
backcolor of the picturebox other than black or white it gives error.
Do you have any idea why it could be ?

Thanks in advance
Daniel Wilson - 19 Apr 2005 22:45 GMT
For the backcolor, are you using a VB constant like vbRed? Or just a number?
If a number, it may not be valid in VB.  VB6 doesn't use RGB values quite
the way that HTML does.

Signature

Daniel Wilson
Senior Software Solutions Developer
Embtrak Development Team
http://www.Embtrak.com
DVBrown Company

> Hi,
> I find out the problem. In fact it is so strange when i assign the
> backcolor of the picturebox other than black or white it gives error.
> Do you have any idea why it could be ?
>
> Thanks in advance
Timeless - 22 Apr 2005 13:49 GMT
> For the backcolor, are you using a VB constant like vbRed? Or just a number?
> If a number, it may not be valid in VB.  VB6 doesn't use RGB values quite
> the way that HTML does.

Thank you for your attention.
I use VB Colors (Constants) and it works fine when I use same dll in a
Win32 EXE Project.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.