Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




How Can I Change OCX Type Library ?


i must change Type Library of ocx file. but i cant. always giving error.. i am using delphi and pe explorer.. is it possible ? if is possible what i need ? thnx everyone




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Anybody Used D3D Without MS's Type Library?
Doing this would mean:

1. The application can run on Vista without the user manually installing dx8vb.dll

2. You can use DX9 or 10 in VB6.

I've got as far as creating a Direct3D8 object by hand, but am now stuck.

MSN Type Library
I added the References - MSN type library

I was wondering how to logon with it

i put the following code

user = MSN.CreateUser(Text1.Text, MSN.Services.PrimaryService)
MSN.Logon user, Text2.Text

is that right?

Type Library??
Hello,

I am familiar with object library file names having a .olb (object libary), .exe(executable), or .dll (dynamic link library) extension . I noticed that some object library file names have a .tlb extension which is called "type library". Could anyone explain to me that object library?

thanks,

What Is Type Library?
Hi

I dont understand the difference between DLL and TLB. There is no option in VB to create type library. Why so?

Type Library
Is type library an interface to a dll or is an alternative to a dll?

Type Library
Hi,

I am using the RemoteCe.tlb for Remote API. I have included its reference in my project . I created its setup using the Application Install Wizard in which i have specified the .tlb file. But it gives errors when i execute it on the device , Variable is Undefined 'CeRapiInit'
How to use a type library on the device, is there a registration process?

Best Regards,
Salil.

Type Library
Wat is "Type library" in VB6.0.
Tx in advance.

Rgds,
Chandru

How To Dynamically Change A Data Type Of A Variable From One User Defined Type To Another
I have a situation like this. I want to declare a variable of a user
defined type that changes dynamically.
Like i have a user defined type called type1 and another called type2.
And i use

DIM var1 as type1

At later point of time i want the same variable to be declared to
type2. Use of REDIM is for arrays only and not for user defined types.
Is there any solution? Your suggestions would be of great help to me

Bye
Tej

Quicken Type Library
I am not sure if this is the right place for it.. but any of you know how to use the VB Quicken Type Library...

it appears in the Refrences in VB IDE.

Type Library Problem............
Using Visual Basic 6 (SP 5) and Visual Sourcesafe 6.0a

I have a program that will not start up correctly. Each time i try to start the application i get the following message.........

Quote:




C:windowssystem32amcompat.tlb could not be loaded - continue loading project ?




if i then continue i cannot see any forms or anything in the project explorer window.

This previously worked when i last needed to open the application around a month or 2 ago.

My colleague can open the project no problem from his machine (we both check forms etc out of sourcesafe to modify them). i have tried opening the project having replaced by amcompat.tlb file with the one on his machine to no avail.

i have created a new working directory and grabbed the latest project version from sourcesafe into it. Alas no luck.

i have also tried registering the .tlb file with regtlib but again no cigar.

i have searched this site but can't seem to find a post that mimics my problem.

Any ideas greatly appreciated as i am at a loss as to what next to try ?

Creating A Type Library
Hi

I am trying to create a type library for VB using a few existing C header files.

What I have right now is:
-bunch of header files with the functions
-odl file
-mktyplib and midl compiler

But how can I put all this together? I tried to include the header files like this:

.odl file code:

[
uuid(dc529c80-ad41-11d7-8647-00c026a6dc83),
helpstring("some library v0.1"),
lcid(0x9),
version(0.1)
]

library somelibrary
{
#include "headerfilename.h"
}

But when I compile I'm getting errors pointing to code in the header files, but I'm not sure I'm doing this all right. I'm not even sure what I am doing...

Type Library Vs DLL - That Pesky 1%
Hi All,
Don't blow your brains on this one, but if you've got any ideas.....
Note: Whilst this is related to DirectX, I believe this is the right place for the question.

So I've got this software VB6 and DX7 (.Net re-write pending...)

There are 300+ users with the software running fine, but I've recently had a call from a new user who's getting a GPF when he runs the exe, on both machines he's tried it on. The Machines are different (1 HP, one Dell) but they both produce the exact same GPF 0xc..005 at the same address (interestingly!).
I've done some investigation, and we've tracked the error down to a single line in the code.

