How do I code a button press to dial a tel. number ?
using visual basic graphics with powerpacks
Cordova fileReader not detecting app files
After constructing an UI for an app, I need to access certain files that I include with the app to perform calculations for a prediction system. I'm working with Visual Studio (VS) Community and the associated Java Script that is part of the Cordova JS tools for VS. I have tried numerous codes to implement an asynchronous fileReader for text file with several hundred lines. In everything I have tried, the fileReader apparently cannot "find" the file. I have tried this in VS using Windows Phone and Android phone emulators. And I keep getting no file found. The Android Ripple Nexus (Galaxy) html and JS codes are below. Note that there is an href="OAHULONLAT.txt" in the html code, this being the text file I want to read into memory in order to perform some calculations. The JS code is a simple example, although I've tried many more complex fileReader codes. When the Android (or windows) emulator executes, I get the console.log of "no file" (the FileNotFoundException catch). But when I click on the html "Generate you Prediction" line, the file pops right up on the emulator. Can someone help me to get the fileReader to see, open, and read the file?
<!DOCTYPE html><html><head><meta charset="utf-8" /><title>fileread</title><!-- fileread references --><link href="css/index.css" rel="stylesheet" /></head><body><p id="banner">Hello, your application is ready!</p><a id="genpre" href="OAHULONLAT.txt">Generate your prediction</a><!-- Cordova reference, this is added to your app when it's built. --><script src="cordova.js"></script><script src="scripts/platformOverrides.js"></script><script src="scripts/index.js"></script></body></html>
// For an introduction to the Blank template, see the following documentation: // http://go.microsoft.com/fwlink/?LinkID=397704 // To debug code on page load in Ripple or on Android devices/emulators: launch your app, set breakpoints, // and then run "window.location.reload()" in the JavaScript Console. (function () {"use strict"; document.addEventListener( 'deviceready', onDeviceReady.bind( this ), false ); function onDeviceReady() { // Handle the Cordova pause and resume events document.addEventListener( 'pause', onPause.bind( this ), false ); document.addEventListener( 'resume', onResume.bind( this ), false ); // TODO: Cordova has been loaded. Perform any initialization that requires Cordova here. }; function onPause() { // TODO: This application has been suspended. Save application state here. }; function onResume() { // TODO: This application has been reactivated. Restore application state here. }; var alonlat = new Array(10000); var a = 0; var b; try { var reader = new FileReader("OAHULONLAT.txt"); while ((b = reader.readAsText()) != -1) { alonlat[a] = b; a++; } } catch (FileNotFoundException) { console.log('no file a = ' + a); } } )();
VC 2013 project setting compatibility
Dear Members,
I have two independent VC2013 projects.
One project is for making a Lib file that I downloaded from internet. I already made the Lib file (Release, 64bits) from that project.
The other project made by my self in Release and 64bits, tries to link to the above library file.
Now, I could not because a lot of link to that library because the project properties are different.
How can I synchronize the project setting so that my project can link the library file?
Thank you very much for your help.
Visual studio 2013 ultimate stalls when creating project
Hello everyone,
I am using Microsoft Visual studio 2013 Ultimate for a while now, but recently I am having trouble to create a project.
When I want to create a project, I can select the template, but when create the project, the "create project"-dialog appears, it runs for a while, but then visual studio crashes and I have to close it by killing the process.
However, I can see the solution in my file explorer, with the project in the same folder, but the project is not recognized by the solution when I open the solution in Visual Studio.
Is someone having the same problem, or does someone know how to solve this problem. Now I am solving it by force-closing Visual studio when it crashes, then opening the solution and creating a new project in the solution, but that is not a good or fast way of working, and I am getting really tired of it.
Visual Studio 2013, Designer not loading, System.Runtime.Remoting.RemotingException [4536] Designer process terminated unexpectedly!
Hi,
i am becoming a bit desperate about a problem i am facing with Visual Studio 2013 Express w/ Update 4.
I wanted to start porting my Windows Phone 8 apps/games to Windows Phone 8.1/Windows 8.1 so i installed Visual Studio 2013, however, and whatever i do, the designer is not loading and show only this error message:
-
System.Runtime.Remoting.RemotingException
[4536] Designer process terminated unexpectedly!
-
I tried updating everything, including my display driver, but nothing. I tried starting a completly new project to see if something different happen, but no!
My development computer is a Surface Pro 1, used as a desktop replacement, plugged into a Toshiba Dynadock u3.0 with Dual screen using a DisplayLink.
Thanks in advance!
Not able to find certain templates in Store Apps
Hi,
I have recently started working on Windows Phone 8.1.
Installed windows 8.1 on my PC and also Visual Studio 2013 Premium Trail (it comes with windows phone 8.1 sdk).
I am facing a weird problem with my Visual Studio.
Initially when i installed i was able to see Universal Apps, Windows Apps & Windows Phone Apps under the Store Apps template.
I had also created a project for Blank App (Windows Phone Apps).
Now after few days my templates have changed and i am not able to find both Universal Apps and Windows Apps under Store Apps. Also, under Windows Phone Apps, i am not finding any template without Silverlight .
I have tried re-installing Visual Studio 2013, Updating Visual Studio 2013, installed Windows Phone 8.1 SDK and also Updating my Windows 8.1 OS.
I have also tried deleting ItemTemplateCache and ProjectTemplateCache folder and re-installed the templates using
devenv /InstallVSTemplates
devenv /Setup
Same installer on other desktops are working fine.
Every time i run the VS 2013 installer, the features list check boxes for Tools for Maintaining Store Apps for Windows 8 and Windows Phone 8.0 SDK is unchecked.
Request suggestion on the same.
Thanks in Advance
Vinay D
Visual Studio 2013 targeting older .NET framework versions
Hi,
I would like to build an application that runs the same ASP.NET version that was shipped with VS2010 (I think it's ASP.NET 4, .NET framework version 4). Will installing VS 2013 Community and selecting .NET framework 4 as target environment allow me to do so?
That is, can you use the latest VS, just changing the .NET framework version when creating projects, so that you can develop and run and applications with a previous ASP.NET version but having the latest tools, source code editing features, etc.? Is there anything I should be aware of before starting the development process? (Such as updating some properties before deploying the application, needing something on the server...)
Knowing the pros/cons will help me to chose the right VS version and avoid future problems.
(I have no experience on web development or targeting previous versions of .NET, forgive me if it's an obvious question :)).
Thanks
Visual Studio 2012 is overwriting every file on each FTP publish
I've recently converted my solutions to 2012. On a whole it's okay, however one problem/change is really bad and I hope there is a fix or workaround. I publish to servers using FTP Publish. In 2010 if the 'delete' option was not checked Publish would sensibly only update the files that had changed.
However now with 2012 it is updating every file on every publish. As you can imaging a site with a large bin & image directory that this take a long time. Not everyone has the luxury of being connected to a T1 network with MB+ upload speeds.
Please tell me there is some config setting to turn off upload every file.
VS 2013 Community Edition and VS online licensing
Hi,
I've read the Community Edition's license terms, and as my company doesn't qualify as an enterprise (<250PCs, and definitely < $1MM) and there'll be less than 5 people working on it, we want to use VS 2013 community edition instead of the Web express edition.
We'll be selling the application to one of our customers, but I understand with our small team this is allowed. I think we can even complete this with the 5 basic users of visual studio online and have an exciting development pack. Is that right?
Thanks in advance
What's the best Visual Studio 2010 (VB) template for my project?
Hi,
I'm about to embark on a project which will end with a website that gathers users info (name, email, description, youtube address etc), then will display that info to other users via filtering.
My initial instinct is to create an empty website, then create a standard membership site with a database (See here) then to add a few tables that will allow me to gather the extra data.
Should I:
- Use the ASP.NET Empty Website template as per the link
- Use the ASP.NET Website template which has all the pages already set up (not sure if the database has already been set up with this)
- Use the ASP.NET Dynamic Data Entities Website template
Or something else completely?
(ps, When I click on online templates I get 'No Items Found'
Thanks
Michael
XAML designer, exception 0x8027025B
Sudendly I have an unhadled exception with the XAML designer in an universal app for Windows 8.1 and WP 8.1 in Visual Studio 2013 .
System.Runtime.InteropServices.COMException
La aplicación no se inició. (Excepción de HRESULT: 0x8027025B)
en Microsoft.Expression.HostUtility.AppPackage.AppPackageNativeMethods.IApplicationActivationManager.ActivateApplication(String appUserModelId, String activationContext, ActivateOptions options, Int32& processId)
en Microsoft.Expression.HostUtility.AppPackage.WrtUtility.ActivateApplication(String appUserModelId, String activationContext, Object site)
en Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.ActivateApplicationInternal(String appUserModelId, String activationContext, Object site)
en Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateDesignerProcess(String applicationPath, String clientPort, Uri hostUri, IDictionary environmentVariables, Int32& processId, Object& processData)
en Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.ProcessIsolationDomain..ctor(ProcessDomainFactory factory, IIsolationBoundary boundary, AppDomainSetup appDomainInfo, FrameworkName targetFramework, String identifier,
String baseDirectory)
en Microsoft.Expression.DesignHost.Isolation.Primitives.ProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
en Microsoft.Expression.HostUtility.Platform.AppContainerProcessDomainFactory.CreateIsolationDomain(IIsolationBoundary boundary)
en Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.Initialize()
en Microsoft.Expression.DesignHost.Isolation.Primitives.IsolationBoundary.CreateInstance[T](Type type)
en Microsoft.Expression.DesignHost.Isolation.IsolatedObjectFactory.Initialize()
en Microsoft.VisualStudio.ExpressionHost.Services.VSIsolationService.CreateObjectFactory(IIsolationTarget isolationTarget, IObjectCatalog catalog)
en Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
en Microsoft.Expression.DesignHost.Isolation.IsolationService.CreateLease(IIsolationTarget isolationTarget)
en Microsoft.Expression.DesignHost.IsolatedDesignerService.CreateLease(IIsolationTarget isolationTarget, CancellationToken cancelToken, DesignerServiceEntry& entry)
en Microsoft.Expression.DesignHost.IsolatedDesignerService.IsolatedDesignerView.CreateDesignerViewInfo(CancellationToken cancelToken)
en Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.InvokeWithCulture[T](CultureInfo culture, Func`2 func, CancellationToken cancelToken)
en Microsoft.Expression.DesignHost.Isolation.IsolatedTaskScheduler.<>c__DisplayClassa`1.<StartTask>b__6()
en System.Threading.Tasks.Task`1.InnerInvoke()
en System.Threading.Tasks.Task.Execute()
I have restarted, turned off, updated the computer, waited some days and nothing.
I have removed temp files
I have checked privileges of Program Files and Program FIles (x86)
I have removed the "shadow cache"
I have created a new blank project and same exception in the xaml designer
I have executed devenv /installvstemplates
I have used repair installation of Visual Studio 2013
I have installed Visual Studio 2015 Technical Preview and same exception
Any idea?
Thank you.
VB code to create form/objects showing in code window
For some reason, when one of my students double-clicks on an object and goes into the code window, the student sees the code that creates the form and objects. Most students see only the code they create (the Public Class Form1, End Class, and the click event procedure header and End Sub). I've not found a way to "hide" the code that VS creates when the form and objects are created. Does anyone know how to "hide" that code?
Thank you.
failed error 0x80070091
I am running Visual Studio 2012
I am getting a return code of 0x80070091. This happens when I do a Build 'Deploy Solution'.
Visual Studio 2012 worked, until I did a Visual Studio download Visual Studio 2013.
Speech To Text
Hi!
I am attempting to create a program that converts speech to text when you click a picture, but it always crashes at the last line. Can somebody help me with this? Here's the code. Thanks in advance!
Private Sub PictureBox14_Click(sender As Object, e As EventArgs) Handles PictureBox14.Click
Dim engine As New Speech.Recognition.SpeechRecognitionEngine
Dim dictionGrammar As New Speech.Recognition.DictationGrammar
Dim recognitionResult As Speech.Recognition.RecognitionResult
Dim timeSpan As New TimeSpan(0, 0, 10)
engine.SetInputToDefaultAudioDevice()
engine.LoadGrammar(dictionGrammar)
recognitionResult = engine.Recognize(timeSpan)
TextBox1.Text = recognitionResult.ToString
End Sub
Toolbox empty in VS 2012
The toolbox is empty.
If I click Show All the items appear, but are greyed out and cannot be used.
Reset toolbox changes nothing.
Choose Items shows the components that should be in the toolbox all checked. Have reset from the Choose Toolbox Items window without any change as well.
I have tried using devenv /Safemode with no change.
I read that I could try removing the .tdb files, but I cannot find them in a search and the path used in the examples I cannot find in my windows explorer.
I am using Windows 7 64bit
Any help anyone can give me would be appreciated
References in Soln Explorer.. .
Hello,
Can somebody please explain "Add Reference in Solution Explorer " concepts ?? IF I browse and add a .dll will it be bundled with the .exe automatically or need to provide the referred dll-file separately ??
Thanks in advance ..
Adding external dll to project
Hi,
I'm trying to add reference to an external dll into my VB project ("Project>Add Reference" in Visual Studio 2013 Community) and get the "...please make sure that the file is accessible and that it is a valid assembly or com component".
I already successfully added several other dll from the same manufacturer into my project but can't figure out why some of them give me that message and fail to be added.
I tried using Tlbimp to modify the DLL but the modified DLL, created by Tlbimp, still refuses to be added
Is there a way around this? Another way to import that DLL?
Thanks.
Read text file and calculate average
Hi All,
I have a requirement where I am suppose to read around 100 text files.Each file has around 10000000 records. I need to read these files and calculate average of each text file. Right now, it takes around 2 minute to do so.This is performance specific application so I need to do this in a second or less.Any help appreciated.
I am using C# for this. Total data from all the files would be around 6GB.