Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Support

Pages: 1 ... 12 13 [14] 15 16 ... 59
196
COM / Re: ActiveX with VB.NET
« on: June 22, 2014, 06:15:02 PM »
That's great news Dave. I'm assuming this holds true for visual COM controls. (ribbon control, ...)

The Date Picker control might be a good first one to try. You already nailed the VB ActiveX version.



I attached the project and the compiled .exe for this.

197
COM / ActiveX with VB.NET
« on: June 22, 2014, 12:57:23 AM »
I was curious if Visual BASIC .NET could create controls Dave could use with his Script BASIC COM extension module. From my initial research, it looks like it can.

Create ActiveX in .NET Step by Step

How to generate an OCX activex control using VB.NET


198
General Discussions / Re: curl Segmentation fault
« on: June 20, 2014, 08:23:02 AM »
Hi Ron,

Have you tried using the cURL console utility to upload a file?

Can you post an example of the SB cURL code you're using to upload a file?

FYI: Check out the curl::option CurlHandle,"INFILE","file_name" as SB gets the file size for you using this option.

I will give the Ubuntu 64 Script BASIC cURL ext. module version a try and see if I can reproduce the issue.

Thanks for the feedback!

John

199
COM / Re: Couple Api ideas for embedding
« on: June 19, 2014, 09:54:06 PM »
Works fine with Office 2010 Pro on XP.



200
COM / Re: Couple Api ideas for embedding
« on: June 19, 2014, 07:04:33 PM »
Thanks Dave!

I'm installing Office 2010 Pro in my XP VirtualBox so I can try your new COM features with the SB ext. module.

Being able to browse COM objects will be nice. Something to add to the SB debugger your working on possibly.


201
COM / Re: Couple Api ideas for embedding
« on: June 19, 2014, 05:52:42 PM »
That is very cool Dave. It looks like you're calling another object (Workbooks) with CallByName(), is that correct?

Can you post a compiled COM.dll as I'm still getting my Visual Studio 8 setup for this project?

This Script BASIC VB Classic project keeps getting more interesting by the minute.  8)

202
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 06:06:20 PM »
I have been chipping away at getting theming working in XP first and then Win7 afterward. I found this VB6 Manifest Creator code and was able to at least compile it and the form was themed. That lets me know that it's possible and even by me.  8)



203
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 04:30:07 PM »
Very Cool!

I had to register the OCX this time. (no dll)



Code: [Select]
import com.inc

function Button1_Click(arg)
print "Back in script basic Button1_Click arg=", arg, "\n"
Button1_Click = arg + 1
end function

obj = CreateObject("VB5.CCESample")

if obj = 0 then
    print "CreateObject failed!\n"
else
    print "obj = ", obj, "\n"
       
    oCollection = CallByName(obj, "CallBackHandlers", VbGet)
    print "oCollection = ", oCollection, "\n"
   
    CallByName(oCollection, "Add", VbMethod, ADDRESS(Button1_Click()), "frmCallBack.cmdOp1_Click" )
   
    retVal = CallByName(obj, "LaunchCallBackForm", vbMethod, 21)
    print "LaunchCallBackForm returned ", retVal, "\n"
   
    ReleaseObject(obj)
    print "test complete!\n"
end if

C:\SB22\sbcom\sbvb4>scriba VB5_Example.sb
obj = 1400632
oCollection = 1406752
Back in script basic Button1_Click arg=21
LaunchCallBackForm returned 22
test complete!

C:\SB22\sbcom\sbvb4>

204
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 04:00:17 PM »
So are you saying VB5CCE wasn't a waste of time and can be used in the SB VB COM project?


205
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 03:48:30 PM »
I wasn't sure what value the VB5CCE version would offer so thanks for clearing that up. Is any of the runtime components of VB5CCE usable for anything? From what I gather I can create a standard VB form, save the it as a project file, load it in standard VB and create a standalone .exe with it. If anything maybe it can be used as an IDE / Debugger of sorts.


206
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 02:39:39 PM »
I was able to find a VB5CCE (Visual BASIC 5 Controls Creation Edition) with help files. You can download it HERE. The manifest file I posted above will work with the VB5CCE version if you rename it to vb5cce.exe.manifest. The conrol edition will let you create standard Windows forms but are saved as a project file and can't be compiled to a .exe.


207
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 01:48:51 PM »
Poking around there seems to a focused effort on keeping VB Classic alive. I think it's great Dave is showing what the intent of VB was but never embraced. (building COM objects that can be used by other languages)

I'm still trying to get VB6 theming working on Windows 7 and will post something when I get it working. I think creating a current VB6 distributables zip would help this project out a lot. I need to revisit the VB6 controls edition again now that it seems to have purpose to me.

 

208
COM / Re: Couple Api ideas for embedding
« on: June 18, 2014, 12:13:15 AM »
Here is what a VB6 application looks like themed on Windows 7.

CommonControls (Replacement of the MS common controls)



I will try to get VB6 theming working on Windows 7 64 bit tomorrow.

209
COM / Re: Couple Api ideas for embedding
« on: June 17, 2014, 10:59:27 PM »
I was able to get VB themed with a manifest file on XP. It should work for Windows 7 but haven't tried it yet. Using the same manifest with scriba didn't display the form.  :'(

Here is the VB6.EXE.manifest you will need to get VB6 theme support on XP.

Code: [Select]
<?xml version="1.0" encoding="UTF-8"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
  <assemblyIdentity
    version="6.00.9782.0"
    processorArchitecture="X86"
    name="Visual Basic"
    type="win32"
    />
  <description>Microsoft Corporation VB6</description>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity
                type="win32"
                name="Microsoft.Windows.Common-Controls"
                version="6.0.0.0"
                processorArchitecture="X86"
                publicKeyToken="6595b64144ccf1df"
                language="*"
             />
        </dependentAssembly>
    </dependency>
    <dependency>
        <dependentAssembly>
            <assemblyIdentity
                type="win32"
                name="Microsoft.Windows.GdiPlus"
                version="1.0.0.0"
                processorArchitecture="X86"
                publicKeyToken="6595b64144ccf1df"
                language="*"
             />
        </dependentAssembly>
    </dependency>
<!-- Identify the application as DPI-aware: Vista and above -->
  <asmv3:application xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
      <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
        <dpiAware>true</dpiAware>
      </asmv3:windowsSettings>
  </asmv3:application>
</assembly>

210
COM / Re: Couple Api ideas for embedding
« on: June 17, 2014, 07:53:47 PM »
I was able to get your Script BASIC VB COM callback example running under Windows 7 64 bit.  I also installed Visual Studio 6 for my VB6 install on Windows 7.

Note: regsrv32 must be run as an admin to work.



Pages: 1 ... 12 13 [14] 15 16 ... 59