|
Whoa, Whoa, Whoa, calm down buddy,
I'm not familiar with your level of experience. If the program runs fine with out the break point, then the DLL files should be fine. Any other information you can give us?
I win because I have the most fun in life...
|
|
|
|
|
I used to have this exact same problem with VC6. Sometimes the breakpoint would hit, sometimes not. But more often than not it would appear the code had an infinite loop, even though it did not. I never did solve the problem and later started using VC8. I have no debugging problems now.
|
|
|
|
|
Stab in the dark...maybe an IntelliSense issue...
Try
1) Close Visual Studio.
2) In your solution folder, rename "solutionname.ncb" to "solutionname_bak.ncb" where solutionname
is the name of the solution containg the project you are debugging.
3) Open the solution
4) Rebuild the project
5) Try to debug the project again
|
|
|
|
|
Hi all,
I need to know if a modeless dialog is opened and,
if this is the case, close it.
How can i do that ?
Thanx in advance,
Desmo16.
|
|
|
|
|
Look up IsWindow() and IsWindowVisible() .
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
How I can use broadcast for communicate several IP address with me. Helm plz
|
|
|
|
|
|
thanks for your help, it was more useful. But if you can help me about what bookstore i include for do that.
|
|
|
|
|
hello,
how to find window that contains particular string in its title?
for example if there is running two notepad applications "Untitled1 - Notepad" and "2Untitled - Notepad" how to get each app HWND?
thank you in advance
|
|
|
|
|
Use FindWindow()
You may be right I may be crazy -- Billy Joel --
Within you lies the power for good, use it!!!
|
|
|
|
|
You can use of
HWND hWnd = ::FindWindow("Notepad", NULL);
or CWnd *pWnd = ::FindWindow("Notepad",NULL);
|
|
|
|
|
Can anybody please tell me why the following code runtime errors at ar.close()?
CFile SaveColours;
SaveColours.Open("Colours.def",CFile::modeWrite);
CArchive ar(&SaveColours,CArchive::store);
int i=0;
while (i++<=20)
ar << i;
ar.Close();// <-----Runtime error as invalid file handle
SaveColours.Close();
Any references much appreciated.
|
|
|
|
|
Have you run this under the debugger? That's usually a good start. You can step into the CArchive::Close function and find out why it trips up.
You should also check that the Open for SaveColours worked properly.
(You might want to use CFile::modeCreate | CFile::modeWrite instead of just CFile::modeWrite, as well).
Chances are that because CArchive uses a buffer (around 4K) it isn't actually doing any I/O until you call Close, at which point it flushes (or tries to) to file.
Steve S
Developer for hire
|
|
|
|
|
Are you missing a share flag on your file open?
CFile SaveColours;
SaveColours.Open("Colours.def",CFile::modeWrite | CFile::shareDenyWrite);
CArchive ar(&SaveColours,CArchive::store);
int i=0;
while (i++<=20)
ar << i;
ar.Close();
SaveColours.Close();
|
|
|
|
|
Thanks guys,
It was the debugger that gave me the file handle was missing, from within filecore.cpp, that sent me on the goose chase.
Anyway new it would be something simple "CFile::modeCreate" was the solution.
Much appreciated.
Colin
|
|
|
|
|
Yup. No substitute for looking at what's actually happening, rather than what you think is happening. I'm in the middle of writing a COM application to act as a specialised search engine (for my MP3 jukebox project, which will probably be my first CP article if I ever get it finished...).
For instance, by searching for 'BLUE SKY' tracks, like G**gle it should find the track titles containing both 'BLUE' and 'SKY'. Couldn't understand why the AND logic wasn't filtering out results. Looked very carefully at 'AND' code, seemed OK.
Then I spotted that when I got the results for 'SKY', there were far more entries than I expected - because I'd forgotten to clear the temp results after getting 'BLUE'. Doh!
At least I can blame it on my age...
Steve S
Developer for hire
|
|
|
|
|
Hi,
i need Help with Thread and Multiple-Views
I made already a MDIChildWnd Class that stores different Views.
Now i will change my project into a MultiThreadMDI.
The steps to made this are :
* Create the Frame
* In his Creation, create the Thread and pass the Frame m_hWnd
* In the Thread-Creation, create the View
So far so good. Before i change all my project, does anyone know if i can
still use MultiView ?
If i create another view, i must be also in a thread ...
So why not all the Frame into a Thread?
Anyone an idea?
BIG THANKS
|
|
|
|
|
You want a child window on a different UI thread than its parent?
Are you sure?
|
|
|
|
|
That's not really a good design. There are a lot of messages sent between parent and child windows, as part of the normal windowing system. When messages are sent between threads, it will block the sending thread and cause a context switch to the receiver, which nullifies the point of making the app multi-threaded.
|
|
|
|
|
Thanks, you two!
So i put only the View into a thread.
If i want to have a Frame with MultiView, i need to create each time a Thread with a View.
The Thread stores anyway the parent-Frame.
For each View i store the pointer of the view (which i get from a public Get-method of the Thread) in an array in the Frame and if i want to change
the view i make only a SetActiveView(array[selected]) ?
Big thanks !
|
|
|
|
|
baerten wrote: User-Interface Thread [important]
I voted your posting a "1" for arrogance in the posting title. Why do you think your "[important]" post is any more important than all the other posts?
Apart from that little slip, it is an excellent post - the title (apart from "[important]" ) is descriptive, and the query describes your problem well.
I hope you received the help you were looking for.
|
|
|
|
|
Sorry, but i was blocked on this problem since 2 days. Some posts with a similar question weren't responsed. To be blocked some days at job isn't so good
|
|
|
|
|
No problem.
I hope you succeeded in the end.
|
|
|
|
|
Yes, but in a totally different way
I use UserInterfaceThreads as WorkerThreads who keeps alive till i destroy'em
Nice Weekend ...
|
|
|
|
|
First I'll apologize if this is the wrong forum, but I didn't see anything DirectX specific.
I'm making an .X file viewer. Using a rather helpful tutorial on CodeProject I've been able to play my animations, and even make transitions from one animation to the other nice and smooth. All of this using the Animation Controller. I would like to play a given animation in reverse. However, DirectX's animation controller doesn't give you any sort of interface to the animations frames.
I'm fairly new to .X files (although I've been reading a lot) so any help you guys can give will be greatly appreciated.
|
|
|
|