Code:
' Per the MS Usage example
' And "almost" every instance I can find anywhere on the net
Set DD = DX7.DirectDrawCreate("")
And as I say it works brilliantly on hundreds of machines.

The "" parameter is the GUID for the Display Adapter, and the documentation states passing a null string creates the object with default "Primary Display"

Now, during my investigation I looked into the old DX DLL's and the "C" versions, and they are expecting LPTSTR.. and the documentation states you should pass a Null Pointer, to create the object on the "Default Adapter"

Now, I understand the difference between a null pointer, and a pointer to a null string, but since the function seems to work quite happily (most of the time), I have presumed the Type library (or dx7vb.dll) is handling that for me, and will ultimately treat a null pointer and a null string (or pointer to) as the same.

But now I'm not so sure!!

I've found one (yes count it 1) reference anywhere on the net to someone having a "similar" problem, though his was fine as .exe, but crashed his IDE everytime.
His "outside the box" solution was instead of passing "" to the function,
pass Byval 0& instead.

Now the type library function definition shows DirectDrawCreate(guid as String).. passing the string byref, but VB does let you pass Byval 0& without complaint.

And I was flabbergasted to hear... it fixes the GPF... woo hoo!
So far as I can tell, the change has no detrimental effect on the 4 machines here I've tested it on, either version works fine.

but what if... changing to Byval 0&.. and fixing these 2 machines..
now breaks it for 2 others (or more)?

My Questions:
i) Has anyone seen anything similar before... DX or otherwise?

ii) Any suggestions on how I might "sure this up", and increase my confidence that changing to Byval 0& won't break any other machines? (preferably without resorting to a Beta release)

iii) Might I be better reverting to the DLL directly, rather than going through the Type Library and dx7vb.dll (similar to my previous post regarding MAPI32.dll)

iv) Any suggestions where the GPF might be coming from??
Since it's only happening on 2 machines out of hundreds, it's got to be "something" about those machines.
The only thing I can find in common between them, that's different to the machines here, is they both use Intel Integrated Graphics Chipsets (though different models and different drivers, but both are now 100% up to date)...
But I can't believe that none of the other 300 users have those.

TIA for any suggestions..
Cheers

PDFMakerAPI 1.0 Type Library (VB6)
Someone know how to use "PDFMakerAPI 1.0 Type Library"
for create PDF File ?

I want to do printform in a loop without the box for the filename

if anybody have a suggestion...

thank you !

Messenger Api Type Library
I have downloaded windows Messenger, but I cant find any Messenger Api type library. Is it just hidden somewhere Or have I really not got it?

How Can I Create A Type Library W/ VB6 Pro
The title says it all!

Thanks,
Randy

MSN Messenger API Type Library
Hi,

My current app can retrieve the list of people from MSN Messenger every 30 seconds. However, if someone closes down Messenger and starts it over again, my application can no longer retrieve the list. Could someone suggest a sollution?

Messenger 1.0 Type Library
I need messenger 1.0 type library so that i can write my own messenger VB scripts, but cant find it. Its not in properties --> references, which is a major problem. Does anyone know eiter which file its in so i can add it and/or where i can download it from? cause knowing my luck i wont have that file!!

Thanks Marc

Direct X 8 SDK Type Library Help!
Hello,

I downloaded and installed the Direct X 8 SDK, but the type library will not show up in the references. How do i put the DX8 type library in the references?

How Can You Create A Type Library?
I came across a file call win32.tlb. It seems to have all API in it. How can I take only a few of my favorite API and customize my own My.tlb?


Thanks

COM+ Services Type Library
Hai
i am making a component+ for which i need system provided interface
so i have to include [COM+ Services type library ] can u let know fromwhere
i can get this

_rgds
Naveen Kumar T. V.
Senior Associate
ACCESS AUTOMATION PVT LTD
101, Annexe Block,Brigade MM,
7th block, jayanagar,
Bangalore -560082
Phone : 080 - 676 4262/63 @ 38
web : www.aaplweb.com
email@removed

How To Write A Type Library?
How to write a Type library (*.tlb) for a dll writhed in C++ for be used in
Visual basic. For example how to write a tlb for these the dll with this
function:

