|
Just if you had googled like this:Learn to Google[^]
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
p_1960 wrote: Please let me know the difference b/w debug and release dll"s...
You probably want to know the differences between debug and release builds. Here's a classic article[^] on the subject.
Hope that helps.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Hi all
Does anyone know a better Win32 API for pinging ?
regards
Thang
|
|
|
|
|
PING by itself is not a Windows API.
It is an executable called PING.EXE .
It internally uses ICMP APIs like IcmpSendEcho[^] or Icmp6SendEcho2[^].
The functions are declared in the header file Icmpapi.h .
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Better than what?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
look for the code of ping, so you learn and can do it the way you want
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
In the past I've worked on large teams and the build system we had in place would auto-increment the build number. At the moment I'm working on my own shareware project (written in C++, using VS2005) and I'd like to have Visual Studio auto-increment the build number for me (bonus points if it only increments the release version).
I started to do some digging and I've read that Visual Studio has this feature with .NET projects, but I haven't read anywhere about this being available in C++ projects, so my questions are:
* Does this exist for C++ project?
* If so, what are the steps needed?
* If not, are there any suggested tools or add-ins? What do some of the developers here use?
Thanks,
Jeff
|
|
|
|
|
If you don't insist on an "index" of builds you could use the __DATE__ and __TIME__ macros which give you the build date-time combined with some pre or maybe post build step that deletes the OBJ file or maybe updates the file time to make sure the file you put the creation of a build number into will get built every time (you can make the post or pre build step only in your release target if that suits you).
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Thanks, but I'm looking for an incremental increase in the build number.
Jeff
|
|
|
|
|
|
Yes, I already had searched but when I found lots of articles where a macro was written, I noticed that each article had lots comments about bugs, and instead of weeding through the umpteen articles I decided to post my question here to this forum.
So, back to original question, what do people here use?
(if you use one of the macros from one of the articles then please recommend it)
And does Visual Studio have an auto-increment feature available to C++ like managed projects do?
Thanks,
Jeff
|
|
|
|
|
jeffb42 wrote: (if you use one of the macros from one of the articles then please recommend it)
Nah, I am old fashion and I manually change my build numbers.
jeffb42 wrote: And does Visual Studio have an auto-increment feature available to C++ like managed projects do?
No, unfortunately Visual Studio C++ users do not get those überlegen modern features.
This Microsoft Help and Support article has a sample build increment, I have never tried it.
How to increment version information after each build in Visual C++[^]
Good Luck,
-David Delaune
|
|
|
|
|
jeffb42 wrote: * If not, are there any suggested tools or add-ins?
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I know about the win32 function calls to detect the caps lock key, but does anyone know if there is a cross platform way to do it? Is there anything in the standard library for checking that?
|
|
|
|
|
forrestcupp wrote: Is there anything in the standard library for checking that?
No, there is no standard C/C++ function for checking the status of the keyboard LED.
Best Wishes,
-David Delaune
|
|
|
|
|
I don't really care about the keyboard LED. I really just want a way to tell when the caps lock button has been pressed.
Is there any way to do that?
|
|
|
|
|
forrestcupp wrote: I really just want a way to tell when the caps lock button has been pressed.
Is there any way to do that?
Yes, but not cross-platform.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
i have a byte array in a string that i read from a resource
i used CString for example , i can use any other string types
i want to convert a comma delimited byte array string
CString stringarr = "5,10,15,20,25";
to unsigned char[]
unsigned char myarray[]={5,10,15,20,25};
i tried some for loop but result is always different than actual data
maybe i am doing something wrong with that
can you help me please
thanks.
|
|
|
|
|
You should take a look at the strtok_s[^] function. There's even a very similar example as yours.
|
|
|
|
|
Have also a look at CString::Tokenize method [^].
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.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
How to add codepage 936 in VC++ ?
|
|
|
|
|
How about _setmbcp(936) ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi,
I am getting a problem with the CComboBox::GetItemDataPtr function
i have the following code
TCHAR *szFilePath = new TCHAR[MAX_PATH + 1];
ZeroMemory(szFilePath ,MAX_PATH);
_tcscpy(szFilePath ,_T("C:\Documents and Settings\user\Desktop\Scrollbar.xml"));
int nIndex = m_Combo.AddString(_T("ScrollBar"));
m_Combo.SetItemDataPtr(n , szFilePath);
using the Above code am setting the ItemDataPtr to a Buffer.
On the Selection change event of ComboBox
i have the following code
void CRegDlg::OnCbnSelchangeCombo()
{
// TODO: Add your control notification handler code here
int nIndex = m_Combo.GetCurSel();
void *szFilePath = m_Combo.GetItemDataPtr(n);
}
but the GetItemDataPtr() in OnCbnSelchangeCombo always returns a Bad
pointer. I don't know what is the actual problem with my code. Is there anything i want to do to get the actual buffer from void*.
thanks
Nitheesh
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|
|
Nitheesh George wrote: _tcscpy(szFilePath ,_T("C:\Documents and Settings\user\Desktop\Scrollbar.xml"));
Are you intentionally not using double backslashes?
Nitheesh George wrote: m_Combo.SetItemDataPtr(n , szFilePath);
Shouldn't this be:
m_Combo.SetItemDataPtr(nIndex, szFilePath);
Nitheesh George wrote: void *szFilePath = m_Combo.GetItemDataPtr(n);
Shouldn't this be:
TCHAR *szFilePath = m_Combo.GetItemDataPtr(nIndex);
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi David,
thank you for your reply. Now i realize what is wrong with my code.
thanks
Nitheesh
Jose Jo Martin
http://www.simpletools.co.in
|
|
|
|