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...
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...
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...
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...
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.
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
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...
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
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))
{...
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?
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?
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...
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);
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...
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...
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.