#include "StdAfx.h"
#include "Adrian.h"

short __stdcall
suma( short a,short b)
{
return (a+b);
}

COM+ Services Type Library?
I have an old ASP application that runs in Windows NT. I would like to enhance it put cannot register the dll's on my Windows 2000 machine. The error I get tells me to reference the Microsoft Transaction Server Type Library. When I read up on this and Windows 2000 I read that I should be referencing the COM+ Services Type Library. My question is how to I get the COM+ Services Type Library to display in my list of references? Thanks for the help.

Type Library Woes!!!!
Hi

I have written an application that uses Microsoft Word 2000 Object Library. My problem is how do I make it Microsoft Office Type Library independent? I can't install each version of Microsoft Office on each operating system and compile to get about a dozen or more installation packages. Is there a way to check which Office version is installed & load the appropriate Type Library so that the application will work independently of Microsoft Office? Can't wait to hear a suggestion!



Kind Regards

Graham Oakford

Using Type Library On WINCE
I have found that there is a very large overhead in calling a DLL from VB via a DECLARE statement. My application
contains processor intensive code in a C++ DLL with a VB front end.

The article
 
http://support.microsoft.com/default.aspx?scid=kb;en-us;189133#appliesto

says that use of a type library rather than DECLARE is more efficient. But I cannot make it work - it says at run time that my entry point in the C++ DLL called from VB is an "undefined variable". Yet the name was exposed by the object browser in the EVB development environment, and I can call it OK via a DECLARE statement. Can anyone say

(1) Does the type library (.tlb) file have to be available on the target system at run time?

(2) Does the type library and/or DLL it have to be registered on WINCE using REGSVRCE?

(3) Do the entry points in the DLL have mangled names or should they be declared extern "C"?

Peter Seaman

Type Library Creation
Does VB6 come with software to create type libraries? I've read about Markty something or other but can't find the exe.. Also how about a res compiler, where can I pick up one of those?? Any suggestions would be appreciated. Thanks.

COM+ Services Type Library
Where can I find this library located? What SDK houses it?


Thanx,
Chris.

GDI+ Type Library - Plus Wrapper Classes
This sample contains a complete Type Library containing all the declares you should need to use GDI+ in VB5 or 6. I did not add the IStream related functions, because I don't see the need. If I do in the future, or there are requests, I'll add them too.

Included are:

600 - Declares encompassing the entirety of GDI+
44 - Enums
36 - Structs/UDTS/Types
And, too many Constants to count

I parsed the GDIP headers to create this tlb, so I'm sure there will need to be changes made. Please post in the API forum with "GDI+" in your topic if you have questions/suggestions/comments.

My bitmap/graphics wrapper is a work in progress, I'll probably make updates periodically.

To use this tlb with my previous samples, you'll need to change GUID to CLSID. Due to the fact that stdole has a GUID type that is not consumable by VB, I changed to CLSID.

Missing Active DS Type Library
hi,
i'm a beginner to Visual Basic. I have problem "Missing Active DS Type Library". So, how i want to solve it? Please help me, this is urgent about my final project?

Type Library Registration And Management
Type libraries are automatically registered by VB when they're used. This is very handy, until you decide you'd like to move the type lib and re-register it elsewhere. This application handles Registration and Unregistration of type libs, without the need to manually delete registry keys.

The application uses the ITypeLib interface which is also available via the tlbinf32.dll. This application and associated tlb have no dependency on that dll. And, also included is the ITypeInfo interface, which could be used to create an object browser of sorts, which would make a nice addition. I hope you find it useful.

MS Video Control 1.0 Type Library
hello
i knew how to load a dvd in run it in th ms video control using videocontrol.view("DVD: "), but how can i load the other format as vcd,avi,mpg.
please help before me!!!!!!!

MicrosoftTransaction Server Type Library
could anyone tell me, what is "microsoftTransaction Server Type Library" and where i can get it ,please?

ActiveDS Type Library Dependencies
I have written a app that referneces activeds.tlb (ActiveDS Type Library). My question is, when I create a setup package for this program it tells me that no dependency info can be found. Does any one know if there is any?

This project will not run on other computers, so I am curious if this is the reason

