|
I use VS2005.
But the problem is that,when I debug a program to some codes,VS usually tell me that there is no source code.Why? The .h and .cpp files are all included.
Thanks.
GOOD LUCK
|
|
|
|
|
Are you debugging this program from within a VS project? If so, then are you sure the code you're trying to look at is available? Like, sometimes the debugger gets into Windows DLL code that don't have anything to do with the code you wrote... If not, then I believe there is a way to import CPP/H files into it, but I don't know how.
Windows Calculator told me I will die at 28.
|
|
|
|
|
In fact,all the functions written by my self.
And if i turn on the VS setting to enable difference with source codes,i could debug into the function.
But I don't know why .
Thanks.
Good weekends.
|
|
|
|
|
You should describe the problem more clearly. What is the exact error message (if any) and in which context does it appear ?
|
|
|
|
|
Hello, my fellow programmers!
I'm trying to make a (simple) game using the Windows API. There's no animation, and probably won't be any time in the future, so the only time the game screen (which is stored in its own control) needs to be updated is right after user input.
I got this working right by using InvalidateRect(hwnd, NULL, FALSE); after handling WM_KEYDOWN, but this causes a bit of flicker... I thought, "isn't there a vsync() style function?", but then, if the flicker is as noticeable as it is, then that means it's taking too much time to draw the game, which isn't good.
I thought of using dirty rectangles (easy task since the game only consists of 32x32 tiles), but would that completely remove the flicker? Even on slower machines?
Thanks in advance!
Windows Calculator told me I will die at 28.
|
|
|
|
|
What do you want to do? do you want to send wm_paint?
|
|
|
|
|
|
Lord Kixdemp wrote: but do you live in these forums
Not exactly.;)
|
|
|
|
|
Can you share the solution? It may help at least 4 or 5 users that asked about flickering in the last days.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
|
|
|
|
|
Do you really need to invalidate the entire client area?
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.
|
|
|
|
|
|
Really you work too much for being a Lord.
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.
|
|
|
|
|
Yeah, day and night don't exist for me anymore...
while (Leo->IsAlive()
{
Leo->WakeUp();
Laptop->ResumefromHibernate();
Laptop->m_aMessages = Email->Check();
Laptop->Hibernate();
Leo->Exercise(30);
Laptop->ResumefromHibernate();
Laptop->OpenEnvironment();
while (Leo->m_pBody->m_pEyes[0]->CanStayOpen() &&
Leo->m_pBody->m_pEyes[1]->CanStayOpen())
{
Leo->Code(Laptop);
}
Leo->GoToSleep();
}
Pretty sad, no?
Windows Calculator told me I will die at 28.
|
|
|
|
|
Uhm...
Lord Kixdemp wrote: Leo->Exercise(30);
Is this time subtracted to coding?
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.
|
|
|
|
|
Yep. I spent my time coding, sleeping, and 30 minutes of exercise... if I'm not feeling lazy.;)
Windows Calculator told me I will die at 28.
|
|
|
|
|
I have created an array string as CString* message. In my dialog the is a edit box where the user can type text,first problem is when enter is pressed the dialog box closes. What should I need to do to avoid that problem and on pressing enter key cursor should go to new line. The second problem is : On the edit box i have created the control variable. I use variable.GetWindowText() to fetch the text typed in the edit box. when i compile my program The error is displayed like ->
'void __thiscall CWnd::GetWindowTextA(class CString &) const' : cannot convert parameter 1 from 'class CString *' to 'class CString &' How to avoid this problem?
|
|
|
|
|
Why dont use of CString? and you can set Want Return to ture for edit control.
|
|
|
|
|
1) See the FAQ[^]. You should also right-click on the control and set the property "Want return" to true (or something like that, don't remember exactly what it was).
2) Why do you pass a pointer to a CSTring object when the function accepts a reference ? The error message is pretty clear.
So, just pass the object and get rid of the pointer.
|
|
|
|
|
Hi,
I am using ISAPI Filter in MFC. i can get client request in the OnPreprocHeaders().i want to display a text message like in the tag
Welcome to ISAPI Web World
how to do it in the OnSendRawData() method.
awaiting for reply
Regards
Jothi.G
|
|
|
|
|
can anybody tell me how to convert a jpg image to a 24 bit bmp image
thanks in advance
|
|
|
|
|
|
JPEG image is compressed file format. You need to decompress it first and then use it.
Look here[^] for compression and decompression algorithms.
Regards,
Paresh.
|
|
|
|
|
If you are using GDI+, it is easy. Load the image using GDI+, and save as "JPEG" with the compression required.
GDI+ supports BMP, PNG, TIF, JPG, GIF. Make sure you initialize GDI+ first and use the encoders. The following MSDN doc shows how to load BMP and save to PNG. With minor changes, your can save to JPG
http://msdn2.microsoft.com/en-us/library/ms533837.aspx
|
|
|
|
|
When i insert into a DBGrid Ctl to a dialog , and open attribute page to set some items,then click confirm , then the VC2005 flush and give a dialog to send error message to Microsoft! why like this ???
What Grid Control can i use in VC2005
i love c++
|
|
|
|
|