Calling .exe File From VS2008?

Aug 8, 2011

I am programming in both Matlab (Matlab2011a) and Visual Basic (VS2008).I've created a .exe file from my matlab code. It works well when I click on it with my mouse. But I need to run it within Visual Basic. I know it's possible to call .exe files with Shell() or Process.Start(), and it works well for files such as firefox.exe or notepad.exe.

However, it doesn't work when I call my own .exe file ... It's weird because when I look to the Task Manager while trying to call it (within VB), I can see the process starting and ending, but its output doesn't appear.

View 4 Replies


ADVERTISEMENT

Use .hlp File In VS2008?

May 31, 2010

we are working on migration project VB6.0 to VS2008 ( Vb.NET 9.0) .In Vb6 we have .hlp file it will open appropriate help page/content when I click F1 from any of the forms. The same need to achevie in .NET 2008 . I came to know that .NET 2008 help provider will not support .hlp files. below code used in vb6

App.HelpFile -
Me.HelpContextID

View 2 Replies

Get Records(Data) From Txt File In VS2008

Dec 25, 2009

I m newbie for VS2008 i want to save my project data to one txt file and load from txt file how can i do this ??

[Code]...

View 1 Replies

Opening Excel File In VS2008?

Jul 23, 2009

how to open an excel 2003 file in VS2008,what i want is to open an excel file there is only one sheet in it and 4 columns of data to read row by row and change certain values. that's it.

View 9 Replies

Updating An Project File From VS2008 To VS2010?

Oct 22, 2010

If I create a new project on VS2010, and add the WMP.dll reference place the WMP control on a blank VB form, build and debug the application it will run just fine.But if I upgrade a project that already had the WMP.dll reference in it, I cannot debug the application because I gives me this error

View 4 Replies

Upgrading From VS2008 To VS2010 Breaks XSD File?

Dec 26, 2010

I've upgraded to VS2010 version 10.0.30319.1 RTMRel; when upgrading my VS2008 project, all is well and appears correct until I run the code. Then I get the following error when I run a report that uses an XSD file for the schema"Inconvertible type mismatch between SourceColumn 'TemplateName' of Byte[] and the DataColumn 'TemplateName' of String.".When I look in the original XSD file and in the new XSD file, one of my fields has been converted from a string to a byte and I have no idea why.

View 2 Replies

VS2008 Move To W7 - Compiler Producing Different Size Install File?

Nov 29, 2009

I'm currently moving over to W7 from Vista I've moved my source over (amazingly hassle free), but the Build option on my installer in my solution produces a different size (200K+) setup.exe file.

Initial question are:

1) Is there a log file I can compare betwen the two builds (V7 -v- Vista)

2) I thought that any compiler settings would 'follow the solution' Is this so?

View 3 Replies

[VS2008] Text File Data To Insert Into A Database For Report

Dec 11, 2010

I have a text file data to insert into a database for report

ITEM01,Toy
ITEM02,Card

Let me briefly list down the steps i took to achieve my result.

1) Insert data into Database using text file
2) Display the records from the NEW Database(Item2) using DataGridView
3) Using datagridview, i use to checkboxes to determine the selectedRow
4) Once the selectedRow are selected. I press on Delete Button

Delete Button - Update the Item2 Table field 'Deleted' to 1 - Delete the ItemID by using datagridview selectedrow cell value Which means in 1 loop, i process two database transaction.. Is there something wrong? How do i shorten the process to just delete the item without querying two database.

View 2 Replies

VS2008 Load And Parse A Text File And Extract Data Between Points On Any Given Line

Apr 4, 2010

I need to load and parse a text file and extract data between points on any given line. I can load the file, but it's the parsing that's giving me headaches. e.g. "Phoned Jim and arranged for John to attend site" First I need to search for "Phoned" because the line always starts with that, and then I need to extract "Jim and arranged for John"

[Code]....

View 5 Replies

VS 2008 : Calling A Fortran .exe That Calls A File - File Not Found?

Jul 6, 2010

I am trying to run a fortran .exe in VB with the Shell() command. The fortran .exe, when ran, it asks you for a file name. It works perfectly on it's own, but when I try calling it through VB Shell(), it does not work.. (i.e. I cannot get VB to get the file name in it.)