Type Library Not Loading Problem...
VB6 with SP6
Win XP

have a problem when opening a project that the following message pops up...

C:Windowssystem32amcompat.tlb could not be loaded--Continue Loading Project?

the project then loads ok but why is this happening ?

this is in fact a colleagues machine and he once tried to install VS.NET 2003 unsuccessfully so i am wondering if that failed installation may be causing the problem. Having said that i know they are meant to run on the same machine ok (as i do).

any ideas?

thanks
Paul

Creating A Type Library (tlb) For A VB Application
I'm having a hard time reading through a compound document
file type. I just need to retrieve the records in contain and be
able to display it in a report

I had a few readings regarding accessing a compound document
file, and it seems that all I should do is to create first a type library, and then make use of COM objects.

My problem now is i don't know how to create a type
library for that file.

If somebody can teach me the easiest way on how to do it by
using specific guidelines, or sample codes perhaps, I would
appreciate it very much.

I don't have any experience using COM objects either!

Active DS Type Library Reference
Does anyone know the dll needed to add this reference?

I want to add the reference to my project by browsing to the
server and adding the dll. Is this possible without it being
installed on my workstation?

Binary Compatiblity And Type Library
I have an exe that I want to delete some methods on, but I dont want to break binary compatibility.

I read somewhere you can "hide the method in the type library" to remove method without breaking compatiblity.

What does this mean and how exactly do I do this?

Question On A .dll And Type Library Just A Check
VB 6.0 or Visual Studio .net

I really want to play with the msvidctl.dll. The .dll can be found with directx or windows xp. The problem is the .dll has two type libraries. One being an actual component msvid with a type library and also includes a type library titled microsoft tuner 1.0

At home I have Windows XP with Visual Basic Pro 5.0
I can see the component msvid and its type library but not the tuner type library. I was wondering why this is and if there is anything I can do.

Work on windows 2000 with vb 6.0 I can see the tuner library but not the msvid component. My guess is this is win2000 and the dll requires XP for the msvid component. Problem is we have .net and vb 6.0

I was planning on upgrading my vb5.0 to either 6.0 or visual studio .net I am undecided at this time.

So if anyone has Windows XP and just visual basic 6.0 I would greatly appreciate it if you would tell me if you can see both the tuner library and the msvid component.

As always your help is greatly appreciated.


Thanks so much.

Dan Schuessler

COMAdmin Type Library For COM+ Applications...
Dear All,

Ever wonder anyone of u guys has tried this Type Library before ? COMAdmin....

This is something similar to MTXAdmin, which we can handle with the MTS Components or COM Application in a programmatic ways such as installating the MTS Components (or COM Application in W2K), set up the packages and etc.

I'm doing a project which will install n setup the MTS Packges or COM Application in W2K for Servers...and i came across something.....
the question is, i used the COMAdmin type library to write this project n i found that.... when it is in Debug Mode, everything run smoothly but once i tried it in Runtime Mode, this function "InstallApplication" returned me a error "Method ~ of object not Found"....

i'm not sure if this is caused by the COM+ application (which is a .MSI file) or the COMAdmin object... but it worked at the very first few times i run this project....

so, any ideas ? Thanx for every brilliant ideas !!

Using The Visual SourceSafe Type Library
I need to loop round all the version of all the files in Visual SourceSafe and change some comments.

I've added the Microsoft SourceSafe 6.0 Type Library to my project and added the following code to form1.frm to get a reference to the VSSItem I want to change.


Code:
Option Explicit

Private Sub Form_Load()

Dim objVSSDB As SourceSafeTypeLib.VSSDatabase
Dim objVSSItem As SourceSafeTypeLib.VSSItem
Dim objVSSVersions As SourceSafeTypeLib.IVSSVersions

Set objVSSDB = New SourceSafeTypeLib.VSSDatabase

Call objVSSDB.Open("C:Program FilesMicrosoft Visual StudioCommonVSSsrcsafe.ini", "Admin", "")

Set objVSSItem = objVSSDB.VSSItem("$/Root/SubProject/Temp.vbg")

Set objVSSVersions = objVSSItem.Versions

End Sub


