|
I have an ActiveX DLL that I can only use on machines that have Visual Basic installed on them. I think the DLL is dependant on MSINET.OCX. Can someone please tell me how to either remove the dependency on visual basic being installed or how to install MSINET.OCX onto other workstations.
Thanks in advance for any help you can give.
Steve.
Systems AXIS Ltd
|
|
|
|
|
I think I have found the answer I am looking for. The Package and Deployment Wizard that comes with Visual Studio pointed me in the right direction. To install a .OCX file all you have to do is use the REGSVR32.EXE tool. ie to install my DLL on a workstation without Visual Basic installed I had to do the following:
"regsvr32 axistools.dll" - DLL containing my COM object
"regsvr32 msinet.ocx" - DLL referenced by my DLL
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
I had a program that would create my .rc file for you with drag and drop, then compile it for me useing rc.exe. Anyone know what it was called and where I can get it if it still exsists out there. I d/led one called ResMaker but the install doesn't work, keep getting can't find st4u!!! file error.
Any help would be gretly appreciated
Zed350
|
|
|
|
|
Update . . .
I found the file I was looking for. It's called WinRC. You put your Bitmap, Icon, String and Wave files into it and it compiles it for you without an external compiler. Will compile in 16 and 32 bit so it can be used on VB416 bit, VB432 bit and VB5 and newer. If your interested in getting this little utility just e-mail me at zed350@aol.com and I'll send it off to you. It's Freeware and a small file.
Thanks Again
|
|
|
|
|
Hi,
Problem:
Does anyone know of a way to retrieve the full path and file name of an application with just the handle to the window?
I have called the API function "FindWindow" to retrieve the handle:
Dim lngRet as Long
lngRet = FindWindow(vbNullString, "MyTitle")
But how can I obtain further from this?
Help Please!!!
Brian Woodburn
|
|
|
|
|
Given a window handle you should be able to use GetWindowModuleFileName API. However, it does not appear to work on Win95, only 98 or later.
UINT GetWindowModuleFileName(
HWND hwnd,
LPTSTR lpszFileName,
UINT cchFileNameMax
);
|
|
|
|
|
Anyone know how to do voice command using VB programming????
|
|
|
|
|
|
I have a DLL written in Visual Basic that contains 1 COM object. Could somebody please tell me how do I find out the CLSID and REFIID to pass to CoCreateInstance() to use the object in a C++ program. I have full access to the DLL source and a copy of Visual Basic. OLE View gives several CLSID's but I'm not sure which one to use.
Thanks in advance for any help you can give.
Steve.
|
|
|
|
|
In oleview the CLSID for the component is the one found above the coclass declaration. Interface ID is the one found above the interface declaration.
|
|
|
|
|
Anyone know where I can find documentation for writing modules in Visual Basic?
Everyone welcome the NewbiE!!!!
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
What exactly are you looking for. I know that most people, including myself usually write functions that are stored within a module. Could you be more specific?
Nick Parker
|
|
|
|
|
Well, you see, I really don't know what I'm talking about. I used to make some QBASIC junk and after I installed Visual Basic to my computer, all my .bas files turned into VBasic modules, so I was wondering what that was all about.
Everyone welcome the NewbiE!!!!
First Programmer: "How many bits are in a bite?"
Second Programmer: "You spelled bytes wrong."
First Programmer: *stares* "It's a joke, moron."
Second Programmer: "Joke...?"
|
|
|
|
|
I have created an Ocx control in vb.This control has a textbox to serach the text entered in it.After entering the text anyone can delete the entered text using backspce key.I mean to say the i have traced the backspace key using it's ASCII value as 8 and it works fine.But when i
attach this ocx control to my browser like yahoo and Google toolbar, then now backspace key doesn't work ie.it doesn't delete text.Could anyone help me please?
|
|
|
|
|
I have a class which keeps track of a few circles and draws them in a row using Worksheet.Shapes.AddShape
I was quite happily calling member functions and running them from a module with no problems. Then I tried to implement a form to take input (how many circles, size, position etc) and pass it to the class and have it drawn. I just used a handful of TextBox controls. A button is used to copy all the textbox values when pressed, and pass each to the class. Everything worked as before, except that the first circle in the row will never be drawn. The other circles will be drawn in exactly the right position as if there had been a first circle, but instead there is a blank space.
I have isolated the variable which is passed to the class which causes the problem - it is the x position on the sheet. I have used the locals window to check what value is passed to .AddShape and it is exactly the right value of 400. Yet the circle never appears. Change the button function to call 400 instead of taking the same value from the form, and it is back again.
I have tried passing the variable by value which I would have thought would make the two cases indistinguisable to .AddShape. No luck. I have checked pretty thoroughly that the circle is not just being drawn in the wrong place or somewhere else.
So I give up. Any suggestions would be greatly appreciated, even/especially the general debugging approach you might use for something like this (bear in mind I am a certified newbie....)
Thanks
|
|
|
|
|
Hi guys,
Is there a way to send key-strokes messages to other apps. Current senario; I usually open a MS Word, GFX editor etc. What I want the VB code to do is; I press a button -> VB tells All Open MS-Word, GFX editor etc. that Ctrl-P has been pressed, for example. Anyway to do this?
|
|
|
|
|
I guess you could do it with API's: EnumWindows and SendMessage. VB have a native SendKeys statement, but you will still need to use EnumWindows to get all the window handles...
|
|
|
|
|
|
How can I create a form programmatically without having any form
in my project in the first place.
That means without using reference for an existing form.
Instead referencing directly the Form object.
Pilgrim
|
|
|
|
|
In visual basic 6.0 we cannot create any control dynamically without having reference with existing object.
|
|
|
|
|
It is true for the forms - they cannot be created without a reference to existing form. However, you *can* create other controls without references to existing controls. Following code works:
Dim txtTest As TextBox
Set txtTest = Controls.Add("VB.TextBox", "txtTest")
txtTest.Move 100, 100, 1000, 300
txtTest.Visible = True
|
|
|
|
|
|
I have two questions, when I print using the Textout method
I always get the default printer setting. I would like to
change the style of the print, lets say MODERN Or SWISS, how can I do that. Also is it possible to change the print
styles while the doc is printing. Lets it starts in times roman and then goes to arial or a larger size. Can this be done with textout or do I have to use The Draw text method
to do this? If so how?
|
|
|
|
|
Printer.Font
Regards!!!
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
So how would I code this in C++?
|
|
|
|