|
Wrap it in a class module and then pass the class module, and put properties in the class module so it looks like the original type definition.
--
Andrew.
|
|
|
|
|
Wow...That really is a great idea...
FiRoZ
|
|
|
|
|
Hi!
I am using shell to start ftp and send a few commands to a server, resulting in a file being retreived. I then process the file locally. I need to do this with a group of files, so i'm running this in a loop and this gets me into trouble.
All of a sudden, ftp commands show up in the document, since the processing of one file conicides with the retreival of another. I believe that the source of my problems is that shell runs asynchronously. MS states that it does this *by default*. How can I change this default? Or is there some smart work-around I haven't thought of? I already use a loop with DoEvents(), to give the ftp process time to get started before I send any commands to it, and I have a control to ensure that only one ftp process is running at a time (static variable in the procedure).
Any ideas on how to solve this?
Consultant, system/web developer.
IMS Consulting AB, Sweden
|
|
|
|
|
You need to run the preocess with the CreateProcess API...
You can test if the process is running, etc.
If you want I made a COM dll with VC++ for make that you need...
Best Reagards
Enter any 11-digit prime number to continue...
Carlos Antollini.
Sonork ID 100.10529 cantollini
|
|
|
|
|
I'm not sure what the CreateProcess API is. If you have a nice little component that might help, I'd be very glad to try it out! Please send it to my email
If you understand my dilemma, would you mind trying to explain to me how this process works/should work?
Consultant, system/web developer.
IMS Consulting AB, Sweden
|
|
|
|
|
Is anybody out there using the DLLs from www.vbaccelerator.com for menu icons successfully under XP? The icons do not show up for me. Compatability mode does not help the situation
The DLL is working, and is drawing borders around where the icons would noramlly go, but it would appear that the call to ImageList_Draw is not doing anything. Has anyone else had any problems with this?
--
David Wengier
|
|
|
|
|
I finished my little utility program, nothing fancy, just a little printer program for one purpose. When I run it in VB 5 it works just fine, I tell it to Make EXE, it starts compiling, stops with no errors reported so I assume it did it's thing. I goto the dir I told it to compile to and the dir is empty. Any ideas ? I did a search on all my harddrives and file isn't found anywhere.
Any suggestions would be greatly appreciated, thanks in advance
Zed350
|
|
|
|
|
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...
|
|
|
|
|