|
CString is not a general-purpose data storage system. Use vector<BYTE> instead.
|
|
|
|
|
Hi,
I need to get deselected element of a List box.
Is there any way other than comparing the Selected elements with those of a list of previously Selected.
Any suggestions would be helpful.
Thanks
Today is a gift, that's why it is called the present.
|
|
|
|
|
Hi! using the if(!/*appropriate selecting item function, that would be*/ GetCurSel()), a member of CListBox then do an appropriate action in the if Block. Try using the DDX mechanism.
TreeS
|
|
|
|
|
When an item is unselected, the parent control will receive a LVN_ITEMCHANGING message.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I have created a tab with controls on-fly.How to set tab order for controls on dialog.
Then
When i press tab or Enter key it will navigate through the controls.
Now i press Enter key ,the dialog will closed. And for tab key nothing happened.
what I do for that plz help me.
|
|
|
|
|
the closing of the dialog can removed , read the article in this link 7.4
|
|
|
|
|
and for the tab problem just make the property tabstop true
|
|
|
|
|
i have 5 IP address Control in dialog.That are created at run time.then how to navigate between that.
IP address Control created using:
m_cTab.CreateIPEdit(" ", 0, 10, P_LEFT | P_TOP, 130, 0, 130);
m_cTab.CreateIPEdit(" ", 0, 11, P_LEFT | P_TOP, 130, 0, 130); Etc...
|
|
|
|
|
Add this in your code this will enable the tab control,
ON_WM_GETDLGCODE()
UINT Cclassname::OnGetDlgCode()
{
return CButton::OnGetDlgCode()| DLGC_WANTTAB ;
}
When the user presses TAB or SHIFT+TAB, the system first determines whether these keys are processed by the control that currently has the input focus. It sends the control a WM_GETDLGCODE message, and if the control returns DLGC_WANTTAB, the system passes the keys to the control. Otherwise, the system uses the GetNextDlgTabItem function to locate the next control that is visible, not disabled, and that has the WS_TABSTOP style. The search starts with the control currently having the input focus and proceeds in the order in which the controls were created—that is, the order in which they are defined in the dialog box template.
|
|
|
|
|
Compiling...
NetworkConfigDlg.cpp
C:\Documents and Settings\FG\Desktop\EKLoader\NetworkConfigDlg.cpp(913) : error C2248: 'OnGetDlgCode' : cannot access protected member declared in class 'CWnd'
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2387) : see declaration of 'OnGetDlgCode'
C:\Documents and Settings\FG\Desktop\EKLoader\NetworkConfigDlg.cpp(913) : error C2352: 'CWnd::OnGetDlgCode' : illegal call of non-static member function
C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxwin.h(2387) : see declaration of 'OnGetDlgCode'
This error occured what is a problem
|
|
|
|
|
prathuraj wrote: How to set tab order for controls on dialog.
Use SetWindowPos() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all.
I write probgam that worcks in win 2003 server, but dont work in win 2000.
I think that I have miss one or more dll files.
can help
|
|
|
|
|
It may and may not.
Too little information you have provided to us. Try describing the problem you have...
--
======
Arman
|
|
|
|
|
Can you more explain about your program
|
|
|
|
|
Ok.
I write program and debug it on win 2003 server, now I wont install this program in win 2000, but I have some problem with it.
After installtion my program dont work, I dont get any error message or somting like, wen I try to start program starts normal, but some buttons dont worck.
|
|
|
|
|
Maybe your program use of some functions that doesnt exist on the win 2000 did you use of dependecy wallker?
|
|
|
|
|
from where can i download install shield for vc++?
|
|
|
|
|
|
And also on the codeproject is an article for use of Install shield.
|
|
|
|
|
hey..
my program reads data from serial port..the data is in hex format ..
how to convert hex to it's equivalent character
thanks
|
|
|
|
|
Perhaps ::strtol()[^] is what you're looking for.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Raza5680 wrote: my program reads data from serial port..the data is in hex format
Actually the data is (probably) binary. and what you (probably) need is its hexadecimal representation; each binary byte corrensponds to two hexadecimal characters that you can obtain, for instance, using sprintf :
unsigned char myBinaryValue=0x3F;
char sHexRepresentation[3];
sprintf(sHexRepresentation,"%x",myBinaryValue);
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
I am not sure what you are going for here so:
1) If you are just reading a bunch of bytes from the input that represent characters then they can already be considered characters, you just need to treat them as such.
2) If you want to covert the values to a string that shows the equivalent hexadecimal value, as a number, the C++ way, then to here[^] for an example of doing that.
INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra
|
|
|
|
|
I have a program called acunetix web vulnerability scanner it is a administrator penetration testing tool and it has an option to crawl your site and when it crawls it displays all the scripts and for each script it's input variables both GET and POST. The program is an exe application and most likely coded in C. Any idea how this is done? I would like to write something similar.
|
|
|
|
|
Hi. Every time i close a project and reopen it later, i get the following two errors after linking even after successfuly compiling.
msvcrtd.lib(crtexe.obj) : error LNK2001: unresolved external symbol _main
Debug/s.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
s.exe - 2 error(s), 0 warning(s)
Please Help.
TreeS
|
|
|
|