Added info:I am using VB9 but I'm writing in compatibility to .NET. As for the Fortran .exe, when you call it, it opens a command window where it asks for a file name (which I got as a string in VB and I'm trying to pass it in), then you press Enter and it's done. Basically the .exe takes a text file and creates a new text file. We've also tried adding & mystring when calling the exe, but it gives a "file not found" error.

View 3 Replies

Calling A Java Class File From VB Via A Batch File?

Mar 15, 2012

I have a VB program that writes a batch file to allow me to run a line of the following format:java <my class file> [options]I then run the batch file using the Shell() routine in VB.When I do this it says it cannot find <my class file>. However if I run the same batch file from a dos prompt it works.why it works in a dos prompt but not in the Shell function?

View 1 Replies

Calling A .cmd File?

Feb 21, 2012

The cmd file calls a web service that is used to select specific data. When I run the .cmd file manually (as in clicking on it) it runs correctly an saves the file with the information in the appropriate location. However when i try to do this with the .Net app the file is saved however there is no data in it. Why is it when I physically click this same .cmd file with my mouse it works but not when I call it from my application.

View 1 Replies

IDE :: App Calling For Help File

Jun 18, 2009

i have a vb net app and have created help for my app using robohelp and incorporated the help to my app, so now i would like to know if is posible to open a window on my app like students windows and if dont know how to operate the window be able to press F1 and call for my help file on page "How to operate student window" it's a wasy way to do this? im using vb net 2008 my help file was using robohelp and is htm format using Web Help Pro version.

View 11 Replies

Calling Colors From A .txt File

Jun 14, 2011

Beginner question of the day: I have a .txt file that is a series of color names like this-

[Code]...

View 4 Replies

Calling One Class File In Another?

Aug 5, 2010

<div sizcache="0" sizset="0">

i am having 2 class files a.vb and b.vb i have some public shared function in a.vb which i need to call in b.vb i have called it inthis way like the way i has called in normal .aspx pages in b.vb page i called the function of a.vb as

a.funcpwd("filedname") error BC30451: Name 'a' is not declared.
</div>

View 7 Replies

ActiveX Component - Calling EXE File?

Sep 23, 2009

I have created a reference to an activex com component in my project and I am wondering how I now get the program to open the active x form, I have got a GetObject function but the error is "cannot create activex component". Is there a way to call an active x .exe file so that the file opens?

View 5 Replies

Calling An Exe From An Embeded Resource File?

Apr 8, 2009

Im using Visual Studio 2008 and have an .exe file embeded in a resources called Extract.exe.How do i execute the exe file?i've tried My.Resources.EXTRACT but i just get an error saying

View 1 Replies

Import - Calling Class From Another File?

Apr 22, 2010

Lets say I have a class like this in class1.vb:

Public Class my_class
Public Sub my_sub()
Dim myvar as String
myvar = 10
Session("myvar") = myvar
End Sub
End Class

Then I have a ASP.NET page with a code-behind file, default.aspx and default.aspx.vb and I want to call my_class. I'm doing the following, but it doesn't work:

[Code]...

View 3 Replies

VS 2010 Calling Powershell File

Jun 9, 2011

I'm currently having issues calling a .ps1 file in my vb.net project. The program is supposed to provide a simple way for end users to unlock Active Directory accounts. The vb.net project is simply a text box with a button. Users will type the username of the locked account. When the button is pressed, the program writes whatever is in the text box into a CSV file. The CSV file has a samAccountName column in it. After the file is written to, the program then calls a Powershell script that reads the CSV file and unlocks the account based upon what is in the file.The program does everything it is supposed to except for calling the Powershell script to actually unlock the account. I've tried a Process.Start(filePath) which would open the file, but opened in notepad and didn't execute anything. Right now the program is calling a batch file which is supposed to run the script in Powershell but that attempt also failed.

View 3 Replies

.net - File Remains Locked Even After Calling Filestream.close?

Feb 10, 2010

In my application, i am downloading file from DMS system to my server. Once the file gets downloaded, on some environment, the iis keeps lock of the file and when the application tries to redownload the file and put the file on same location, an error is generated that file is being used by another process. Following is the code :

[Code]...

View 1 Replies

Asp.net - Calling Browse File Window Of Fileupload Control?

Oct 5, 2010

