|
|
Just for curiosity's sake: what is the structure of your name? Is 'Nishant' your given name and 'S' an abbreviation of your family name, the other way around?
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Joaquín M López Muñoz wrote:
Just for curiosity's sake: what is the structure of your name? Is 'Nishant' your given name and 'S' an abbreviation of your family name, the other way around?
Here in South India we have a weird naming pattern. In the western countries you have family names. You have Mr. Sam Brown, his son Mr. Jason Brown, grandson Mr. Tony Brown etc… So they are all Browns, huh?
Here we don’t follow that at all. My name is Nishant. My initial is S which expands to Sivakumar (which you guys take to be my surname). Sivakumar is my dad’s name, but his initials are P.K. (which expand to his dad’s name)
So if you have Sam Johnson here, his son will be Tony Sam (the Johnson is dropped and his dad’s first name is his surname). Now Tony Sam’s son might be George Tony etc…
You get me I hope
Regards,
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
I think I got it, sort of Russian patronimics (for instance, Rodion Romanovitch Raskolnikov's father was named Roman Raskolnikov).
In Spain, things are funny, too (and most of the time ununderstandable for Anglosaxons). My name consists of of a compound given name (Joaquín M, 'M' is an abbreviation for 'María') and two family names López and Muñoz, which correspond to the first family names of my father and mother. So, If I had a baby with a girl named, for instance, Carmen González García, and decided to call her Ana, the baby's full name would be Ana López González. Not hard once you get it, but people from other countries often have a hard time trying to figure out the various parts of Spaniards' names.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
I am creating an MFC application which uses OpenGL. This is basically a 3D model editor. The OpenGL device is set up for Double Buffering. How can I draw with the Windows GDI onto a GDI context? The problem with doing something like the following is you get a nasty flicker because you are drawing on the screen after OpenGL has flipped the buffers.
SwapBuffers(dc.m_ps.hdc);
dc.Rectangle(32, 32, 128, 128);
If it is possible a way of solving this problem would be to draw with the GDI straight onto the back buffer of the OpenGL device so that when the buffers are swapped you do not get that nasty flicker. Because of the information and other GDI graphics which are required to be added onto the view, the constant flicker makes it very hard to work with the software.
I am not too fussy on how to solve this problem, so any fast and reliable methods would be great.
Any help would be greatly appreciated!
Regards,
Lea Hayes
Yours Sincerely,
Lea Hayes
|
|
|
|
|
Try this:
1) Create memory DC compatible with window DC and pass it to OpenGL:
CDC memDC = CreateCompatibleDC(&dc);
CBitmap memBitmap = CreateCompatibleBitmap(&dc, width, height);
memDC.SelectObject(&memBitmap);
SwapBuffers(memDC.m_hDC);
2) Draw in memory DC:
memDC.Rectangle(32, 32, 128, 128);
3) BitBlt from memory DC to window DC:
dc.BitBlt(&memDC, ...);
(Sorry if it will not work, I just guess..)
|
|
|
|
|
Is it possible to have an array with multiple columns (not sure if this is the correct terminology)? I have never used an array before.
kinda like a list control.
CString strIP, CString strDNS, CString strName, CString strStatus
64.64.64.64, test.dns.org, JoeSmoe, online
63.63.63.63, woot.dns.org, noname, offline
|
|
|
|
|
I just thought I would add I do have a structure for this information.. can I put the structure in the array?
|
|
|
|
|
Yes, you can. This solution seems just fine to me.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Cool thanks.. I just implemented it and it works great.
|
|
|
|
|
I want to write a program similar to Windows Task Manager of Win2000. I've looked over the topic Process Status Helper[Win32] in MSDN but there's no function to retrieve the status of a process. How to know a process is running, blocked or ready?
|
|
|
|
|
|
The demo app is really cool. Would you like to give me a portion of source code which access to the information of consuming CPU of each process? I'm so thankful to you if you send it to me by email. I need it for my school study. By anyway, thanks for your support.
|
|
|
|
|
Sorry, I overlooked that there is no source code
Quoc Tran wrote:
Would you like to give me a portion of source code
It's not my article, try ask the author.
Pavel
Sonork 100.15206
|
|
|
|
|
newbie here, beware
in a properties page enviroment
i am trying to send a message from the main apps window to the view to update
a function
// the views messagemap
ON_COMMAND(ID_SAVEIT, OnSaveIT)
//
afx_msg void OnSaveIT();
//
void CBuilderView::OnSaveIT()
{
AfxMessageBox("Got a OnSaveIT in View");
}
// i set the m_Wnd int he main app
// on the views construct
// this is the call i am trying from the main app
void CBuilderApp::SaveIT()
{
::SendMessage(m_Wnd, ID_SAVEIT, 0, 0);
}
i don't get the MessageBox
any helps really appreciated
thanks
shotgun
|
|
|
|
|
shotgun wrote:
::SendMessage(m_Wnd, ID_SAVEIT, 0, 0);
::SendMessage(m_Wnd, WM_COMMAND,ID_SAVEIT, 0);
Pavel
Sonork 100.15206
|
|
|
|
|
you are a good person Pavel, thankyou
ps. i had to use HWND_BROADCAST, which means i better look into my pass of the hwnd, but thank you very much
shotgun
|
|
|
|
|
If you, like me think WM_COMMAND should be left to ui, then
ON_MESSAGE(UWM_SAVEIT,OnSaveIT)
is better.
make sure to use
#define UWM_SAVEIT (WM_USER + 1) // 1 -> any number
to avoid conflicts with the standard messages.
|
|
|
|
|
Hi,
I haven't got very much experience in writing multithreaded apps and would be glad if anyone could point out a good example. What I need to do is to create a worker thread (only one) that must be able to interact with the main GUI thread - i.e. it must send notifications to it when certain conditions are met in the worker thread. When the main thread receives these notifications it will update the UI. The main thread must then be able to cancel the execution of the worker thread and query it for its state at any time.
So has anyone got any experience in writing anything similar to this?
With best regards,
Daniel
Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
|
|
|
|
|
Check out MFC sample MTRECALC.
|
|
|
|
|
Just beware thread programming is ALLWAYS harder than it seems. You must plan carefully what methods and members are to be shared by the threads.
Tip: to avoid having a gui-thread, use an event to signal thread termination.
in main thread loop, use
res = ::WaitForMultipleObjects(2,{hEventExitThread,otherEvent});
if(res == 0)
exitthread;
then use [main thread]
::SetEvent(hEventExitThread);
::WaitForSingleObject(hThread);
to make sure that the worker thread exits gracefully.
|
|
|
|
|
Dear Buddies,
I always wondering that:
1) If I want to hide the "help" button in "Customize Toolbar" dialogbox, I should response the TBN_INITCUSTOMIZE notification and return TBNRF_HIDEHELP.
However, TBNRF_HIDEHELP is never defined when compiled.
2) If I want to display a "Chevron" in a Rebar control, I should create the Rebar control with RBBS_USECHEVRON style.
Howerve, RBBS_USECHEVRON is never defined either.
Anything wrong? Is that because the version of SDK? Has the newest version SDK defined these two constans?
Thanks!
|
|
|
|
|
Hi,
a MFC DLL include ADO classes, and were loaded by MFC EXE. the debug result is following, how to fix this.
By the way, the MFC DLL has passed the compiling.
e:\hydro system\task history\night\hydrosrv\decode.h(14) : error C2504: 'CRecordset' : base class undefined
Thank u.
Extreme programming. Do the No.1
|
|
|
|
|
I call ::PeekMessage(...) to check if there's a message waiting. If there's message I call AfxGetApp()->PumpMessage() to process the message. I read that if PumpMessage() returns FALSE if a WM_QUIT message was processed and I check this return value to clean up my application. But if I close my application PumpMessage() seems not to return. Any advice?
|
|
|
|
|
why not just wait on WM_QUIT(or DESTROY) of ur mainframe? i can't think about ur case which let u use it.
if have to, create a thread while exit for cleanup.
includeh10
|
|
|
|