|
zengkun100 wrote: When I choose the "Go To Definition" menu item in the context menu, the ide open "windef.h", not STL's limit.
zengkun100 wrote: It does work when I undef max.
zengkun100 wrote: Maybe you are right!
How many evidences do you need?
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]
|
|
|
|
|
Thank you!
A Chinese VC++ programmer
|
|
|
|
|
Write a program management personnel of 1 companies with functions:
Get a 1 staff to the company.
Delete 1 employees.
Search for employees under the code staff.
Print a list of employees in the company.
End the program.
(Required at this leading export and use inheritance.)
Hope you help me! I'm very urgent.
Thanks!
|
|
|
|
|
Read the posting guidelines before posting your homework questions.
No one here is going to do your homework.
You can try doing it and come back here if you are having some problem.
Regards,
Sandip.
|
|
|
|
|
I think you got to learn programming from the scratch. Read a beginners book like "Programming for Dummies". These book-series ("For dummies") is fine, read some too.
Or Hire a professional if you havent any clue how to program.
Greetings from Germany
|
|
|
|
|
Can you not wait even two minutes before posting the same question again?
qt_oct wrote: Hope you help me!
The probability of this happening is very low.
qt_oct wrote: I'm very urgent.
I think they have medication for that.
In any case, what you've written here makes no sense at all. Why did you not even bother to reformat it so that it did not scream HOMEWORK?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
...
Blog link to be reinstated at a later date.
|
|
|
|
|
Write a program management personnel of 1 companies with functions:
Get a 1 staff to the company.
Delete 1 employees.
Search for employees under the code staff.
Print a list of employees in the company.
End the program.
(Required at this leading export and use inheritance.)
Hope you help me! I'm very urgent.
Thanks!
|
|
|
|
|
Is it possible for a program to tell if it's been launched from inside a command window or from the Windows Shell?
I would like to write a small utility that shows a GUI if it's launched from the Shell, and only a command-line interface if it's launched from a prompt.
Is this possible?
“Cannot find REALITY.SYS...Universe Halted.”
~ God on phone with Microsoft Customer Support
|
|
|
|
|
Try this...
if( AttachConsole( ATTACH_PARENT_PROCESS ))
{
AfxMessageBox( _T("Parent is a console application"));
}
else
{
AfxMessageBox( _T("Parent is not a console application"));
}
|
|
|
|
|
Hi,
I am getting the following error with CRecordSet::Update( )
Error:The cursor does not include the table being modified or the table is not updatable through the cursor
I am currently using SQL-Server 2005 ,VC++6.0 . Any help would be appreciated.
Thanks
|
|
|
|
|
|
Habitual cross poster; this message was posted THREE times. To the user, the next time I see one of your messages in multiple forums I'm reporting them as ABUSE.
Blog link to be reinstated at a later date.
|
|
|
|
|
|
Tetris source file at www.cpallini.freproductz.com/gamez/tetris/src
BTW do you know about a fantastic (secret) search tool named Google [^]
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]
|
|
|
|
|
CPallini wrote: Tetris source file at www.cpallini.freproductz.com/gamez/tetris/src
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
What is a collecton of statements in a human-readable programming language, Alex?
"Love people and use things, not love things and use people." - Unknown
"The brick walls are there for a reason...to stop the people who don't want it badly enough." - Randy Pausch
|
|
|
|
|
The Daily Double
Good answer -- er question (or something like that)
|
|
|
|
|
Hi,
I am wondering how I can get the text from an scintilla text control ? This is my code, but the debugger says that data has a bad pointer and I have no text in it.
TCHAR *data;
UINT nLength;
nLength = SendMessage(hWndEditor,SCI_GETLENGTH,0,0);
memset(&data,0,sizeof(TCHAR)*nLength+1);
data = (TCHAR*)SendMessage(hWndEditor, SCI_GETTEXT,nLength+1,0);
MessageBox(NULL,data,L"MyApp",0);
free(data);
Thanks for help.
bye,
gabbana
|
|
|
|
|
gabbana wrote: data = (TCHAR*)SendMessage(hWndEditor, SCI_GETTEXT,nLength+1,0);
shouldn't that be
nLength = SendMessage(hWndEditor, SCI_GETTEXT,nLength+1, (LPARAM)data);
?
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]
modified on Sunday, October 26, 2008 2:41 PM
|
|
|
|
|
Hmm,
I get an error:
cannot convert from TCHAR* to UINT
And the last parameter i needed to cast (LPARAM)data.
|
|
|
|
|
In fact I forgot a cast. I fixed (there also was a wrong cast,by cut 'n' paste, actually) my previous reply, please see it again.
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]
|
|
|
|
|
Okay, but without luck.
Iam not sure what the error exactly is, but if I have a breakpoint at the last SendMessage and look in the Debugger &data have a value of 0x00... and Bad Ptr
And the MessageBox is empty.
The code looks like this:
UINT length = SendMessage(hWndEditor, SCI_GETLENGTH, 0, 0);
TCHAR *data;
memset(&data, 0, sizeof(TCHAR)*length+1);
length = SendMessage(hWndEditor, SCI_GETTEXT,length+1,(LPARAM)data);
MessageBox(NULL,data,L"Test",0);
free(data);
At the end of the function I also get this error:
Stack around the variable 'data' was corrupted
modified on Sunday, October 26, 2008 11:16 PM
|
|
|
|
|
gabbana wrote: TCHAR *data;
memset(&data, 0, sizeof(TCHAR)*length+1);
I think before memset you should allocate memory for data.
You can insert following statement before memset.
data = new TCHAR[length+1];
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
I get the same error.
What I found now is, that if i only allocate memory with your code and removing the memset and free functions I get no error, but the MessageBox and the gives me some crazy char like chinese. (I think I should mention that I use UNICODE)
|
|
|
|