|
VCProgrammer wrote: But still I am not getting how to do it???
Well, other than the things you've already written there's not much to "get".
What doesn't work?
Does it compile and if it doesn't; what error messages do you get?
What does your #import statement look like exactly?
What does your statement that uses __uuidof() look like exactly?
Tip: the imported typelib will get a namespace of its own so you have to prefix the CLSID with the namespace unless you've written something like using namespace MyTypeLib; .
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
HRESULT hr;
IShellLink* pISL;
hr = CoCreateInstance("<what to="" specify="" here="">",
NULL,
CLSCTX_INPROC_SERVER,
"and here",
(void**) &pISL );
if ( SUCCEEDED ( hr ) )
{
}
else
{
}
</what>
my project name is
namespace QuoteQuad
interface _Demo
|
|
|
|
|
VCProgrammer wrote:
HRESULT hr;
IShellLink* pISL;
hr = CoCreateInstance( "",
NULL,
CLSCTX_INPROC_SERVER,
"and here",
(void**) &pISL );
......
my project name is
namespace QuoteQuad
interface _Demo
I'm making a qualified guess regarding the name of the GUID for the server, but based on the above I think that the call should look like this:
HRESULT hr;
QuoteQuad::_Demo* pDemo;
hr = CoCreateInstance( __uuidof( QuoteQuad::CLSID_QuoteQuad ),
NULL,
CLSCTX_INPROC_SERVER,
__uuidof( QuoteQuad::_Demo ),
(void**) &pDemo );
I don't understand why you're using IShellLink when you say that the interface you're trying to use is _Demo .
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
C:\Users\Neha\Desktop\project29_08\project29_08Dlg.cpp(178) : error C2039: 'CLSID_QuoteQuad' : is not a member of 'QuoteQuad'
C:\Users\Neha\Desktop\project29_08\project29_08Dlg.cpp(178) : error C2065: 'CLSID_QuoteQuad' : undeclared identifier
C:\Users\Neha\Desktop\project29_08\project29_08Dlg.cpp(182) : error C2144: syntax error : missing ')' before type 'void'
C:\Users\Neha\Desktop\project29_08\project29_08Dlg.cpp(182) : error C2064: term does not evaluate to a function
C:\Users\Neha\Desktop\project29_08\project29_08Dlg.cpp(182) : error C2059: syntax error : ')'
|
|
|
|
|
As I said: I'm making a qualified guess about the name of the CLSID for the server you're trying to create. Apparently I guessed wrong.
In your target directory you have a *.tlh file that is generated by the preprocessor from the typelib you imported that should be named QuoteQuad.tlh.
Open it! You'll find the correct names for the GUIDs there.
Even the IntelliSense should provide you with the members of the namespace after you've typed the name of the namespace followed by the scope operator, e.g QuoteQuad::
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
Hi all
I have found clipboard exe in WindowsXp from windows System32 directory.But i havn't found in Vista.So can any one tell me how can i fiend clipboard exe in vista..
|
|
|
|
|
Its clipbrd.exe in vista.
Sorry pals, the utility is removed from vista. See the link - http://www.winvistaclub.com/t72.html[^]. At home I'm using vista and in office its XP box and i thought I'm at home.
Really sorry for the inconvenience caused.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
modified on Friday, August 29, 2008 3:11 AM
|
|
|
|
|
Jijo raj wrote: Its clipbrd.exe in vista.
I thought it was the same in all previous versions of Windows.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
i know that but when i am going to start then message show No items match your search..
plz help me
|
|
|
|
|
MsmVc wrote: i know that but when i am going to start then message show No items match your search..
I'd be shocked if start menu search indexed the system32 folder. Have you tried to "Run" what Jijo suggested you?
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Yes i tried..
See simply i go in start menu and type clipbrd.exe.but it is not start..
|
|
|
|
|
Try Start Menu, Run, and type clipbrd32.exe
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
sorry i am geting same result when i type clipbrd32.exe..
|
|
|
|
|
try just clipbrd then
it seems that there is no clipboard viewer in vista, sorry
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal
|
|
|
|
|
It looks like there are some Features removed from Windows Vista[^]. Also, Jijo's modified reply to you has a link to a freeware clipboard viewing utility for Vista.
Most importantly, DON'T ask such questions here. This board is for programming questions only.
Many are stubborn in pursuit of the path they have chosen, few in pursuit of the goal - Friedrich Nietzsche
.·´¯`·->Rajesh<-·´¯`·.
[Microsoft MVP - Visual C++]
|
|
|
|
|
Hope you are searching in system32
|
|
|
|
|
when we select radio button then it shows dot which indicate select state
but i want when user click on radio button then radio button should fill with yellow color
how can i perform this
|
|
|
|
|
Better to draw your own button
|
|
|
|
|
to draw our own button we have to draw circle ?
there is no any other solution?
|
|
|
|
|
In my experience, if ur programming language is VC++ and u r using CButton u have to overide DrawItem . I wonder anyboy here to correct me if am wrong?
|
|
|
|
|
ani_ikram wrote: to draw our own button we have to draw circle ?
Of course. That's the purpose of being able to draw controls yourself
Is drawing circles a problem?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi, can somebody tell me how to create a plane passing through 3 points and how to project a point onto this plane.Please do help me out.Thnk You.
|
|
|
|
|
If u provide some more details like why u want this plane...it will be better...
|
|
|
|
|
Thnx for the reply.ok, ill explain it clearly.I want this plane as i have to project a set of points that are scattered all over the space.So i am required to project these points on to the plane, so that i get the 2d cordinates of all th points with respect to that plane.Plse do tell me how to do it.
|
|
|
|
|