|
What about stepping into DoModal() in the debugger to see why it's failing?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hehe, yes, I'm trying that, but I don't have yet the environment setup in my machine (the app needs several components to work) thus I could only debug it in a remote way; still, at the time, I don't have access to the server and I can update the program only with a ridiculous tool which uploads it via FTP...
Stupidity is an International Association - Enrique Jardiel Poncela
|
|
|
|
|
Fernando A. Gomez F. wrote: I don't have yet the environment setup in my machine (the app needs several components to work) thus I could only debug it in a remote way
I'd work on that part ... debugging-by-guessing sucks hehe.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
It's failing while calling CreateDlgIndirect, it seems it's throwing an exception. I'll post more details as I get them.
Stupidity is an International Association - Enrique Jardiel Poncela
|
|
|
|
|
It would not happen to be using a Rich Edit control in the dialog, or an ActiveX control, would it? The dialog aborts if any of its controls fails to create.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
That's what I was hoping to uncover. Based on his response, I'm guessing that's not the problem.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Nope, no rich edit or ActiveX, only common controls. I was wondering, could it be that the server had different versions of the MFC dll? Mmm... I'll try linking statically to see what happens...
Regards,
FG.
Stupidity is an International Association - Enrique Jardiel Poncela
|
|
|
|
|
Have you tried to set a break point in DoDataExchange to see if it reaches that method, and if it break in there?
AliR.
Visual C++ MVP
|
|
|
|
|
Yep, but it doesn't. Not even the OnInitDialog method.
I'm setting up the debugging environment to see where exactly is failing. Man, this will be one of those nights...
Stupidity is an International Association - Enrique Jardiel Poncela
|
|
|
|
|
What is the difference between Visual C++ 2008 free download version and Visual C++ 2008 paid version?
What is the price of the paid version? How to get the paid version?
|
|
|
|
|
Anthony Appleyard wrote: What is the difference between Visual C++ 2008 free download version and Visual C++ 2008 paid version?
One difference is the lack of MFC (and maybe ATL).
I think the price for MSDN Pro is $1,199.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Stephen Lowe wrote: but there is STL support.
Since STL is the C++ Standard Library that's quite natural.
Another Visual C++ Expression Edition missing feature is the resource editor.
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
|
|
|
|
|
I did notice that for the 2008 express edition they are emphasizing building of native win32 apps.
I recall using the 2005 express edition and it was really annoying as they basically set it up to, by default, disable native app projects, and you had to go through all these steps to re-enable them. As though everyone wants to have .NET force fed to them...
I think they must have gotten a lot of negative feedback or something, because if you go to the 2008 express download page, it specifically highlights native app creation
|
|
|
|
|
I have Visual C++ 2008, free download version. In my old Borland C++, an .exe project could be compiled in "static" mode or in "dynamic" mode. In dynamic mode, for running efficiency program code could be moved about at run time. This sometimes resulted in variables changing value unexpectedly, a nuisance which I cured by changing to static mode. Please what is the Visual C++ 2008 equivalent of those "static" and "dynamic" modes?
|
|
|
|
|
Are you asking about statically vs. dynamically linking with the MFC libraries?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
DavidCrow wrote: Are you asking about statically or dynamically linking with the MFC libraries?
I guess so from the Google result with the keywords "Borland static dynamic mode".
Maxwell Chen
|
|
|
|
|
Without even researching this, I'm just going to say your code is not going
to move and affect any variables at runtime when compiled with VC, unless
you write your code to do it.
This sounds like something from the pre protected mode processor days.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Today a question like
"regarding IUnknown and type safety..."
is missing.
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
modified on Thursday, February 21, 2008 11:42 AM
|
|
|
|
|
So now you're missing him I guess he ran out of easy questions and went away to find some harder ones: What is a vtordisp? Why can't you do multiple inheritence in MFC? How can you do synchronisation in pure C++ without relying on API calls, Would your laptop battery last longer or shorter on a trip to the moon at 0.8 of the speed of light and would it make any difference to the total number of clock cycles your code could run for. When he has all the answers to all the question in the whole of space-time then he will post an article telling us the ultimate formula for the universe. Just make sure you don't give him any wrong information along the way or it might lead to disaster
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
BTW probably the laptop battery will last longer, but anyway its is a small effect (it is a very short trip, 1.6 s).
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
|
|
|
|
|
Matthew Faithfull wrote: When he has all the answers to all the question in the whole of space-time then he will post an article telling us the ultimate formula for the universe.
Thats easy: 42
codito ergo sum
|
|
|
|
|
Shhh, don't tell him, that would spoil the surprise, but you're right of course for tea two is the answer and Wowbanger the infinitely prolonged had the question all along.
Nothing is exactly what it seems but everything with seems can be unpicked.
|
|
|
|
|
robo george is getting a software update. The bot will be up again soon I'm sure.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: robo george
Maxwell Chen
|
|
|
|