The problem is that the Versions property on the objVSSItem object returns a reference to IVSSVersions object. If you have a look in the Object Browser the IVSSVersions object doesn't have any properties or methods. My question is how do I use the IVSSVersions object to loop round all the different versions?

I know I can do it in Visual SourceSafe itself, but I've got 1000's of checked in files to change, so I want to automate it.

Thanks in advance

Problems With Excel Type Library
I've got an application that makes use of the Excel object model. The program runs just fine on my desktop, which has Excel installed. However, when I build the package and install it on a machine without Excel or Office, the program can't create the Excel object. I've included the Excel8.olb file in the build. What am I missing? Is there another DLL I need? The olb file is the only one that I needed to include in the project file.

Thanks for the assistance.

Dave

Outlook Express 5 Type Library
When I try to add reference Outlook Express 5 type library I get an error: “Error loading DLL” anyone else have this problem or know a way to fix it?

Thanks,
Jason

HELP: Where I Can Get Voice Command Type Library
Where i can get voice command type library and how to use in VB...

Thanks

Withevents Not Working With Type Library
I am working on a VB project where a Server .tlb file written in C++ by somebody else will enable me to determine when something happens on the server.  The problem is that the typelib file that I try to use wont allow me to use the keyword withevents.  I tried the following :
Private Withevents mDataServer as DataServerLib.DataServer

I get the error message 'Compile Error: Object Library Feature Not Supported'.

I am trying to access an event called Notify on the server dll.

How can I do this?

I think the answer involves creating a Lib file and implementing the ISetCallBackEvent function but my knowledge of VB and Google goes a bit hazy at this point.

So far I have:

