15,886,703 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by dg6yhw11 (Top 18 by date)
dg6yhw11
19-Jul-13 14:46pm
View
That's perfect. I couldn't find it in the Help.
Thank you.
dg6yhw11
16-Jul-13 12:30pm
View
I'm sure it was caused by a patch but nobody knows which one and "policy" insists that all patches be applied.
dg6yhw11
11-Jul-13 16:12pm
View
You're comment about the VB runtime is valid to a degree. Here's what Microsoft says:
"Microsoft will support your existing Visual Basic 6 components and applications through the lifetime of Windows 7 client and 2008 R2 server."
I didn't bother to look up the life of Win 7 (Of course, large companies will have to start adopting it sometime...:))
As for 2, I have a business need to send data using XML and SOAP. So I have to write something in VS 2012 to do that. Part of the fun involves trying to create VS Structure's that match the UDTs used in the VB 6 data files.. int is now int32, long is int, currency doesn't exist. What a PITA.
Needless to say the 245,780 or so lines of the main program are not going to be converted any time soon.
dg6yhw11
11-Jul-13 15:46pm
View
Sorry but I totally disagree.
It doesn't matter if that code was written in VB6, C, C#, F#, FORTRAN, COBOL or Swahili; If that code was working, not causing any problems and had no business need to be touched, then you just wasted your time and possibly introduced a bug that did not need to be there.
I am the first to admit that VS 2012 is way cooler than VB6. You can do lots of neat stuff with it. C# is swell. So is HTML5, XAML and all the rest. We can create really cool interfaces that users might actually be able to understand. We can connect to the Web very easily.
But it sucks for business. File I/O, Printing, and many other line-of-business requirements are just plain awful.
VB6 may work really well for the apps that your co-workers are responsible for, just as C# works really well for you. Perhaps you can cut them some slack.
dg6yhw11
11-Jul-13 14:42pm
View
Thanks Dave.
As a professional with thousands of users who depend on our code, we cannot embrace every new technology for its own sake.
I don't know where you live but here we have an expression that states "if something is working, don't fix it".
Array manipulation has been a core of programming since programming began. It is an elegant and easy way to work with numbers. It is also very cpu-cycle-efficient. You can do a lot with very little code.
It seems to me that Microsoft has forgotten the importance of business programming in their panicked desire to capture the Twitter-centric generation.
This is one reason why VB 6 is still the preferred language of business.
dg6yhw11
11-Jul-13 14:24pm
View
Not after the Edit.
Thanks
dg6yhw11
11-Jul-13 11:25am
View
Thanks. What a wonderful list of useful properties and methods.
But how does one get around this?
"The Array class is the base class for language implementations that support arrays. However, only the system and compilers can derive explicitly from the Array class. Users should employ the array constructs provided by the language"
dg6yhw11
10-Jul-13 19:11pm
View
Thanks for answering. Actually the app was born in TurboBasic in the early '90s and was ported to VB6 when DOS died. The old Option Base let you select the default lower bound but you could always use whatever you wanted.
I looked into using constants and enums but they're too clunky and rigid. The beautiful thing about using years is the program is self-updating - at least in those areas where I can just use the System Year.
The other issue is I always try to use LBound() and UBound() in loops to avoid those Error 9 situations.
It almost seems like MS doesn't want us to use arrays any more but I can't figure out just what they intend us to use instead. A lot of engineering and accounting math works really well using arrays.
dg6yhw11
24-Apr-13 18:40pm
View
The matter is closed.
I really do appreciate all you've done, seriously.
Murray
dg6yhw11
24-Apr-13 18:07pm
View
Sergey - that was an attempt at humor.
In American English the terms DOS Box and Command prompt are identical. You use a command prompt to open a "DOS box". There is no difference. There is a "box" (= window) that is running MS-DOS, therefore it becomes a "DOS box".
There is no "technical" term "DOS Box" in Microsoft Literature that I know of.
Google it - you'll see many old references to the term: example from some university "Open a DOS Box (Command prompt)...".
You can tell I'll never be a diplomat :)
dg6yhw11
24-Apr-13 17:18pm
View
OK. You win.
I'll stop calling it a DOS Box and refer to it as a "little black and white window that runs DOS programs and shows DOS commands" - or is it no longer correct to call it DOS, perhaps we should call it "command line character strings display area that can also run DOS programs"?
Sheesh!
dg6yhw11
24-Apr-13 17:03pm
View
Thanks for all your comments, Sergey.
The issue is not if PKZIP25 can properly unzip the file. It does. The zip file contains many more files than the one .exe and they all extract just fine. I have no reason to believe that PKZIP will consider program bits to be any different from data bits.
I said your solution does not address the issue because the issue is that the file is not written to the disk when it is unzipped, AND this is new! The PKZIP worked perfectly, extracted all files, in early March. Now for some mysterious reason it no longer works for .exe files.
It was my hope that someone would know if, perhaps, M$ had added some new layer of security or whatever that only affected programmatic writing of executable files to the disk... or something similar.
We use VB6 because our software works. There is no advantage to our users to try to go from a stable, compiled environment to something bloated, interpreted and god-awfully slow, that only offers features that benefit our programmers doctors (by requiring much hand surgury due to all the typing!!!) To all you soon to be commenters yes - I know about intellisense.
We sell heads-down keyboard entry software where speed and accuracy is of utmost importance. There is no bling wanted or needed.
It would be much greater torture to rewrite all that code :)
Murray
dg6yhw11
24-Apr-13 14:14pm
View
Kind of stong, Sergey.
I'm guessing that you might not be running US versions of Windows because the DOS box is very much alive in WIN 7 and WIN 8.
Perhaps I should call it by the term cmd prompt?
Doesn't matter, it is clear that you and other don't really understand the problem is NOT the decompression tool itself because it hase worked perfectly on the same machines with same OS before.
No the issue is that something is allowing the decompression utility to write any file EXCEPT an EXE and that this behaviour is new.
dg6yhw11
24-Apr-13 13:04pm
View
I didn't know that there was a conversion tool still around, other than the tools that would cost me $20,000 to use of course.
I had totally forgotten about interop. Thanks for that suggestion.
Murray
dg6yhw11
24-Apr-13 13:01pm
View
Thanks for the Solution Sergey but it doesn't address the root issue.
Even though PKZIP25 is an ancient relic, it still decompresses the file.
The newer versions will still decompress the file.
The issue is that the OS or something is stopping that from being written to the disk.
Murray
dg6yhw11
24-Apr-13 12:50pm
View
The files are off the root on a stand-alone computer, or the root of a mapped network folder.
We call the VB6 Shell function. The command prompt always has admin priviliges when called by hand but I don't know the privilige level when its called programmatically.
Thanks for helping.
Murray
dg6yhw11
24-Apr-13 12:48pm
View
Thanks. I'll look into that.
We have been studiously avoiding .NET - our software has 245,000+ lines of code and moving it would be impossibly expensive.
dg6yhw11
24-Apr-13 12:47pm
View
Thanks for answering.
We write in VB 6.
The DOS box does still exist, albeit in very restricted size.
To execute the PKZIP25 we call the Shell function and it opens the DOS box.
Show More