I have an ImageButton and a FileUpload controls in a child page of a master page. I would like to achieve something like when user click on the ImageButton, the browse file window will pop-up like what we did when we click on the Browse button of the FileUpload control.How can call the browse file window of the FileUpload control when i click on the ImageButton?

View 1 Replies

.NET Multithreading / Calling Invoke On A UI Control From A Class In A Separate Class File?

May 13, 2011

Example:

Two files - TestClass.vb, myForm.vb

TestClass.vb looks as follows:

Imports System.Threading
Public Class TestClass
Private myClassThread As New Thread(AddressOf StartMyClassThread)

[code]....

The result:Application runs, no errors or exceptions.Displayed is the listbox and the Start button.I press the start button and a msgbox says "Not Invoked" as expected and upon clicking OK to that msgbox "Start Button Pressed" is added to the Output listbox control.Immediately following that the msgbox pops up again and says "Not Invoked". I was expecting "Invoked" as a separate thread is trying to use the Output listbox control.Of course this results in the Output.Items.Add being attempted which results in no visible result as the thread is not allowed to directly update the UI control.

View 1 Replies

Connect To SAP With VS2008?

Jun 29, 2010

I've found several articles/examples of connecting to SAP using VS03 however not with using only VS08. I understand they are working on a new connector (3.0) but need to connect now.

View 1 Replies

Debug A DLL From VS2008?

Mar 31, 2010

I have a program written in VB.Net (Visual Studio 2008) that uses a DLL written in Visual C++ by another developer. I'd like to be able to step in to the C++ code as my code makes calls to methods in the DLL. Since the DLL is it's own solution, I don't think it can be included in my solution/project. I tried putting the DLLs pdb file in the debug/bin directory with the rest of my build and pdb files. However, when I get to the point in stepping through my code, and it gets to the dll call, it just steps right over the dll code. Do I have to manually load symbols?

View 1 Replies

Having Both VS2005 And VS2008?

Jul 12, 2008

I am running on XP SP2 on my Intel C2D, and have VS 2005 on .Net 2.0 Now, can i install the new VS2008 and still have my vs2005?Can I have the both installed and still statisfy the following ?Can I have VS2005 and VS2008 on the same machineCan I do projects for Dot net 2.0on VS2005 while have VS2008 Can I have both .Net 2.0 and .Net 3.0 withouth any problem?Can I still work on my old project in native VS2005 ? Can I work on old .Net 2.0 project in the new VS2008 ?Can I Migrate some of my projects to VS2008 ? Can we also migrate .net 3.0 projects back to .Net 2.0 to work on VS 2005 ?

View 7 Replies

IDE :: Transforming Into VS2008?

Mar 3, 2009

Am currently developing web based applications using VS2005, i want to shift to VS2008, what are the things that i do have to take into consideration.

View 1 Replies

VS 2008 Tell If Have VS2008 SP1 Or No SP1?

Dec 8, 2009

I had a support reply saying I needed to have VS2008 SP1 update installed. I clicked the About menu item for VS2008 and it shows SP1 under Microsoft .NET Framework Version 3.5 SP1. But on the left side for Visual Studio 2008 there is no SP1. Is the framework what they are referring to?

View 5 Replies

COMPILE VB6 Project In VS2008

Nov 2, 2010

I have a VB6 Project which I need to build in VS2008.

i tried to open vbp file in VS2008, it opened a VB Upgrade Wizard and created a new folder with in my VB6 Project Folder.

At this point I am completely stuck.

Is there anyway to build VB6 in VS2008 or Do we have any free tools to convert VB6 to VB.Net.

View 5 Replies

.net - While Debugging VB Code In VS2008?

Jul 31, 2009

On my last machine I had created a way to see a GUID variable while debugging by hovering over it. I don't remember what it was (a visualizer?). I have a new 64 bit machine with vs2008 - is there anyway to mouseover a guid value and have it appear? What makes guid's so special that their value doesn't show like most variables?

View 3 Replies

Buy VS2005 Or VS2008 Cheap?

Jan 27, 2010

I live in the UK and I want to buy the standard edition cheaply. I've seen an OEM version on eBay which the seller claims to be the full version. But it's only one a single disk and it states "Disk 1" so presumably it isn't the complete application.

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved