|
Richard MacCutchan wrote: I suspect that the issue is connected to the fact that your code was consuming the WM_PAINT message, so the system did not try to do anything connected with displaying your windows (including the message box).
I did, strangely, as soon as the main window popped up for my project, the window was blank (no controls, nothing on it), but when I go to re-size it and/or move it around, the controls appeared. But the message box did not, until you told me to press the ALT key.
Simple Thanks and Regards,
Brandon T. H.
Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst).
Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison
|
|
|
|
|
MB_APPLMODAL is used as the type flag combination
|
|
|
|
|
Hi All,
I am using 3rd party code in my application and I don't have libray file to link to my application. All I have a makefile and makefile.prg. Using these files is it possible to create .lib file? If yes, please guide me how to do this.
|
|
|
|
|
You should provide some more information. At least the name of the 3rd party code and the operating system you are using (makefile files are commonly used with Linux). The file extension .prg can be anything. It may be an input file for the makefile (reading its content may help).
If the code is Open Source, there should be some documentation on how to build a library (in the project documentation or by searching the web).
If it is not Open Source, you should contact the supplier of the code.
|
|
|
|
|
how to create an Un-sorted map in c++
|
|
|
|
|
Maybe a List [^] of pair s[^]?
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
|
|
Hi Guys,
I am looking for Full-Time Software Engineer for my client.
Working Location: Singapore, Ang Mo Kio
Working Hours: 8.30am to 5.30pm
Salary Range: Up to $3800
- Degree in Computer Engineering or Computer Science or relevant fields with at least 2 years experience
- Programmers who are experienced in C++/Java Programming, Object Oriented Programming (OOP), and knowledge in MFC and network communication is an advantage.
- Fresh graduates with interest in software development are welcome to apply
- Only Singaporeans and PRs need apply
Please send in your resume/CV to vincent@careerhub.com.sg and I will be contacting you shortly!
|
|
|
|
|
Hi Sir,
I am 2 years 4 months experienced person in OOPs Concepts, C++, VC++, MFC. But I am a diploma holder( 86.43 %).
|
|
|
|
|
My code was running with VS2010 but today (almost after 15 days) I tried to compile and getting error
Error 1 error MSB6006: "CL.exe" exited with code 1. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets 147
I think it not code related error, its with VS2010. Can you please help to solve this?
|
|
|
|
|
Do you have AV software disabled? Are you running VS2010 as administrator?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
My application must work on a remote computer with ports 500 and
4500 on UDP-protocol, but it doesn't work.
I tried to test these ports by this udp-server.
http://www.codeproject.com/Articles/11740/A-simple-UDP-time-server-and-client-for-beginners
Antivirus is switched off, Firewall too.
When I start udp-server as "timeserver 500" or as "timeserver 4500"
I get message: "Could not bind name to socket".
But with other ports it works. Why? (In the source code I do not
see any restrictions for port-numbers.)
On my local home computer - the same behavior!
Can anyone explain this?
|
|
|
|
|
|
|
|
std::list<SMyFrameData*> m_FrameList;
CCriticalSection m_FrameListLock;
...
CTempLock tempLock(&m_FrameListLock);
if (m_FrameList.size() == 0) return 0L;
pFrameData = m_FrameList.front();
m_FrameList.pop_front();
... Decoder the frame data
SMyFrameData* pNewFrame = new SMyFrameData();
pNewFrame->lpData = pBuf;
pNewFrame->iSize = iSize;
CTempLock (&(pProcess->m_FrameListLock));
pProcess->m_FrameList.push_back(pNewFrame);
SetEvent(pProcess->m_hFrameProcessEvent);
But now there is a error happen "erators and references can become invalid." in code, pFrameData = m_FrameList.front(); I just use the CCriticalSection to avoid the conflict, but why the error happen.
|
|
|
|
|
yu-jian wrote: iterators and references can become invalid. You are capturing a pointer to the first element in the list:
pFrameData = m_FrameList.front();
But later on you push an element into the list, so your pointer is no longer pointing to the first element in the list, and may therefore not be valid.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Some of the code in question:
std::list<SMyFrameData*> pFrameData;
There's no capturing of pointers here, pFrameData is a std::list.
Only deleting a list node invalidates an iterator to it. Having an iterator to the first node then adding to the head is not a problem, you just end up with an iterator to the second item in the list (the same is true for pointers to list items).
Steve
modified 13-Nov-12 12:10pm.
|
|
|
|
|
yes, I find that I copy wrong, now I changed it.
|
|
|
|
|
Stephen Hewitt wrote: Some of the code in question:
std::list<SMyFrameData*> pFrameData;
Sorry, where does that come in OP's question?
Text changed for test purposes.
One of these days I'm going to think of a really clever signature.
modified 14-Nov-12 8:24am.
|
|
|
|
|
The code you quoted contains that variable. You seen to be assuming it's a pointer.
Steve
|
|
|
|
|
Since the definition of that variable is not shown I assumed nothing.
[edit]
Testing the edit feature.
[/edit]
One of these days I'm going to think of a really clever signature.
modified 14-Nov-12 10:36am.
|
|
|
|
|
The definition is quoted in my post.
Steve
|
|
|
|
|
But not in OP's original, which is why I added a comment to him/her suggesting that there was something else that we are not being told.
One of these days I'm going to think of a really clever signature.
|
|
|
|