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 bkrike 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: *

  • Users: sweep123
  • Content: Threads
  • Order by date
  1. sweep123

    Using Mutex's

    Can someone tell me if I have got this schem correct for usin Mutexs for controlling access to shared data (memory mapped) between two programs. Each program creates the Mutex as follows:- m_hMutex = ::CreateMutex(NULL,FALSE,"CSLSharedMemLock"); Each program uses the following procedure before...
  2. sweep123

    MFC Items and Threads

    I have an MFC application which create a thread to receive data from another application. Now the thread is started and passed the pointer (this) of the main MFC application in order for it to access the methods/properties of the main MFC application that require updating. This causes an...
  3. sweep123

    Rick Text Control _Scrooling

    Simple question how do you always have the text being written to this control visible; i.e. the data added onto the text is always show; i.e. the scroll bars always being move to the botton for new data. e.g. Data crlf New data crfl etc etc The text grows.
  4. sweep123

    Loaded Libraries

    If you load a library dynamically via the LoadLibrary("MyLib.DLL"); are they any facilities to see what the library is doing; i.e. number of thread running in it, stuck in a loop etc.
  5. sweep123

    Size of Data Strings for an Edit Box Control

    What is the maximum size of string you can place in a Edit Box on a dialog. Note I am using CString for holding the text. I am using a multiline Edit Box to display the progress of a test activity. The display used to be a DOS Window. I use the following code to update the output:-...
  6. sweep123

    Shared Data Between EXE and DLL

    I am trying to have an MFC application that shares data with a DLL. The DLL is loaded via a batch file in a C-Scripting environment. I have included the following lines of code in both the EXE and DLL #pragma data_seg(".CSL_DATA") int volatile abortFlag = 0; /* The flag to abort the test...
  7. sweep123

    Compile Error C2059

    I need to modify a library that is used by a C-Scripting application to allow a MFC application to stop and start the processing. However I get the compiler error C2059 at the code snip below:- #define DLLDIR __declspec(dllexport) // export DLL information // The extern "C" declaration...
  8. sweep123

    Link Error with Building a DLL

    I have been trying to build my first DLL but keep getting the following error and have no idea what it means. The Help not very useful either. TEST_DLL fatal error LNK1104: cannot open file 'c:\Program.obj' I do not use the file Program.obj and it does not even exist.
  9. sweep123

    Creating a DLL for CSL Scripting Use

    I have been trying to use my DLL but keep getting the error no 'initialize' entry found in WHL_TEST_DLL.DLL It's the 1st time I have tried to do a DLL in Visual Studio. See code below:- // WHL_TEST_DLL.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #include...
  10. sweep123

    Joystick input

    I am thinking of developing a application with a joystick as an input device via the USB port. Does anyone have any code to smooth out the action. Currently would like roll and pitch smoothed to -/+ 180 from the 0 to 65756 values used by the joystick. i.e. dip a few desgrees/sec while...
  11. sweep123

    Joystick Smoothing

    I have developed a MFC VC++ application with a joystick as an input device. Does anyone have any code to smooth out the action. Currently would like roll and pitch smoothed to -/+ 180 from the 0 to 65756 values used by the joystick. i.e. dip a few desgrees/sec while joystick off-centre. Any...
  12. sweep123

    Interface to a Scripting Environment

    I have been using an application that makes use of a c scripting language. The scripts are either run in the applications scripting dialog window or a DOS window. However is it possibel to write data to Notepad and have Notepad displayed on the screen to see the progress of the script. But my...
  13. sweep123

    Writing to Com1

    I have been trying to use this section of code to sent data to my old RS232 printer/console. But the device only prints the data when the program terminates. What I would like to do is send data then receive data, but currently have to terminate the program to have the data sent. Code listing...
  14. sweep123

    RS232 Error 8015

    I was trying to use a downloaded project from the Code Project to try and send/receive data from my old RS232 printer/console. But I only get the run-time error 8015 Code listed below:- Dim InputData As String Private Sub Command1_Click() Debug.Print DataToTransmitTextBox.Text...
  15. sweep123

    Looking for Header bios.h

    I was trying to use the code (see link below), but need to have the header file bios.h. Does anyone know where to find it? http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q39/5/01.asp&NoWebContent=1
  16. sweep123

    Excell Replace/Change Font

    I need to change the name of an item in a Excel cell and then change its colour - repeatly. But dont know how any items are in the Worksheet. i.e. its peoples initials; want to just add initials (when creating/editing) then have VBA globally replace the initials to full name and have males in...
  17. sweep123

    VB in MS Excel

    I need to change the name of an item in a Excel cell and then change its colour - repeatly. But dont know how any items are in the Worksheet. i.e. its peoples initials; want to just add initials then have VB globally replace the initials to full name and have males in Blue and females in Red...
  18. sweep123

    Rs232 Example

    I found my old Brother EP-44 printer/terminal the other day. It's 15 years old and used to interface (thermal printer) with my Amstrad CPC-6128 via a RS232 link. It has a keyboard so you could compose letters and could be used as a printer. What I would like to be able to do is communicate...
  19. sweep123

    RS232 Test

    I have an old Brother EP44 printer/keyboard with an RS232 interface. I wanted to test if this RS232 interface is still working. I can remmembe in Windows 3.11 being a terminal emulating program. But cant find anything in Windows XP. Also would like to wite some RS232 software to talk to this...
  20. sweep123

    No On-board Sound

    When I removed my Sound Blaster Audigy card from my PC and attemptedt to use the on-board sound I cant seems to get any sound out. The Device Manager reports: 'This device cannot start (Code 10)'. Any ideas?

Part and Inventory Search

Back
Top