|
|
More fish-related user names You're killing me man!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: fish-related user names
How the heck did you know that? I had to Google it!
|
|
|
|
|
LOL I live in CA and I'm into deep sea fishing. There's lots of fishing products with pesca___ in the name.
And there's lots of Mexicans Latinos here (in CA) as well - I live with one in fact (Latina, not Latino).
Buena suerte, amigo!
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Yes, lots of good fish to catch in SoCal in the Summer, so close to Mexico... Atleast the fish that make it past the Mexican Purse Seiners...
|
|
|
|
|
Doh, I did not search for the single word! Thanks.
I was so elated to see those function calls, but alas the IShellFolderView interface is really deprecated and its suggested replacement (IFolderView/IFolderView2) does not have the functionality in question.
I can create a IFolderView object using both SHCreateShellFolderView and deprecated SHCreateShellFolderViewEx, but both return the IFolderView, not IShellFolderView. I do not see any references to a function that will instantiate that interface, only reference is:
"IShellFolderView is supported by the IShellView object that is returned from SHCreateShellFolderViewEx."
What is supported by???? It does not have the same member functions...
|
|
|
|
|
What is supported by???? It does not have the same member functions...
That means you can take your IShellView object, and query for an alternate interface of IShellFolderView.
This is without looking stuff up, and is no way valid code, but will at least point you in the right direction, I hope!
IShellView pShellView = SHCreateShellFolderViewEx (blah);
IShellFolderView *pSFolderView;
hr = pShellView->QueryInterface (IID_IShellFolderView, ..., (void **) &pSFolderView);
pShellView->Release ();
use pSFolderView...
pSFolderView->Release ();
Also, no error checking!
Good luck,
Iain.
|
|
|
|
|
Thanks Iain,
It's COM nomenclature. Now I know why I avoid COM at all costs. I flew with your post from email notification which did not show the example, so I hammered it out myself, but my platform SDK does not have IID_IShellFolderView defined (ShlObj.h 4/4/2005). As this is a deprecated interface, I tried the recommended interface (IFolderView) with structural success (It compiles and runs), but it unfortunately is not getting the information I need.
It has no Set... and the GetAutoArrange() always returns false so it is not reflecting the desktop value as I had hoped.
Thanks again for the interface language clarification.
Robert Clark (no e)
|
|
|
|
|
I want to try to get my boss to upgrade to the newer visual studio 2005. We have been using visual c++ 6.0. What are the major benefits? Also what are the differences between the standard and professional visual studio?
How hard would it be to switch existing VC++ 6.0 projects to VC++ 2005?
Edit: I should add that I have only programmed in VC++ 6.0. I have never programmed with the .net framework.
|
|
|
|
|
acerunner316 wrote: What are the major benefits? Also what are the differences between the standard and professional visual studio?
Have you looked through Microsoft's site at all?
acerunner316 wrote: How hard would it be to switch existing VC++ 6.0 projects to VC++ 2005?
That all depends on how standard-compliant your code is.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
yes but as far as i can tell, the only difference between standard and pro is the sql server. I don't see how it justifies the huge price difference, so I thought there must be more.
I am relatively new to windows programming, and I'm basically learning on my own from books and the web. Sorry if i'm asking very noobish questions. I'm pretty sure a lot of the features of the newer versions are too advanced for me anyway, so I wont be using it. The reason I want to upgrade is because some of the SDK's i want to use are for .NET.
|
|
|
|
|
acerunner316 wrote: some of the SDK's i want to use are for .NET.
That's possibly one of the biggest reasons to upgrade - if you intend to use anything .NET.
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
acerunner316 wrote: ...the only difference between standard and pro is the sql server.
Check out the differences between SQL Server Express Edition and SQL Server Developer (Enterprise) Edition. There are a bunch.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
|
Resolved, Thanks.
What are issues with these classes:
A.h
class A
{
class B
{
}
B m_b;
B* SomeFunc();
}
A.cpp
...
B* A::SomeFunc()
{
return &m_b;
}
...
-- modified at 13:00 Tuesday 14th August, 2007
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Hamed Mosavi wrote: What are issues with these classes:
Issues such as: you don't end their declarations with semicolons?
|
|
|
|
|
No, thanks.
The problem resolved. I simplified a much more complex class to ask for help here, by doing so, I found the real problem that has nothing to do with this.
Anyway, thanks for your effort. A 5 is all I can do.
Thank you.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Hamed Mosavi wrote: What are issues with these classes:
Missing semi-colons, non-descriptive class names, missing scope resolution operator, ...
class A
{
class B
{
};
B m_b;
B* SomeFunc();
};
A::B* A::SomeFunc()
{
return &m_b;
}
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: Missing semi-colons, non-descriptive class names, missing scope resolution operator, ...
I just simplified the class.
Anyway, I found my problem, which does not depend to this demo sample. Thanks.
// "Life is very short and is very fragile also." Yanni while (I'm_alive) { cout<<"I love programming."; }
|
|
|
|
|
Hamed Mosavi wrote: Anyway, I found my problem
Cool
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hi all, I've been struggling with the WinAPI CreateProcess for some time now. I've googled/yahoo'ed all over to find a simple explanation on how to use it and i havnt found anything close to how to use it properly. I know it takes 10 parameters in order to use so says MSDN. But im still not finding a way to use it for something simply. Any help and or suggestions on the matter is greatly appreciated. Thanx in advance!
|
|
|
|
|
So the "example" provided in the MSDN online documentation is not "simple" enough? or you can't get it to work? or....???
|
|
|
|
|
You can pass NULL, 0, and/or FALSE for all the parameters except
lpApplicationName, lpStartupInfo, and lpProcessInformation.
That should simplify it
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
|
dellthinker wrote: I've googled/yahoo'ed all over to find a simple explanation on how to use it and i havnt found anything close to how to use it properly.
Beyond words.
Why not show us what you've tried so we can see where you've gone astray?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|