Hello Guest it is April 20, 2024, 01:38:10 AM

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 - Davek0974

501
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 07, 2018, 07:26:08 AM »
just been googling and it seems the DLL needed is comdlg32.dll not commdlg.dll

I tried this one and got a different message saying the dll was loaded but no registry server entry point was found??


502
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 07, 2018, 07:12:45 AM »
Sadly no, just tried it using the code above and no change, the code above executed ok. :(

503
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 07, 2018, 06:01:34 AM »
Just my luck - its not playing ball at all. :(

Commdlg.dll was already there, tried a quick regsvr32 commdlg.dll  and it says it not an .exe and has no helper program?????

Not too sure what to try next, can't risk upsetting the XP install on the mill but want to use the new code:(

Its XP SP3 on the mill, same as my laptop.

Any other ideas???

504
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 03:57:17 PM »
Thanks

i'll just copy one from my XP laptop.


:)

505
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 03:12:58 PM »
Small glitch on my end - it works fine on my test laptop in Win7 and XP but on the mill (XP) it fails as soon as it requests the MSCOMDLG library.

My guess is that as the mill pc is a cut-down or clean install, there is a file not installed or registered??

Any idea what the .dll i need would be called?

My guess is "Commdlg.dll"


506
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 06:15:44 AM »
I hope that was sarcasm there Thomas  :)

You have nothing to apologise for, it is a damn fine bit of code and something that up until a couple of days ago, i would not have thought possible to do.

I think it will have other uses too in the future.,

Thanks again for your sterling efforts :)

507
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 04:56:14 AM »
:) sounds good

508
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 04:39:31 AM »
Chuckle. I have forgotten more languages (assembly and high level) than I can remember. In my life I have written major database systems, created database cores, written robots systems with image analysis, debugged compilers and OSs, and generally had a fun time.
Forgive my humour.
Cheers
Roger


I never managed to stray outside office based stuff, invoicing, stock control, SQL databases etc it's been good fun but getting tiresome now when i get called to edit a program i wrote 10 years ago ;)

509
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 04:37:52 AM »
100%  :D ;D :D

Give that man an award, i'd buy you a pint TPS but I don't know where you are :)

Works perfectly now, I think cut-n-paste failed before so it was the same code as previous but new one works very slick.


My screen set has a label that shows the file name loaded so i duplicated a bit of code, the end now looks like....

Code: [Select]

'find the last "\" in filename
For i = 1 To Len(destfile)
If Mid(destfile,i,1) = "\" Then
last = i
End If
Next i

'extract filename
outfilename = Mid(destfile,last+1,Len(destfile)-last)

SetUserLabel (2,outfilename)

Exit Sub
errhandler:
message "user cancel"

Many thanks for this mammoth effort.

510
General Mach Discussion / Re: G49 on Mach3 Mill
« on: February 06, 2018, 04:24:43 AM »
Purely as an aside, and said with great humour:
If it can take this many cycles to get a FileLoad screen right, what hope is there for multi-million dollar software projects?
To answer my own Q - about half of them never complete, while most of the rest only deliver a poor fraction of the target.

Keep going guys!

cheers
Roger


I've been messing with VB6 apps for many years at work and I can say that this is nothing compared to debugging a major build :)

I think this script might be useful to others down the line and I'm very grateful for TPS putting in so much time on it.