|
Open a Visual C++ IDE window. From Tools | Visual Studio Command Prompt to get the DOS-box.
Maxwell Chen
|
|
|
|
|
|
Dear all
I need to know whether printer support "Job Retention" (Job Storage) feature or not, ie whether printer can store the jobs so that they can be printer later by issuing a password to printer control panel. (Different options for job storage are "Hold and proof", "Private Job", "Quick copy" etc.
To know all these information I tried WMI in windows, various vc++ printer capabilities APIs without any luck.
Is there some way so that I can get all these information.
please help..
Regards
Shobhit Jain
|
|
|
|
|
Hi to ALL...
i have one doubt regarding to my project ...i have one compiled socket source code .In this source code are fully worked Windows XP...but in this code is not suitable for vista(not compiled)..
what is the problem for this ?
Whats the solution for that?
Is there any DLL corruption or not?If it is yes what kind of DLL add that problem ..?
....Please give your suggestion or any URL ...
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Please don't spam the whole site. Is your code in C++, or C# ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi thanks to your replay...As my code is C++..
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
rowdy_vc++ wrote: As my code is C++..
Then why did you post your question in the C# forum and the Vista forum as well? What's behind your stupid behavior? Are you having a problem reading or understanding?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
rowdy_vc++ wrote: Is there any DLL corruption or not?If it is yes what kind of DLL add that problem ..?
I guess in your case, most probably dll corruption does not induce compilation error.
what are all your compilation error, doesn't it gives hint to the problem?
|
|
|
|
|
Hi Friend Thanks to your Replay....Actually Mr .Rajukuma its not displaying any error ...the output of our project is one kind GUI.In Windows XP when i Clicked that application its worked ..At the same time In Vista i Clicked that application its suddenly terminated ...this is my problem!!!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
|
Thank u Very much Mr .RajKuma
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
|
Thanks to your replay..Actually Mr.Hamid the beauty is that is no error displayed ..when i am clicked the event ..that event was terminated..thats all!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
So I think you need to review your project for vista.
|
|
|
|
|
Hi hamid first its displaying that is Two DLL'S are missing
MSVCP71.dll not found.
MSVCR71.dll not found
then i was add that this DLL in vista ..then it k but the event was not firing!!
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
|
Actually Mr.Humid its one application on GUI part.In this GUI part was terminated at runtime..but its not appeare any error ..thats y i am very confuse
Please tell me how to solve this problem
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
Did you recompile your project on the Vista I had like your error previous ?
|
|
|
|
|
Hello everyone,
Which C++ rule do I break in the following code? Why there is compile error?
class Foo{
public:
Foo()
{
}
int foo1()
{
return 100;
}
const Foo getCurrent1()
{
return *this;
}
const Foo& getCurrent2()
{
return *this;
}
};
int main()
{
Foo f;
f.getCurrent1().foo1();
f.getCurrent2().foo1();
return 0;
}
thanks in advance,
George
|
|
|
|
|
int foo1() is not a const function so you can't call it on a const object or through a const reference. This will fix it:
int foo1() const
Steve
|
|
|
|
|
Thanks Steve, my question is answered.
regards,
George
|
|
|
|
|
http://www.codeproject.com/useritems/GINA_SPY.asp
|
|
|
|
|
Did you search on the codeproject?
|
|
|
|
|
Hello everyone,
I am learning Liskov substitution principle,
http://en.wikipedia.org/wiki/Liskov_substitution_principle
But the description is not common senses. Now I understand this principle to be, if we have some methods in base class, then we also need to implement the methods in derived class. My understanding correct? Anything else missing?
thanks in advance,
George
|
|
|
|
|
"In object-oriented programming, the Liskov substitution principle is a particular definition of subtype, which is based on the notion of substitutability; that is, if S is a subtype of T, then objects of type T in a program may be replaced with objects of type S without altering any of the desirable properties of that program".
"Let q(x) be a property provable about objects x of type T. Then q(y) should be true for objects y of type S where S is a subtype of T."
for example;
template <typename T>
class propertyQ
{
public:
static void QMethod1(T &objT)
{
objT.operate1();
}
static void QMethod2(T &objT)
{
objT.operate2();
}
};
class superTypeA
{
protected:
int m_iContext;
public:
superTypeA()
: m_iContext(0)
{
}
void operate1()
{
m_iContext = 1;
}
void operate2()
{
m_iContext = 2;
}
};
class subTypeA : public superTypeA
{
public:
void operate2()
{
m_iContext = 21;
}
};
class subTypeB : private superTypeA
{
public:
void operate2()
{
m_iContext = 21;
}
};
int main()
{
subTypeA objA;
subTypeB objB;
propertyQ <subTypeA>::QMethod1(objA);
propertyQ <subTypeB>::QMethod1(objB);
return 0;
}
class propertyQ is written based on the supertype class superTypeA. Here subtype, class SubTypeA, is subtitutable for supertype class, superTypeA, for the property, class propertyQ, without altering the program and is said to follow Liskov substitution principle; while subtype, class SubTypeB, uses private inheritance and cannot be substitutable for supertype, class superTypeA and is said to violate Liskov substitution principle.
George_George wrote: Now I understand this principle to be, if we have some methods in base class, then we also need to implement the methods in derived class. My understanding correct?
No, look at the above example, subtype, class subTypeA, overrides only method, void operate2(), while the method, void operate1() is inherited from superclass, class superTypeA.
here i think u misuderstood between, nominal subtype and structural subtype; in OOP, nominal subype is induced by inheritance while structural subtype is that eventhough u didnot inherit from base class, class superTypeA, if u r implementing all the functions in every class you are able to apply the property, class propertyQ.
George_George wrote: But the description is not common senses.
does my explaination makes sense.
|
|
|
|