Search found 323 matches

by Loe
Jul 21, 2010 2:17
Forum: General
Topic: using a OCX in FreeBASIC
Replies: 1
Views: 1196

Now can I use the same code in FreeBASIC? not same, but you can use OCX in freebasic. search the forum for disphelper. most of FB user use this library to use COM in freebasic. or you can try my AxSuite2 here http://www.freebasic.net/arch/file.php?id=44 in disphelper the code become: DISPATCH_OBJ&#...
by Loe
Jul 12, 2010 18:03
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

compile with

Code: Select all

fbc -s gui usbocx.rc usbocx.bas

I dont know how to set this in FBIDE
I'll send you compiled usbocx to try
by Loe
Jul 12, 2010 14:35
Forum: Windows
Topic: Object Component Framework & Object Window Library
Replies: 5
Views: 1011

if you had a refference about use OWL in pure C (without class as in c++)
then I think it should be usable in Freebasic.

but for now, atl.dll is work as expected for me.
by Loe
Jul 12, 2010 2:02
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

OK, here it is. 'usb_vtable.bi '================================================================================ 'CLSID - USB ActiveX for Ds1620?{3E9848A7-C355-43EA-9E8A-DFBC10F00516} '================================================================================ Const CLSID_USB="&#...
by Loe
Jul 12, 2010 1:48
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

Hi Manfred,
thank you, from the sample. I found that USB.OCX is an ActiveX Control.
and it need ATL.DLL to embed it in your dialog/form.

wait for the sample code.
by Loe
Jul 12, 2010 1:39
Forum: Windows
Topic: Object Component Framework & Object Window Library
Replies: 5
Views: 1011

Hi STORM, in your other post, about how to use ActiveX Control, me and MichaelW had answered your question. Have you look ATL.DLL exist or not in your windows system? if it exist, then you can embed any activex control in your GUI. See michaelW sample code about how to. but if you meant "drag drop" ...
by Loe
Jul 11, 2010 0:19
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

Since I'm totally lost in what you are doing, I can only do robot duty! :-) im sorry :lol what i did is just like a monkey learn to watch television. didnt know how to treat the box. just know there is a button, remote control etc but didnt know how to use all of that. even didnt know just how to t...
by Loe
Jul 09, 2010 1:46
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

would you please to generate invoke code, goto menu code then select invoke. I neet to look up return data type in automation invoke call

EDIT:
i changed previous sample code to vtable call.
please save your previous vtbale code to "usbocx_vtbl.bi"
then try sample code in previous post
by Loe
Jul 09, 2010 0:48
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

Glad to see this information ^_^ you can paste the code inside 'Code' for better look. OK, foloowing earlier post about 3 step to use activex/COM, please modify some part of sample code with this: -program id of your activex is "USB_ActiveX.USB" or it class id="{67DC04D0-356C-4D85-BFB1-0B6CE962FDAD}...
by Loe
Jul 08, 2010 17:15
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

hi manfred, if you extracted axsuite2pkg.zip, youl find axsuite.exe in the root. it is a typelibrary browser. there is 4 column listview in the first tab, find usb.ocx in File column, and select it. you will then switch to 2nd tab (tree). there is enum, module etc. if interface branch not empty, got...
by Loe
Jul 08, 2010 1:00
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

Hi Manfred, I got somewhat stuck with the installation, and assumed that this would somehow fix itself - which obviously it didn't! soryy if installation was stuck, I have copy necessary function/sub in axsuite to above sample code in previous post. would you please to try again above sample and let...
by Loe
Jul 07, 2010 1:52
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

But the include line for axsuite IS working - when I comment it out, I get other errors. What can be wrong there? I think you have wrong axsuite, get axsuite2 here http://www.freebasic.net/arch/file.php?id=44 then refer to axsuite.pdf about how to install and use axsuite. Also I don't understand ho...
by Loe
Jul 06, 2010 5:04
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

The only way I could get this ActiveX working, perhaps, is if you could tell me exactly, character by character, how I can link to that USB.OCX file provided by SoftMark, and send the control bytes to it. ***OK, then you can use automation instead. *change to vtable call #Include Once "windows...
by Loe
Jul 05, 2010 23:09
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

to use COM/Activex with axsuite2, there are 3 main step: 1. creating an object. for COM/Activex non control you can use following command axcreateobject(ProgID,ObjPtr) ProgID: Program ID or Class ID (CLSID) Dim Obj Ptr as lpunknown 'change lp unknown with interface vtable ptr it similar to O...
by Loe
Jul 05, 2010 4:07
Forum: Windows
Topic: How can I use an OCX to access an USB device?
Replies: 24
Views: 4234

there is hardware subforum. your question will have better response there.
you can use COM/Activex with disphelper or my axsuite2.
search the forum for sample code, or submit VB code to discuss

Go to advanced search