C++ - Call An *.exe-file Through A *.dll-file And Submit Parameters?
May 21, 2012
I'm trying to start an *.exe-file with the help of a *.dll-file instead of calling the *.exe-file directly. It will be used for a program that is able to start *.dll-files, but not *.exe-files.In this case: The browser.exe is written in vb.NET and the browser.dll file in C++ (I could not find any dll snippet for vb.NET).The code-snippet for the browser.dll (MFC-DLL) that has been generated by VS2008 and has been modified a little bit by me looks as follows:
[...]
CBrowserStartApp::CBrowserStartApp()
{
system("start .\browser.exe");
[code]....
I can compile it without errors. there's an error message if I start the dll with Rundll32.exe and add any parameter. Then the program starts, but the error message is still there. It says something as "Error in browser.dll. Missing Content v" if I start it with "Rundll32.exe browser.dll v". If I leave out the parameter "v", nothing happens. Neither an error appears nor the actual application.
I have is as follows: Usually I start the *.exe-File with parameters such as a URL [URL]. How can I add such URLs to the *.dll-file? The same trick as for usual program (e.g., args = Environment.GetCommandLineArgs())? How can I access them and take them forward to the actual *.exe-file then?
View 1 Replies
ADVERTISEMENT
Apr 27, 2010
i am trying to create a form in VS using ASP that when upon submitting a form the details will get automatically stored in an xml file which can be accessed later on a chosen file save path.i have 2 files ... "Contact.aspx" and "Contact.aspx.vb".i have created the form in the "Contact.aspx" and when trying to enter the fields in the "contact.aspx.vb" i keep getting several errors such as for example...
Error 5 'Formatting' is not a member of 'System.Web.UI.WebControls.XmlBuilder'
Error 6 'WriteStartDocument' is not a member of 'System.Web.UI.WebControls.XmlBuilder'.
Error 7 'WriteComment' is not a member of 'System.Web.UI.WebControls.XmlBuilder'.
Error 8 'WriteStartElement' is not a member of 'System.Web.UI.WebControls.XmlBuilder'.
Error 10 'WriteAttributeString' is not a member of 'System.Web.UI.WebControls.XmlBuilder'.
there is like 30 errors in total... im literally stuck out my head been trying for 2 days now and can't grasp what im doing wrong ive tried even some of the tutorials online but loads of errors...
View 1 Replies
Dec 3, 2009
[code]This works fine and passes 8 parameters into the sysimp.bat file. The problem is if I try to pass in a value that has a space between the text then it will treat it as two parameters rater than one.So if P1 value is for example "Hello World" then when passed into the bat file it will assign "Hello" to P1 & "World" to P2. Is there a way to wrap the text in the parameters or should this be done in the .bat file?
View 9 Replies
Jun 1, 2010
I am stuck with a problem about generic classes. I am confused how I call the constructor with parameters. [Code] I get error in the starred area of the DBLayer Object. What might be the possible reason? what can I do to fix it? I even want to add New(byval someval as datatype) in IDBObject interface for overloading construction. but it also gives an error? how can i do it? [Code]
View 4 Replies
Oct 14, 2009
I am using a thread to call a process which is spliting a text file into various text file and folder using the system.io , now when calling the Textsplit() with thread on click of a button i am getting the error below , how to use thread and why this error occurs.
Cross-thread operation not valid: Control 'txtbox_destn' accessed from a thread other than the thread it was created on.
View 1 Replies
Jun 3, 2010
I want the program exe file should be used as a dos command with options. ex: dir /p
same way myapp.exe /auto. Iam using visual studio 2008,
View 3 Replies
Jul 27, 2010
I'm trying to use the Shell method however I'm having trouble because I want to open the file a specific way.
For example,
Shell("C:x.exe" -window)
However this gives an error.
View 4 Replies
Sep 29, 2011
How would one go about sending parameters to the application? For example, I want to send my exe some switches or parameters.
my_app.exe -param1 -param2
Something like that. Then I can use the para1 and param2 throughout the exe Possible? But it is not command line, it is gui based.
View 2 Replies
Jun 8, 2009
I am trying to call a method which has two parameters using thread. How can I do this? If I pass parameter to my thread.start() method, it is giving error.
View 1 Replies
Oct 5, 2011
I'm using Visual Studio 08 and Vb.Net (3.5). I want to call a perl script. This perl script should get two values (that the user wrote into input-elements in the vb.net application). Then the perl script should return one or more strings (maybe a list or an array?). How can I do this?
View 1 Replies
Feb 1, 2009
Call a perl script from vb.net with parameters
View 2 Replies
Oct 4, 2010
I'm trying to create a program that will read in a custom file similar to a config/INI file and parse the data and store them into variables of a custom class. Essentially I want to be able to read in line by line, split the line by the space and then store the value into a class object's variable with the same name.
For example, I have a class called body.
Public Class body
Dim height As Double
Dim weight As Double
End Class
View 9 Replies
Mar 21, 2010
How to add parameters to app.config file while during msi file installation. please look at the attachment.
View 12 Replies
Feb 2, 2010
I want to add a parameter to my thread call here is the code. I want to call th.Start(True, sender.Text) and Count(ByVal isRunning As Boolean) will then become Private Sub Count(ByVal isRunning As Boolean, Byval strID As String), but I can't do that. So how can I make this thread accept 2 parameters?
Private Sub btnStart1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart1.Click
th = New System.Threading.Thread(AddressOf Count)
th.Name = "Button1"
th.Start(True)
[Code] .....
View 4 Replies
Nov 3, 2010
I am interacting with VB code on a different tier, using a client-side c# program. The VB function signature looks like this:
Public Sub toggleExclusion( _
ByVal mouse As Double, _
ByVal study As Integer, _
[Code]....
I get an error saying no overloaded method of toggleExclusion takes 2 arguments?
View 3 Replies
Jan 5, 2012
A friend in work suggested the use on classe to store the parameters BEFORE call a method. He's said this is called "Abstract Class". My "know how" of VB.NET is small... so, I want to know of you what mode is the best way: Call a function/sub like that:
[Code]...
View 3 Replies
Sep 16, 2010
I'm using a stored procedure to updateinsert data into a table using MERGE. One of the items being inserted is a VarBinary file. Now if I wish to add a new file it's just a case of using ReadAllBytes as below, to remove the file I pass DBNull. Now what if other fields are being updated but the file is not being changed? I want the field to remain untouched unless I'm replacing the file or deleting it as above. I cannot add the file via the parameter again as it may only exist in the database, unless I read it first and write it back which seems pointless. [Code]
View 1 Replies
Feb 17, 2012
I have a webbrowser and on a form I need it to fill text. The problem is, in order for the submit button to activate, you have to atleast type in 1 letter for it to update and make it send. The problem is when I do document.getElementById("p1").innerHTML= "SSSS" it works but it wont update the submit button to allow me to submit the form. What should I do?
View 2 Replies
Oct 3, 2009
I'm trying to have a login screen (in vb) call a password change screen also written in vb. It's to force people logging in with the default password to change there password.
View 2 Replies
Nov 26, 2009
How to call the dll(class lib. c# 3.0) in visual basic 6.0(VB 6.0)
View 11 Replies
Aug 19, 2009
I do have a Sub in a .vb file that is located in the App_Code folder.I would like this Sub to automatically start when a page load in an asp.net file (aspx). Therefore I know that I need to call this Sub from this particular page.Now, how can I call this Sub to start automatically in this page. I know that I may need a handle, but I don't know what handle to use.I am using VB and if you are willing to help, one line of code or as many as you like is a must to better understand the Sub call. [code]
View 2 Replies
Mar 27, 2012
I have a view with a few checkboxes that can be selected or unselected. I'd like to always register any change in a checkbox, without the use of a submit button (the user could forget to do it, and it would waste time). So, is there a way to handle this inside the view? Up to now, I've only used the controller to do that job.
[Code]...
View 2 Replies
Sep 23, 2011
I have to use Form.Action to redirect to a script that will be picking up values from my page. It is worth noting that this script is external.My issue is that I also want the button that is clicked and has the Action hooked up to it, to also complete some functionality in the code behind first.Is there anyway I can either :In the buttons click event handler, can I set the Form.Action and then call something such as Form.Submit?OR Set up the Form.Action in advance and then somehow have the button posting back before the action takes place.
View 5 Replies
Dec 1, 2010
I have a TextFile created in my Solution Explorer called ReadMe.txt. My question is how do I call that file? For a form, I would do something like Form1.Show(), but that didn't work with the ReadMe.txt.
View 4 Replies
Sep 9, 2010
Is it possible to call VB procedure in XML file? For the example
<destination id="destf" value="fill_destinations()" type="listmenu"></ destination>
So when my application read the XML file and reached to the id destf it should call call fill_destinations() which can bring the all destination list in listmenu?
View 1 Replies
Dec 17, 2010
I want to call vb6 exe file on vb.net application that I am currently working on. The VB6 Application has the login screen and I don't want it to be displayed as the start-up screen. As soon as I call the VB6 appl the program must activate the enter key, so that I cannot put the login credentials manually.
So How do I make my program press the ENTER key?
This is my code for calling the vb6 application </Process.Start("C:\Importing.exe")>
View 4 Replies
May 7, 2010
i'm trying to call an external .vb file class function
is it like dim a as ClassName=new ClassName()?
so how do you do with this kind of..
I try to search for return value from .vbs to project that i will compiled, but none got the answer..
#The reason why i'm doing this is for feature maintenance..
no need to compile again for changes
View 1 Replies
Aug 18, 2009
How can I call a .exe file by clicking a button? For example, I have a program in C++ that I want to call from my VB.NET form. How can I do this?
View 3 Replies
Mar 26, 2009
I have ShowValue working. Now, on the last line I need to call the function newFunction to repopulate the dropdownlist object on the onClick event.
I am getting errors when I click the dropdownlist down arrow.
How do I get the two to hand shake with each other?
My code:
Public Sub ShowValue(ByVal sender As Object, ByVal e As System.EventArgs)
lblupdatePanel.Text = DropDownList1.SelectedValue.ToString
Dim LocationDescription2 As DropDownList =
[Code].....
View 3 Replies
Feb 22, 2012
I am trying to use the value of <Directory> in my following piece of [code]...
Is there any way i can call the value stored in the xml file in my code?
View 3 Replies