Search:
Type: Posts; User: kriswork
Search:
Search took 0.05 seconds.
-
I've got a change Event which works - Thanks very much
-
I struggle with what category to put my current work into as it is definitely VBScript (No defined types - Variants Rule), but it is paired up with MS Forms v2 - All this is within the OPUS...
-
Hi,
My Environment is Windows 7, 3rd party VBScript Engine and MS Forms.
I'm doing "isnumeric" checks on a load of values in textboxes and listviews before doing a "CInt" on each of them.
...
-
Finally worked out a way round not being able to use the object returned by VB.NET - As all arrays have to be passed "ByRef" I have passed in an extra array to the function to be used to output all...
-
Getting further - I can now get the array into VB.Net and access the elements. I can pass it back to VBScript without an error, but I don't know how to convert the object that is returned back to an...
-
I tried that and VS 2010 changes variant to object and I don't get an error, but how would I change an object back to an array - could I cast it?
Thanks
Kristian
-
Hi,
Getting this error below:
Error:0 'Invalid procedure call or argument: 'objFit.Simple''
VBScript Code:
dim objFit , alInputTemperatures
-
I don't know how to move the thread to VBScript- there's no option under thread tools - If someone could me it for me that would be great.
The vendor's support system were unable to provide any more...
-
So far I'm guessing that the form designer uses the frame control (It has a ShowGridDots property and loads more). I'm just now trying to get a handle for the parent of the form to see what I've got...
-
OMG - I got it to work (Having pasted your original code in again):
138549
Thanks so much for your help.
-
Trying to get it as simple as possible so used code below in VBA from Excel:
Private Sub CommandButton1_Click()
Dim ti As oleexp3.ITypeInfo
Dim disp As oleexp3.IDispatch
disp =...
-
I also tried defining 'ti' as just an object which allowed me to compile the dll, but get 'Object variable or With block variable not set' when trying to use the PrintTypeInfo sub in VBScript:
...
-
Got my VB6 IDE up and running, but getting same problem with a compile error: Method or data member not found
it highlights 'ti'. The line if code is:
ti = disp.GetTypeInfo(0, 0)
I got a...
-
Hi Olaf,
You can even go a step further and design the forms in something more modern (I'm using VS2010 and VB.NET) embedded in the COM visible dll, add a bit of code in the dll to show the form:...
-
Ah - I'll start up my old XP VM that has a really old install of Visual Studio - I'll try that tomorrow.
Thanks
-
Trying to create the dll as a class project in VS2010:
Option Explicit On
Imports System.Runtime.InteropServices.ComTypes
Public Class Class1
-
@DEXWERX - I'll try the code you posted - Thanks
@DataMiser - We used to use OS/2 a lot where I used to work - main problem I remember was it could only address 16MB of RAM. With Opus you can...
-
Just tried oleview.exe (https://msdn.microsoft.com/en-us/library/d0kh9f4c(v=vs.71).aspx) and could see the name of my classes, but nothing more and any of the dlls supplied with Opus I get an error...
-
Opus allows you to write VBScript programs with a limited user interface, but most importantly at the same time allow you to control their Infrared scanning hardware and all the data analysis options...
-
Thanks for the speedy reply.
I do have access to an old copy of Visual Studio so I may be able to use that to browse the object model.
I do have all the Opus documentation (and I've checked...
-
Hi,
I'm currently working on a project to create a program that runs inside Opus (by Bruker).
Opus has a basic form designer (circa VB6 era by the look of it) with any code you write done in VB6:...
-
Hi tg,
The only error is the "Could not load file or assembly error":
134579
The library has worked quite happily for 2 years with v4.0 and even has "Net40" in its name. It's only when I...
-
Hi,
Getting Could not load file or assembly 'Extreme.Numerics.Net40.......
...but only with v4.0 of the .NET framework and no probing privatepath specified in the app.config file.
I'm trying...
-
Yes it is an old COM library written in Fortran.
Thanks for your help anyway.
-
Thanks for the sample code, but VS is giving me an error on TryCreate:
Error 38 Type argument 'cdsstrLib.cdsstr' must have a public parameterless instance constructor to satisfy the 'New'...
-
Hi,
I need to register several dlls on the fly in my code. I've got this to work fine, but am trying to package a chunk of the code into a function.
I've got some of it in a function, but can't...
-
Hi,
Thanks for the replies - I was hoping I was just doing it wrong. Interestingly, If I load an Excel 2010 spreadsheet which ended up with the wrong colours into Excel 2007 then the colours are...
-
Hi,
Part of my VB.NET app reads the colour of a VB.Net chart and applies that same colour to a matching Excel chart:
arrChart_Colour(byteChart_Number) = embchartHTCD.ChartAreas(0).BackColor...
-
I think the libraries are either vb6 or Fortran and my code crashes if they are not registered (but as you said I noticed that some of the newer dlls don't need registering). Under references, they...
-
Hi,
I'm trying to write a function to test if a dll I'm about to use is registered or not,. I've got lots of 3rd party dlls which I use which may not be registered, so I want to call a function,...
-
I've spent the best part of a week trying to get this sorted and still not much further on. What I have noted is the effect of what paths are listed in the "Reference Paths" dialog. When adding a new...
-
Thanks for the info - I'll have a read of the link. I don't have 600 references - only about a dozen, but some of those need other files which need to be in the right place. I did have a look at the...
-
I currently have 600 files and putting them all in 1 directory is a bit messy... but I may have to.
-
Hi,
I'm sure I can't be the first person to have this problem, but how can I add a reference to a library with a relative path?
Currently in VS 2010 I've added several references to dlls that are...
-
OMG - The chart does hold a copy of the table!!!
Just commented out my function to load the table from my dataset and now directcast the table from the chart's datasource:
...
-
I'm sure those 2 buttons were not there yesterday!
Just found the task list with some tasks that I added possibly years ago!
Normally I just leave a typo in the code to remind me where I left...
-
Thanks - I really ought to spend some time and read the manual - I've been using VS2010 for a couple of years and only noticed the split windows draggy thing on the right a month or so ago!
As...
-
I assume it's not just me where any bookmark will gradually move from where you set it.
Is there any way to jump back to previous locations in your code, i.e. say the last 5 locations of code I was...
-
The dataset solution is OK and means I don't need lots of publicly declared tables, it just means I need to be particularly careful naming my tables so I can then retrieve the right one later,...
-
All my code above runs say when the form loads and you are correct that dtSelected_Data_File_and_PMT won't change, but initially I only want to display half the columns as data series. Possibly later...
|
Click Here to Expand Forum to Full Width
|