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 TouchToneTommy 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: paul51
  • Content: Threads
  • Order by date
  1. paul51

    VXWorks Newbie Question

    Hello, I am debugging an IC that has is running VxWorks. Using the lkup command, I am able to find some functions that I would like to run. An example is: SomeClass::SomeTest(var1,var2) I am unable to run the SomeTest. The response I receive is that it is not a known symbol. Does anyone...
  2. paul51

    2008 .net Form Socket Send problem

    Hello, I am writing my first socket program in VC++, ,.net 2008. I am able to create a socket, but I am not able to use the Send command properly. unsigned char Tx_Packets[]= { 0x70,0xa1,0x00,0x00 }; int Tx_Length = 4; new_socket->Send(Tx_Packets,Tx_Length,SocketFlags::None); error C2664...
  3. paul51

    String problem

    I am trying to form the following string "****.***" (including the quotes). CString C1 = "****.***" results in ****.*** without the quotes. I need the qoutes. CString C1 = ""****.***"" results in a compilor error pertaining to the .* that is in the string. Does anyone know how to for this...
  4. paul51

    Problem with Debug breakpoints in VC++ .net 2003

    Hello, I am writing a VC++ .net app, and I am having a problem with the breakpoints that I am inserting for debugging. I can insert a breakpoint and enter the code in debug mode, but the code breaks approximately 5 line before the breakpoint occurs. I have used .net for a few years and have...
  5. paul51

    convert number array to ascii digits

    I have the following: unsigned int ARRAY[2000]; The array is filled with ints e.g. ARRAY[0]=45,[1]=115,[2]=13, etc I need an unsigned char buffer of '4','5','1','1','5' etc. Does anyone know how to do the covnersion? Thanks.
  6. paul51

    convert byte array to decimal number

    I am trying to convert a byte array to a decimal. The VC++ .net code is: BYTE OUT_VAL_1[4]; OUT_VAL_1[0]=0xBB; OUT_VAL_1[1]=0xD3; OUT_VAL_1[2]=0x01; OUT_VAL_1[3]=0x3F; //made many attempts, with no luck. //the expected conversion is .507137 Thanks
  7. paul51

    converting string to unsigned char

    I am trying to convert a string to an unsigned char. The code follows. char temp[100]; strcpy(temp,"1234"); unsigned char uc[100]; strcpy(uc,temp); //error C2664: 'strcpy' : cannot convert parameter 1 from 'unsigned char [100]' to 'char *' Any help would be greatly appreciated...
  8. paul51

    GetBytes method

    I am trying to implement the GetBytes method into a VC++ .net application. I cannot figure out how to get it into my code without causing an error. My code does not recognize the command, so I suppose I need some class or library. Can anyone help with this? Thanks
  9. paul51

    Check Box Color Problem

    I am trying to change color of a check box control several times in my program. I am using the following code: HBRUSH CColortestDlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { HBRUSH hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor); if(pWnd==GetDlgItem(IDC_CHECK1)) {...
  10. paul51

    Sending a Hex value over the serial port

    does anyone know how to send a hex value over a serial port?
  11. paul51

    color dialog in .net

    I know how to change the color of a dialog in VC++ 6.0 by using the SetDialogBkColor command in the InitInsatnce Class. Does anyone know how to do this in a .net MFC dialog?
  12. paul51

    ShellExecute Problem

    I would like to open up notepad from my S/W and print different messages. I am trying to use ShellExecute, but it is not working. Notepad is opening, but I cannot get anything to print. ShellExecute(0, "open", "NOTEPAD.exe", 'some text to print', NULL, SW_SHOWNORMAL); Can anyone help with this?
  13. paul51

    Timer Problem

    I am using a VBA shell to do some programming, and I cannot locate the 'timer clock' control. I left clocked on the control dialog and added every control that was available, but the timer clock was not there. When I open a normal VB window, it is present as one of the listed controls, but not...
  14. paul51

    Spawnl problem in windows 2000

    I cannot get the spawnl command to work in windows 2000. It works fine on XP and 98. Does anyone know how to call an executable from Windows 2000. The command that I am using is: spawnl(_P_WAIT,"hypertrm.exe","hypertrm.exe",NULL);
  15. paul51

    Hex String to Decimal Conversion

    I have a Hex value in a string that I need to convert to decimal. Does anyone know how to do this?
  16. paul51

    dialog box problem

    I have a dialog based program that seems to work well. The program takes about 5 minutes to run, and continually updates edit boxes with values. The problem I am having is that when I switch to another application, and then come back to the running program, the dialog box is greyed out, and...
  17. paul51

    Changing/disabling text in a push button

    I am looking for the command that will change the text in a pushbutton, and enable/disable it. I know how to do this from properties, but I want to do it in actual code, so that I can change button titles without using the properties window. I am also trying to do the same with a menu. Any...
  18. paul51

    showing a directory in a dialog window

    Does anyone know how to display a directory in a dialog box (possibly in an 'edit box'so that the use can select a file to load. Thanks
  19. paul51

    hex code problem

    Does anyone know how to convert hex code to a readable format.
  20. paul51

    rf exposure

    Does anyone know what would happen if exposed to a 2.5 GHz signal for 30 minutes.

Part and Inventory Search

Back
Top