|
Ever get the feeling you were talking to a wall?
L u n a t i c F r i n g e
|
|
|
|
|
I wonder when Chris is going to figure out that since he messed with the Soapbox, everyone has to come to the technical forums to play Whack An Idiot.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
We wouldn't need to if the idiots stayed in their boxes.
It's time for a new signature.
|
|
|
|
|
L u n a t i c F r i n g e
|
|
|
|
|
How to programmingly export and import IE's favorates?It's better ,if you give out C++ code.
I am not a genius, but shed more sweat!
|
|
|
|
|
Aric Green wrote: It's better ,if you give out C++ code.
Really? Guess you'd better sweat some more.
You measure democracy by the freedom it gives its dissidents, not the freedom it gives its assimilated conformists.
|
|
|
|
|
I found a way to do that....haha!!!
I am not a genius, but shed more sweat!
|
|
|
|
|
And don't shed more.
I am not a genius, but shed more sweat!
|
|
|
|
|
what is meant by band number in get_colwidth property of MSHFlexGrid?
|
|
|
|
|
See here[^] for the MSDN documentation.
It's time for a new signature.
|
|
|
|
|
I am using modeless dialog box in my application . But When I minimize Main Application the modeless Dialog Box also minimize . It is also not showing in the task bar to switch to modeless dialog . How to avoid the dialogbox to minimize with the main Application .also how to show it in taskbar
Rajesh
|
|
|
|
|
What is the parent of your dialog? The main window of your app? Try to make the desktop the parent and make sure your dialog has the "app window" style to make it appear on the taskbar.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
Main Window Not destop. I could not find to change it to Desktop
Rajesh
|
|
|
|
|
How did you create your modeless dialog? Show code please.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Sometimes you just have to hate coding to do it well. <
|
|
|
|
|
As Code-o-mat suggested, you need to set the desktop as the parent for the Modeless dialog.
You have the parent on create itself.
CWnd* pParentWnd = GetDesktopWindow();
pMyModeless->Create( IDD_DIALOG1, pParentWnd );
Величие не Бога может быть недооценена.
|
|
|
|
|
Here is an example:
class AA
{
public:
int GetTest(int i) {return 1;}
};
class BB:public AA
{
public:
int GetTest(char*ppp) {return 1;}
void MyTest()
{
GetTest(3);
}
};
I hope function GetTest(int) of base-class AA still can be used in sub-class BB as described in error line above.
any idea or it is impossible?
|
|
|
|
|
includeh10 wrote:
GetTest(3);//error line
Change to:
AA::GetTest(3);
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
[My articles]
|
|
|
|
|
Try the following:
AA::GetTest(3);
It's time for a new signature.
|
|
|
|
|
|
includeh10 wrote: not what I need
Well, thank you for such a detailed description of your problem!
Exactly how do you expect people to help you solve your problems without explaining what those problems are in detail. We cannot read your mind or guess at the results of your compilations or tests from thousands of miles distance.
It's time for a new signature.
|
|
|
|
|
includeh10 wrote: not what I need
Then what do you need? The previous answer is correct, and does answer your question. A virtual function is overridden, and the only way to access a base class implementation is to explicitly specify the base class as the other user has indicated.
|
|
|
|
|
in class BB add: using A::GetTest;
|
|
|
|
|
I'm trying to run some sample code from the Microsoft site that demonstrates Unicode normalization:
http://msdn.microsoft.com/en-us/library/dd319092(v=VS.85).aspx[^]
It compiles, but I get two link errors:
Linking...
UnicodeTest.obj : error LNK2019: unresolved external symbol __imp__NormalizeString@20 referenced in function "void __cdecl TryNormalization(enum _NORM_FORM,wchar_t *)" (?TryNormalization@@YAXW4_NORM_FORM@@PA_W@Z)
UnicodeTest.obj : error LNK2019: unresolved external symbol __imp__IsNormalizedString@12 referenced in function "void __cdecl TryNormalization(enum _NORM_FORM,wchar_t *)" (?TryNormalization@@YAXW4_NORM_FORM@@PA_W@Z)
Debug\UnicodeTest.exe : fatal error LNK1120: 2 unresolved externals
The DLL with these functions is on my system here:
C:\Windows\System32\normaliz.dll
So why am I getting the link errors? If I try to define the stuff it says is not defined, I then get an error that it's already defined.
|
|
|
|
|
I never used NLS, but expect NLS to have some lib, mostly Normaliz.lib.
U have linking error, so try after including Normaliz.lib for linking.
Величие не Бога может быть недооценена.
|
|
|
|
|
i'm stuck with this problem
well i made this header "shapes.h"
#ifndef SHAPES_H
#define SHAPES_H
#define maxC 80
#define maxV 25
#define maxP 150
struct circles
{
int count;
float radius[maxC];
b2Vec2 center[maxC];
};
struct polygon
{
int count;
int vertex_count[maxV];
b2Vec2 vertex[maxP][maxV];
};
circles cl;
polygon pg;
#endif
sry for lame data structure but had to take like that
i've included it in my main.cpp
and thr's another header "simulate.h"
that needs to be included in "main.cpp"
now the problem is i have to include "shapes.h" in "simulate.h" too.. but when i do that i get error
1>simulate.obj : error LNK2005: "struct polygon pg" (?pg@@3Upolygon@@A) already defined in main.obj
1>simulate.obj : error LNK2005: "struct circles cl" (?cl@@3Ucircles@@A) already defined in main.obj
1>editor/Debug\editor.exe : fatal error LNK1169: one or more multiply defined symbols found
i tried removing "shapes.h" from "main.cpp" with "simulate.h" included in "main.cpp" and "shapes.h" included in "simulate.h" but still get the same error.
please help... i'm using Visual Studio 2008
modified on Friday, April 2, 2010 3:57 PM
|
|
|
|