|
This is not related to C++. Why don't you check payscale.com or something?
To be honest, the pay would depend on not your years of experience, but your talent and what could you do for the company that hires you.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
How can I save and restore windows position and state of an ChildFrame window in an MDI project ? Can you help me with an hint ?
|
|
|
|
|
1. Get the window rect of the child frame. ( pChildFrame->GetWindowRect() )
2. Transform rect from screen coords to client coords of your main frame. ( pMainFrame->ScreenToClient() )
3. Store the rect in registry or elsewhere.
|
|
|
|
|
Hi ,
I am using LPTSTR variables in my code. Is there any need to free memory allocated by this variable to avoid memory leak problems. if so.. then how can we do this.
Thanks
ABM
|
|
|
|
|
am 2009 wrote: Is there any need to free memory allocated by this variable to avoid memory leak problems. if so.. then how can we do this.
Such variable is a pointer. If it points to a heap-allocated buffer then such memory should be eventually released.
However it really depends on the context if clean-up is up to you or not.
Could you please provide more info about?
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]
|
|
|
|
|
LPTSTR variables are actually TCHAR* variables and you should work with them just as if you would work with TCHAR*. SO yes, you MUST free the allocated memory
|
|
|
|
|
if you allocated the memory dynamically, you must free it.
however, only you know if you allocated the memory dynamically, since we don't have your code.
|
|
|
|
|
i m able to alter the column position in mouse drag drop
by sending Message LVM_SETEXTENDEDLISTVIEWSTYLE, LVS_EX_HEADERDRAGDROP, LVS_EX_HEADERDRAGDROP
i need to store the array order after the drag drop
how do i get that in my onnotify function
|
|
|
|
|
What is you own guess? I told you yesterday that ListView_SetColumnOrderArray will SET that information. I have no idea how to GET it. Visual Studio comes with help files. But I understand you: Real men don't read manuals.
|
|
|
|
|
hi all,
Can you give me a simple callback function
example in C++?
|
|
|
|
|
I believe Google[^] has everything you need...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
A real world example is the TIMERPROC function (documentation, code sample).
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]
|
|
|
|
|
LRESULT WINAPI CALLBACK WinProc(HWND, UINT, WPARAM, LPARAM);
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
Hi All
I am trying to open Excel file(2003 & 2007).I know to open excel file to use
MSO.DLL,VBE6EXT.OLB,EXCEL.EXE this.But i want to know there is any different method to open excel file.Please help me.
|
|
|
|
|
You may approach the hard disk with a big hammer, for instance.
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]
|
|
|
|
|
What do you mean?
modified on Thursday, April 15, 2010 4:22 AM
|
|
|
|
|
MsmVc wrote: what do you min?
Actually I max.
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]
|
|
|
|
|
|
Hmmmm - you're probably approaching this in the wrong way...
If you want to open the spreadsheet so the user can edit it, use the <code>ShellExecute</code>[^] Win32 function.
If you want to open the spreadsheet to modify it programmatically, I'd suggest using Automation. That opens the spreadsheet in Excel and then you modify it by asking Excel to perform functions on it. There are several[^] articles[^] on CodeProject[^] that cover the subject. Try reading and understanding some of those...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
CodeProject MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Write a function to check that a given string is a valid IP address. An IP address is of the form a.b.c.d where a,b,c,d are numbers in the range 0-255 without a leading zero. You are not allowed to use any string methods like split, indexof, parseInt etc, in C language
|
|
|
|
|
its actually quite easy, but :-
1) sounds like homework - DO YOUR OWN
2) I dont like 'Please give the correct ans' - people here give the best answer they know according to their experience & knowledge, and dont mislead/give deliberatly wrong answers, so I take offence to this
'g'
|
|
|
|
|
In C language there is nothing like IndexOF,ParseInt and splits..
you can use strstr to find '.' and atoi to convert strings to number
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
#include <regex.hpp>
int match(const char * what)
{
return(regex_match(what,"^(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9])\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\.(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])$")
}
That should impress your teacher... 
|
|
|
|
|
The correct way to check IP4 addresses for validity is:
bool validate_addr(const char* ip)
{
return inet_addr(ip) != INADDR_NONE;
}
|
|
|
|
|
Yes, but it does not follow the requirements. inet_addr will accept any dot notation, so "4.003.002.0x10" will be valid. I think the purpose of the exercise is to lead gently to stuff like atoi(), format strings, and so on...
|
|
|
|