[Last Call] Learn how to a build a cloud-first strategyRegister Now


FSO in eMbedded Visual Basic Tools will not work.

Posted on 2006-04-28
Medium Priority
Last Modified: 2013-11-25
I am using the Microsoft eMbedded Visual Basic editor to develop an application for a handheld using PPC2003.  I wrote a very basic application to make sure the environment on the PPC was working correctly.  The simple program works fine, but as soon as I add the following line, the program will not run on my PPC.  I need to be able to use FSO, or some method to read from a text file.

  Dim fso
  Set fso = CreateObject("Scripting.FileSystemObject")


It just gives a real generic error.  "An error was encountered while running the program"   Am I missing a .dll file or some sort of plugin?

Question by:billymcqueary
  • 4
  • 3

Expert Comment

ID: 16564099
SCRRUN.dll is the file that contains that interface
In WinXP it is located inside the C:\Windows\System32 folder by default

Author Comment

ID: 16564855
So do I just copy this file from my PC to the windows folder on my PPC?  Or is there a special file just for the PPC?  How do I make it work?


Expert Comment

ID: 16565360
I found an app faq that claims it's that simple, I have not developed on that platform myself:


Quothe the Lorax:
We recommend to place the msgbox dll in the home folder of your application (i.e. where your .exe resides), although you can also place it in the \Windows folder.
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Expert Comment

ID: 16565408

Author Comment

ID: 16588496
I put that dll file in the working direcory and the Windows directory, but still the same thing.  I'm wondering if I'm having this much trouble with working with files, the Serial Port portion will be a nightmare.  Any guesses?

Accepted Solution

ddepastino earned 1500 total points
ID: 16589367
I am at a loss as to the interoperability of PPC2003 and dll files, can you register dll's with PPC like W2K/XP?
Is there a "Run" box on PPC?  If so you should be able to do a "Regsvr32 scrrun.dll" and be fine. Or try "C:\Windows\System32\Regsvr32.exe C:\Windows\scrrun.dll".
I will harrass my boss to get me one now as I am getting interested in what PPC is like.....

The second link I posted is apparently an alternate method of file access that is built into the PPC OS that will not need additional dlls but is more complicated than FSO.  It seemed pretty informative (6 sections altogether) and covered quite a few of the most common uses for FSO.

Post me your results in regards to Regsvr either way as I am curious if PPC is really an OS with a registry and the like.

Author Comment

ID: 16633914
I went ahead and just upgraded to use Visual Studio 2005.  Thanks for your help though.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question