Has anybody out there ever managed to do this successfully ?
I've tried a number of variations along the following lines but no success:-
BSTR _stdcall atest (int a)
{
CString out;
if (a > 100) out = "a is greater than 100"; else
out = "a is less that 101";
BSTR bout...
I want to write some very simple functions, pack them into a DLL and call them from Excel (VB using DECLARE Function....). I have used VC application wizard to generate a Windows 32 DLL + exported that includes an exported function that does nothing more than return the integer 42. I have...
I want to write some very simple functions, pack them into a DLL and call them from Excel (VB using DECLARE Function....). I have used VC application wizard to generate a Windows 32 exported function that does nothing more than return the integer 42. I have selected explicit linking. (I don't...
?system ("command");
-There is a C function that allows C to call another executeable as if from a command line prompt eg.
system("c:\type c:\autoexec.bat");
In C++ this will open a Dos window and type the autoexec. Note however that this doesn't work for windows .exe...
Can you help me with my problem? -There is a C function that allows C to call another executeable as if from a command line prompt eg.
system("c:\type c:\autoexec.bat");
In C++ this will open a Dos window and type the autoexec. Note however that this doesn't work for windows .exe...
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.