Use this to call an exe:
lRet = ShellExecute(app.hwnd, "", app.name, parameters,, 0)
An exe can't return any value when executed, if you wan't that you need to use a .dll.
Regards,
Mats
Hello,
Is there an easy way to call a .dll that is on a server so that the .dll only runs at the server? I have an app that is to be distributed, but I don't wan't to have to distribute all the components and programs that are required to make it run but instead I wan't to run these on the...
Hello,
I have tried several ways of execuing VBScripts, but none of them return the return parameter from the Script.
My script ends with WScript.quit(<parameter>) - so I should be able to access to parameter somehow. If I use Shell Execute or WinExec I just get the returnparameter of that...
Hello,
Does anyone have code for creating simple .zip file? I am not interested in using third party components (WinAPI are o.k. since I can assume that they are present on any machine running windows) but I would like to be able to include this functionality into my projects straight away. I...
This is my problem:
I have a project in VB that uses DCOM to call SAP. I use the BAPI GeneralLedgerAccount to retrieve accounts from SAP. In SAP I have a total of approx 8000 accounts.
The function goes as this:
Declare objects and recordsets needed.
Call own database to create recordset of...
Thanks for all the help, but Microsofts support solved this one: It seems that there is a well known bug in the software that causes this problem if the input locale is not English. We had our computers with Finnish input locales and changing that to English solved the problem.
Mats
It didn't really have the effect I hoped for. After changing DWORD to INT the same error occured for the next DWORD in the file - so I changed that one to, but the problem just kept repeating for every DWORD - so I changed them all. Now it's giving the same error for HANDLE_PTR.
Somehow I...
Where? In urlmon.idl? The code that I'm trying to compile is generated automatically, so I don't really know what's going on there, but as far as I have been able to see there's no direct references to urlmon.idl. I must unfortunately admit that I know *very* little about C++, VB is more in my...
I need to compile a dll in Visual C++. All my attempts however end with the error:
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\urlmon.idl(535) : error MIDL2025 : syntax error : expecting a type specification near "DWORD"
First I thought it might have something to do with my...
This should be no problem at all as far as I can see. Just start a new project and link the tables from the back-end of your first database.
In case you don't want the users of both front-ends to see the same records you have to add some identification for your data so you know to which...
Here we go...
I'm taking my first steps with VB.NET, but so far I've just come up with a lot of questions.
Can anyone explain the eventSender (System.Object) and eventArgs (System.EventArgs) that are passed for many functions? What values should I pass to a function that requires these, and...
Just a couple of things I ran across installning .NET (i run .NET on a computer with Win2K advanced server):
1. The install is very sensitive - when they say close all other applications - do so!
2. The progress meters are not very good, my installation went on for what seemed like ages...
Thanks,
I've been trying to create a function at the sheet level - no wonder it didn't work. Now it works just fine. I mostly use Access so coding in Excel is a bit slow for me...
Mats
I'm also interested in knowing how to use user defined functions. The code itself is easy to write, but I can't figure out how to use my functions in a cell.
Currently I just run the code with appropriate events.
Mats
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.