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