Any ideas on how to call a text file from Menu, its seems pretty simple the file won't open up??? Kind Regards Kevin
Caoimh
Posts
-
Calling a text file -
HowTo clear a radio button selectionAny ideas on how to clear a radio button which you've selected?? Kind Regards Caoimh
-
Control variable of GridI would really be happy, if someone could sort this problem.
-
Control variable of GridI've created a control variable to the activex control flexgrid, when I attempt to set the a cell value from another class the program terminates. I've no problem accessing CString variables of the other class its just the control variable (m_ctlFGrid) thats causing the problem. Any ideas!!! Kind Regards Caoimh
-
How to disable a menu buttonI'm using MFCs
-
How to disable a menu buttonHi, any idea on how to disable a menu button. What I mean is, consider internet explorer browser the menu consists of 'File', if you click on it a drop down menu appears, what api could I use to disable the close button. Kind Regards Caoimh
-
Distributing A ProjectHow would one do this???
-
Set edit box text colourany idea, how to set the colour of text for an edit box. Say from black to blue. Kind Regards Caoimh
-
A Debugger Coded using MFC's??let me put the question diferently. I've an assembly file and I want to display the disassembly file of this to a mfc application. How would this be done??
-
A Debugger Coded using MFC's??Hi, does anyone know of debuggers available which were programmed using MFC's. It would be of some use as I need to know how to display a disassembly file Kind regards Caoimh
-
Distributing A ProjectI've finished a recent project and I need to distribute to others. I've compiled it as release however the application refused to work on a machine without Visual C++. So how would I solve this problem. Some features that may be causing the problems are the ActiveX control FlexGrid, the modeless dialogs. Any suggestions much appreciated Kind Regards Caoimh
-
unsigned long to stringSorted, Thank You.
-
unsigned long to stringMy string is type CString not a character array. Any Ideas??
-
unsigned long to stringHi previously I asked how to convert string to unsigned long now the reverse is required. How would I convert unsigned long to string? HAVE: unsigned long cnt = FFFF0000; REQUIRE: a string with the value "FFFF0000" suggestions much appreciated Kind Regards Kevin
-
Thread ProblemThanks for replying to the message. Sorted the problem last night. A memory allocation problem. Used malloc to solve the problem.
-
Thread ProblemPlease Take A Look
-
Thread ProblemHi, I've a global variable char*tptr. The routines for writing and reading are shown below. The problem is that when I want to write some value example tptr= "HELLO"; The response to "HELLO" is "MORNING" however tptr only returns "MORNI" from the ThreadEzusbRead function and then followed by some memory errors messages. Any suggestions much appreciated Kind Regards Caoimh void ThreadEzusbWrite(HANDLE hDeviceWrite) { unsigned long nbyte; BOOLEAN bResult = FALSE; BULK_TRANSFER_CONTROL bulkControl; bulkControl.pipeNum = 0; DWORD IOCTL = IOCTL_EZUSB_BULK_WRITE; bResult = DeviceIoControl( hDeviceWrite, IOCTL, &bulkControl, sizeof(BULK_TRANSFER_CONTROL), tptr, 30, &nbyte, NULL ); if(WriteEvent) SetEvent(WriteEvent); } void ThreadEzusbRead(HANDLE hDeviceRead) { unsigned long nbyte; BOOLEAN bResult = FALSE; BULK_TRANSFER_CONTROL bulkControl; bulkControl.pipeNum = 2; DWORD IOCTL = IOCTL_EZUSB_BULK_READ; bResult = DeviceIoControl( hDeviceRead, IOCTL, &bulkControl, sizeof(BULK_TRANSFER_CONTROL), tptr, 30, &nbyte, NULL ); if(ReadEvent) SetEvent(ReadEvent); }
-
Parsing CStringI'v got a CString string as follows CString strPacket = "$1234567FFFFFFFF#00 I want to parse the string so that str1 = "1234567" & str2 = "FFFFFFFF" Any suggestions on how to do this At the moment I'm using the following, however there must be an easier way of doing this. m_strRspData = ""; for(i = 1; i < 9; i++){ m_strHex = m_strRspPacket.GetAt(i); m_strRspData += m_strHex; } m_strRspData.MakeUpper();
-
Convert CString to Unsigned LongI need to convert CString string to unsigned long. Exammple Need CString strPacket = "FFFFF400" to unsigned long Also any idea how to add a value to strPacket. What I mean is strPacket = "FFFFF400" + "4" = "FFFFF404";
-
ACCESS FUNCTION OF ANOTHER CLASSI'm trying to access function in a class which is defined in another class. I've tried to declare it as a friend, however this won't work for me. Suggestions much appreciated Kind Regards Caoimh