Search found 323 matches

by Loe
Jun 10, 2011 7:16
Forum: Windows
Topic: As Total Commander quickly opens a folder?
Replies: 10
Views: 1935

To avoid GUI choked when adding large number item in listview in an event (eg buttonclick). Im using Multithread. Place Dir listing and listview add item code in separate thread function IDD_DLG1_btFind_Clicked(Byval hWin as hwnd,Byval hCtrl as lparam)as long If busy Then Return 0 pthrd=Thre...
by Loe
Feb 19, 2011 18:14
Forum: Libraries
Topic: Excel Disphelper help
Replies: 253
Views: 54799

if this is our windows message handling, usually we put our cleanup procedure inside WM_CLOSE, but I have memory can not read error with this. this problem solved when I move my cleanup procedure inside WM_DESTROY. I also found excel task still reside if we didnt call Couninitialize API. in disphelp...
by Loe
Feb 18, 2011 9:35
Forum: Libraries
Topic: Excel Disphelper help
Replies: 253
Views: 54799

Hi phisguy,
I just found found how to close excel.
Put xlapp.quit method in WM_DESTROY event then call Couninitialize API
by Loe
Feb 17, 2011 1:57
Forum: Libraries
Topic: Excel Disphelper help
Replies: 253
Views: 54799

yeah, excel is like a labyrinth for programming other than VB:)
do you know there is FOR..EACH macro in disphelper?
but i still dont figure it out how to use it.
by Loe
Feb 16, 2011 16:34
Forum: Libraries
Topic: Excel Disphelper help
Replies: 253
Views: 54799

not tested '-should created and shared first 'dim shared xlapp as lpdispatch 'dim shared pactivecell as lpdispatch Sub Macro1() ' ' Macro1 Macro ' ' 'Sheets("Sheet2").Select dhCallMethod(xlapp,".sheets.item(%s).select","sheet2") dhgetvalu...
by Loe
Jan 27, 2011 3:35
Forum: Tips and Tricks
Topic: Speak Text from the Clipboard!! (Windows Only)
Replies: 48
Views: 19771

dhCreateObject("speech.voicetext", NULL, @spvoice) used so far is for creating sapi4 vtxtauto object: '================================================================================ 'CLSID - ? '================================================================================ Const CLSID_VTxtAuto=&q...
by Loe
Jan 22, 2011 8:26
Forum: Beginners
Topic: How to create an icon from the bitmap?
Replies: 4
Views: 1005

you can 'cheat' by renaming *.bmp file to *.ico. but make sure bitmap resolution and color depth should follow icon standard. eg. 32x32pixels 256color
by Loe
Jan 21, 2011 1:31
Forum: General
Topic: changing sapi voices
Replies: 19
Views: 9743

@phisguy here invoke kind list of COM/ActiveX 'CONST DISPATCH_METHOD = 1 ' The member is called using a normal function invocation syntax. 'CONST DISPATCH_PROPERTYGET = 2 ' The function is invoked using a normal property-access syntax. 'CONST DISPATCH_PROPERTYPUT = 4 ' The function is invoked using ...
by Loe
Jan 20, 2011 8:30
Forum: General
Topic: changing sapi voices
Replies: 19
Views: 9743

Gotcha!!!!
Didnt notice thereis putref method in disphelper.
Change dhput value to dhputref, it work now
by Loe
Jan 20, 2011 4:07
Forum: General
Topic: changing sapi voices
Replies: 19
Views: 9743

it is weird, voice method not recognized by disphelper.
Voice method exist in ISpeechVoice interface.
In VB the command could be spvoice.voice=token,
anyway it work in axsupport dispatch automation mode.
by Loe
Jan 20, 2011 3:01
Forum: General
Topic: changing sapi voices
Replies: 19
Views: 9743

I'll try to change short code to disphelper. Here we go #define UNICODE #include once "windows.bi" #include once "disphelper/disphelper.bi" Dim As zString ptr text Dim As Integer count,i 'define required object DISPATCH_OBJ(spvoice) DISPATCH_OBJ(tokens) DISPATCH_O...
by Loe
Jan 19, 2011 23:08
Forum: General
Topic: changing sapi voices
Replies: 19
Views: 9743

textaloud is an application that use sapi4 or 5, if installed voice can seen via sapi control panel, so the code will work.
about the link, you only need compiled libvariant.a. i'll send you, if you want it
by Loe
Jan 19, 2011 14:21
Forum: General
Topic: changing sapi voices
Replies: 19
Views: 9743

Hi Teslacoil, here http://freebasic.net/forum/viewtopic.php?t=16848&highlight=recognizer FB code of SAPI5 for speech recognizer, change voice and text to speech for the short code only for voice change and text to speech #include once "windows.bi" #Include Once "axobj2.bi" Di...
by Loe
Jan 19, 2011 1:56
Forum: Libraries
Topic: direct3d with fb
Replies: 1
Views: 970

if direct3d you mean is part of directx, there is tutorial in your freebasic installation under FreeBSIC/examples/windows/COM/D3DX/meshes
by Loe
Dec 20, 2010 15:41
Forum: Libraries
Topic: Can I use database(*.mdb) in windows?
Replies: 6
Views: 3574

hi buvh, since vtcall dropped in further release of axsupport, i'll use this reply as request to admin to remove some of axsupport lib in freebasic/arch before axsuite (axsupport package & axsupport-bug fixed) i'll give an example use mdb without ado data control using dispatch automation call. ...

Go to advanced search