Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Polkadot

    Csocket response problems - specialist needed

    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...
  2. Polkadot

    Returning BSTRs from a DLL called by VB ???

    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...
  3. Polkadot

    DLL entry point problem

    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...
  4. Polkadot

    DLL entry point problem

    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...
  5. Polkadot

    ?system ("command"); -There is a

    Thanks for your help which I have found very helpful.
  6. Polkadot

    ?system ("command"); -There is a

    ?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...
  7. Polkadot

    Can you help me with my problem? -T

    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...
  8. Polkadot

    RS232 with the MSCOMM.ocx

    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...

Part and Inventory Search

Back
Top