|
For instance, they have different pages on MSDN Visual C++ Language Reference :
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
|
|
|
|
|
You have to admit that it isn't easy to find this information.
Not everyone knows that when you need the help of static_cast you need the c36yw7x9(VS.80).aspx page and for the dynamic_cast yoe need the cby9kycs(VS.80).aspx
codito ergo sum
|
|
|
|
|
It's called cryptographic help.
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
|
|
|
|
|
hi!
i have this particular code that is running correctly on XP but not in Vista due to elevation error. i'm a newbie on com and i just couldnt figure out how to to apply UAC elevation on calling the below code..
CoInitialize(NULL);
INetConnectionManager *pNetConnectionManager = NULL;
HRESULT hr = CoCreateInstance(CLSID_ConnectionManager,
NULL,
CLSCTX_LOCAL_SERVER | CLSCTX_NO_CODE_DOWNLOAD,
IID_INetConnectionManager,
reinterpret_cast<lpvoid *="">(&pNetConnectionManager)
);
Note: hr always return fail due to elevation error. it'll help me a lot to get some feedbacks on what i missed. thanks
about C++ and MFC
|
|
|
|
|
You don't get the failure code when you run the app under elevation? Also, I am a bit curious about this INetConnectionManager interface. What kind of component interface is this? It may have something to do with what this component does during initialization. Instantiating a component per se should not require elevation.
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
Hi !
I've to retrieve and change desktop items position in a C++ program.
I can't use MFC/ATL technology, I've to use COM API and simple Win32 API.
For the moment, I use the remote process memory operations to work, but it should not work in some circumstances.
I've heard it could be done by using the Shell API, by querying a IFolderView/IShellView interface from the desktop namespace.
I tried it from SHGetDesktopFolder to get the IShellFolder interface, but I can't go further.
When I try to query the IShellView interface, I get the error "Not Implemented".
Could you tell me how to do or link me some tutorials about Desktop Shell programming.
In brief, I've to use C++ "pure" COM Shell Programming to get and change desktop items position, like if the user was dragging them.
Thanks for answers.
Tom
|
|
|
|
|
Good morning (in this side of the world),
Can a copy constructor be used by a method inside the object that wants to be copied??
class Cobj{
...
Cobj(const Cobj &);
void MyFunc();
};
void Cobj::MyFunc()
{
Cobj NewObj(????) ;
}
|
|
|
|
|
piul wrote: (in this side of the world),
piul wrote: Can a copy constructor be used by a method inside the object that wants to be copied??
Yes.
piul wrote: void Cobj::MyFunc()
{
//Can I use the copy constructor here to make a copy of this object???
Cobj NewObj(????) ;
// What do you put in the parameters?? the pointer 'this' can't be used because it's a pointer
// not a 'const Cobj &'
}
the parameter should be *this (i.e. Cobj NewObj(*this); ) you can use *this whenever a reference to this object is needed.
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
|
|
|
|
|
Of course!! ... oh man... my brain must be in the other side of the world...
Thanks!!
|
|
|
|
|
Hi I am trying to enable the maximixe item in system menu.
Here is the code what I am trying.
CMenu *pSystemMenu = m_pMainWnd->GetSystemMenu(false);
if( pSystemMenu != NULL )
{
pSystemMenu->EnableMenuItem(SC_MAXIMIZE,MF_ENABLED);
}
But It i not getting enabled.
Should I havwe to do anyting more?
With Reagards
Vikas
|
|
|
|
|
Try this:
CWnd *pWnd = AfxGetApp()->m_pMainWnd;
if( pWnd->GetStyle() & WS_MAXIMIZEBOX )
pWnd->ModifyStyle( WS_MAXIMIZEBOX, 0 );
else
pWnd->ModifyStyle( 0, WS_MAXIMIZEBOX );
pWnd->RedrawWindow(NULL, NULL, RDW_FRAME | RDW_INVALIDATE | RDW_UPDATENOW );
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
So I how do I Resize all the controls in my mainWindow to be proportionate with the size of the mainWindow?
With Reagards
Vikas
|
|
|
|
|
Here are a few options:
- Write the code yourself
- Google for a solution
- Post what you have already done here and indicate what you are having trouble with
And while you're at it, saying "please" and "thank you" is probably a good idea!
--
gleat
http://blogorama.nerdworks.in[ ^]
-- Number Two's eyes narrowed and became what are known in the Shouting and Killing People trade as cold slits, the idea presumably being to give your opponent the impression that you have lost your glasses or are having difficulty keeping awake. Why this is frightening is an, as yet, unresolved problem. -- HHGTG
|
|
|
|
|
Okies Dude! Thanx!
With Reagards
Vikas
|
|
|
|
|
For real time application (Back End Exe and no GUI) which require interaction with Oracle, mathematical computations and use of multithreading also, which application will give better performance (exe executions time and memory management) VC++ / C#? And why?
xyz
|
|
|
|
|
The one you know better.
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
|
|
|
|
|
definatly VC++! and i also agree with guy who answer before me ! i.e. the langauge you know better
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
If you have to ask this question then I suggest you get someone else to develop the application if you are concerned about performance issues.
led mike
|
|
|
|
|
I'm going with C++ all the way, but that's my opinion.
If C# was the answer you were looking for, then ask the same question on the C# board
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
That would depend on many things including:
- Who you ask.
- What you're doing.
- Which one you know best.
Steve
|
|
|
|
|
hi
i dont know wat is mean by COM in VC++? so please tell me procedure for study the COM project?
*****THANKS N ADVANCE****
Mathen.K
(I WILL TRY MY LEVEL BEST )
|
|
|
|
|
See the great wikipedia: COM[^]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br />
Peter Weyzen<br />
Staff Engineer<br />
<a href="http://www.soonr.com">SoonR Inc -- PC Power delivered to your phone</a>
|
|
|
|
|
|
Hello All
I am Developing ATL Project in which i have added ATL Dialog.
Now on this Dialog i want to add ShockwaveFlash Activex Control.
I am able to add this control but Problem is that i can not add Variable to this Control.
So is there anybody who can solve my problem?
Any help will be appriciated
Thanks i advance
Manish Patel.
B.E. - Information Technology.
|
|
|
|
|
Hi everyone,
I am doing concatination in my ActiveX control project.and i am returning that to my project back that string value.here i want to divide that whole concatinated string into different string like memid,memnane like this.so how can i do this. in VB we use split function but in VC++ by what method this can be done.Please Help me.
REPLY ME SOON..
THANKS AND REGARDS,
savitri.
|
|
|
|