DataServer.tlb (the thing I'm trying to access)

DataServerLib (a VBP ActiveX DLL I've built) with the following class in:
   DataServerInterface (an interface I've typed in of all the dummy properties, methods and events provided in the tlb)
   ICallbackEvents (2 subs in it)

(Which lead me onto another issue :
In the ObjectBrowser for the typelib file there is a read only property 'Data' with the following definition :
Property Data(nRow As Long, nColumn As Long) As String
How do I declare the property for this in VB?

I tried the following:

Public Property Get Data() As String
End Property
Public Property Let Data(ByVal nRow As Long, ByVal nColumn As Long)
End Property

But it wont compile.

Am I on the right track with all this or am I barking up the wrong tree.  

Is it possible to get an event notification without using the WithEvents keyword?


Changes Project Type To Class Library
I was following instruction from a text (I'm new to .Net) when I came across the text:

"Change the project type to Class Library so other forms can inherit from this form. Right-click on the BaseForms project name in Solution Explorer and select properties. Change the Output Type from Windows Application to Class Library and click OK."

One problem . . . Class Library is not listed anywhere as an option for me. Am I missing a reference somewhere, or is just my version of VB.Net does not include CLass Library?

The interactive help was not of much use . . . Please advise.

Thanks,
SP

Rotate Bitmap Using GDI+ Type Library
I don't know if it's because I'm burned out or what, but I just can't seem to get things to work today. This is the last major block for this project.

I am manually grabbing frames using VFW because I need to manipulate the image before I display it. The main thing that needs to be done is rotate the image 90/270 degrees (depending on which direction the camera is tilted). It's capturing at 640x480 and needs to rotate to 480x640. Since this is being done every 50 milliseconds or so, I need a really fast rotate method. I searched around and found a sample on XtremeVBTalk that uses a type library (see attachment). It works fine for the example given, but it's a perfect square. I'm having problems figuring out the parameters for a rectangle. Here's what I have:

Code:Private Sub tmrPreview_Timer()

    Dim objPic As IPictureDisp
    Dim sngAngle As Single
    Dim blnDoRotate As Boolean
    Dim intWidth As Integer
    Dim intHeight As Integer
    
    intWidth = picPreview.ScaleWidth
    intHeight = picPreview.ScaleHeight
    If intWidth < intHeight Then
        blnDoRotate = True
    End If
    
    SendMessage m_lngCam, GET_FRAME, 0, 0
    SendMessage m_lngCam, FRAME_COPY, 0, 0
    Set objPic = Clipboard.GetData
    
    If Not blnDoRotate Then
        
        Set picPreview.Picture = objPic
        
    Else
    
        sngAngle = 270
        
        Set gdip = New cGDIP ' instantiate first, initializes GDI+
        
        Set bitmap = New cBitmap
        Set bitmap.gdip = gdip
        
        Set saveBmp = New cBitmap
        Set saveBmp.gdip = gdip
        
        Set graphics = New cGraphics
        Set graphics.gdip = gdip
        
        bitmap.CreateFromHBitmap objPic.Handle
        
        intWidth = picPreview.ScaleHeight
        intHeight = picPreview.ScaleWidth
        Set saveBmp = New cBitmap
        saveBmp.CreateFromClone intWidth, intHeight, bitmap.Handle, PixelFormat32bppARGB
        graphics.GetGraphicsContext saveBmp.Handle
        graphics.RotateTransform sngAngle
        graphics.TranslateTransform intWidth 2, intHeight 2, MatrixOrderAppend
        graphics.DrawImageRectI bitmap.Handle, intWidth 2, intHeight 2, -intWidth, -intHeight
        
        saveBmp.SaveToFile GetPathTemp() & "~cxi_ls_mug.bmp", gdip.EncoderGuid(gdip.ExtensionExists("*.bmp")), 0
        
        Set picPreview.Picture = LoadPicture(GetPathTemp() & "~cxi_ls_mug.bmp")
        
        Set graphics = Nothing
        Set bitmap = Nothing
        Set saveBmp = Nothing
        Set gdip = Nothing ' always last
        
    End If
    
    Set objPic = Nothing
    
    DoEvents
    
End Sub

Part of the image is rotated, but then the rest isn't. It's also positioned all wrong. I'm going out of my mind trying to figure this out.

Also, I'd like the image to go back into the objPic variable as the saving & LoadPicture are adding overhead. Also, I need to draw some lines and text onto the frame before presenting it.

Any help you can provide would be appreciated. I'm past my deadline and people are expecting results soon.

<Edit> Alternately, if you have a class library or module that can do fast rotation on an IPictureDisp object, I'll take that, too. I just need rotation and display that can occur within 50 milliseconds. </Edit>



Edited by - AbbydonKrafts on 10/23/2006 10:21:48 AM

ActiveMovie Control Type Library
I am looking for working samles of VB codes using ActiveMovie control type library. I tried to write a program using this reference, but i have some broblems with IVideoWindow property. I can't assign the owner to the movie window, this code doesn't work [g_objVideoWindow.WindowStyle = CLng(&H6000000) ' WS_DLGFRAME | WS_VSCROLL
g_objVideoWindow.Owner = frmDirectTV.shaWindow
g_objVideoWindow.Left = CLng(shaWindow.Left) ' shape is a placeholder on the form
g_objVideoWindow.Top = CLng(shaWindow.Top)
shaWindow.Width = g_objVideoWindow.Width ' resize the shape given the input video
shaWindow.Height = g_objVideoWindow.Height]. If somebody have information how to fix it I'll appreciate it. Another question, if somebody have complete information about total description of properties and methods of this reference send me e-mail please. In MSDN it is just general information about properties without information about asssigned values for every property.

URGENT PLEASE!!! How To Create Type Library From DLL?
I've create a dll using VB, which I defined a class containing all properties & functions. How can I create a type library file (in .idl format)? This file can then be register by running "midl file.idl". And what is the syntax of creating this file?

Ivy

How To Create Type Library (DLL) In C++ To Add As Reference For VB
Hiya to all GURUS out there

Could anyone please advice me in how to create a Type Library using Visual C++ so that I could add it into a Visual Basic Project as a reference?

In fact, a step-by-step guide would do. And as an example, an extremely simple Type Library would suffice as demonstration.

Thanks in advance

API To Change Sql Library
I have an application that uses the SQLOLEDB provider. The
problem is, on new clients, the default library is Named
Pipes.

It's easy enough to change the library to TCP/IP, and set
the computer name (or IP in this case), but I don't want to
have to visit every system. Is there any way to specify
these options in a connection string? Or, is there some API
calls that will set these options?

Copyright © 2005-08 www.BigResource.com, All rights reserved