Hi,
I've never used Csockets in VC++ before but I have used the Winsock active X component successfully and also original Berkley sockets on an OS9 based embedded system.
I am not sure quite what you are trying to do here. However unless you are a server that is going to spawn a new process...
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...
I think your problem is that you are trying to caste a CString object as a variant. This won't work. Instead you might try the following.
CString strOutput; strOutput = ("GO;"); // No change here
VARIANT vtData; vtData.vt=VT_BSTR; /* Create a variant data structure and initialise...
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.