|
Try using Dependency Walker to find out if there is any missing dependency.
Write the log or have messagebox to findout which function it is failing.
--
"Programming is an art that fights back!"
|
|
|
|
|
Hi,
the dependency walker has a question mark besides the following dlls:
GPSVC.DLL
IESHIMS.DLL
Would I try to locate these on my machine and then keep them in same folder as executable?
|
|
|
|
|
Better you can try installing VC++ 2008 Runtime in the target maching and if it fails still, you can try other things like copying DLL etc..
You may get some useful information by checking the system event log as it may have details of what error happened when application failed.
--
"Programming is an art that fights back!"
|
|
|
|
|
Thanks. I thought that by setting it to statically link mfc that all the necessary dll's would be imbedded into the binary, thus avoiding having to install the redistributable. Am I wrong?
|
|
|
|
|
Generally if we link statically to mfc, runtime is not needed to install, but I had doubt it may have the missing component to run.
Please check the system event log once to see if there is any useful info.
--
"Programming is an art that fights back!"
|
|
|
|
|
b-rad311 wrote: I thought that by setting it to statically link mfc that all the necessary dll's would be imbedded into the binary
That wouldn't include other dll's you might be using explicitly.
|
|
|
|
|
b-rad311 wrote: the dependency walker has a question mark besides the following dlls:
GPSVC.DLL
IESHIMS.DLL
And where do these dlls come from - are they installed on the target systems? I suspect they are not part of MFC.
It's time for a new signature.
|
|
|
|
|
Put in some tracing[^] and see where your application fails on 'other' machines.
b-rad311 wrote: P.S. The .net framework is the same version for my machine as for the others that I'd like it to run on, so that doesn't seem to be the problem.
An MFC program doesn't depend on .NET framework.
Workout progress:
Current arm size: 14.4in
Desired arm size: 18in
Next Target: 15.4in by Dec 2010
Current training method: HIT
|
|
|
|
|
b-rad311 wrote: No error messages or anything. You briefly get the hour glass and then nothing.
make sure they have a matching run-time release for VS2008. A run-time that is older than yours will offer no error message, only exit. get the latest runtime for your other machines and hopefully all will be well.
_________________________
John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others."
Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....
|
|
|
|
|
Hi, I have an application that I am skinning. The trouble is that it has toolbars that are docked side by side (the side by side article helped with that). The trouble is that there is a divider placed between them. That divider is unfortunately a system color, and I want to either remove it or change that color (cant change system color).
I can't seem to figure out who is drawing that divider to intercept and cause my own cusomtized behavior. Custom drawing of a toolbar doesnt via notifications doesnt seem to cover that divider.
Any help appreciated, thanks in advance.
|
|
|
|
|
Are you talking about the "grippers" to let user drag toolbars around ?
The style CBRS_GRIPPER can be enable/disabled when creating the toolbars.
Watched code never compiles.
|
|
|
|
|
No. I have already removed the grippers. There is a vertical line drawn on either side of a toolbar. It unfortunately is the same as button face color, so most would not notice it except in my skinning, I don't use that color. I wish i could attach a picture...
|
|
|
|
|
struct foo
{
int i;
};
foo f = {0};
|
|
|
|
|
what about initialize the struct ?
Watched code never compiles.
|
|
|
|
|
ant-damage wrote: foo f = {0}; // <- What does this mean?
creating an instance of structure foo(in the name of "f") with i's value zero.
--
"Programming is an art that fights back!"
|
|
|
|
|
And if we have
struct point
{
float x;
float y;
float z;
};
struct face
{
point a;
point b;
point c;
};
face f = {0};
|
|
|
|
|
ant-damage wrote: struct face{ point a; point b; point c;};face f = {0}; // <- This will initialize to zero the struct, and its elements?
Yes, (I guess point is of type similar to CPoint containing x & y), above code will initialize x & y values of a, b & c to zeroes.
--
"Programming is an art that fights back!"
|
|
|
|
|
That is exactly what I wanted to know. Thanks.
|
|
|
|
|
You are welcome!!
BTW: You can have constructors for initializing structures.
--
"Programming is an art that fights back!"
|
|
|
|
|
In Visual Studio this will initialize the structure to all zeros similar to ZeroMemory(&f, sizof(struct foo));
|
|
|
|
|
... the code of ... = {0}; may be much faster
(than the code of ZeroMemory(..) )
virtual void BeHappy() = 0;
|
|
|
|
|
My project uses statically linked MFC (using VS 2005), and whenever MFC displays a message box (usually due to a DDV_* call), it is empty. Is there a way to fix this (except for not linking MFC statically, which is right now not an option)?
|
|
|
|
|
I want to create combobox having my own bitmap button arrow image and draw color on every item and also want to draw the border for combobox.
I am thinking to do with OWNERDRAW but I am not getting, can you please suggest any idea to do so.
Thanks
|
|
|
|
|
Did you set the style of ComboBox as CBS_OWNERDRAWVARIABLE?
|
|
|
|
|
Try To create a clase Derived from the BAse CComboBox Class and define ur own objects into ur new Class
"The Ultimate Limit Is Only Your Imagination."
|
|
|
|