|
I am trying to use SHGetFolderLocation and keep getting
error C2065: 'SHGetFolderLocation' : undeclared identifier
I have tried linking shell32.lib and have the header #include <shlobj.h>
but I am doing something wrong.
I am using VC++6.0 sp5 Win XP, Thanks
I have been coding all morning, I am going to post this question and take a break hopefully someone can help. Hopefully I just need some fresh eyes. Thanks.
Later, JoeSox www.joeswammi.com Killing In The Name[^]
|
|
|
|
|
Try #define WINVER 0x0500 in stdafx.h
SHGetFolderLocation needs shell32.dll version 5.0, and needs Win ME or 2K, or newer, to run...
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
Hi there I import a Activex Control but when i try to compile it the debugger gives an error which is "Unhandled exception at 0x5046b2c4 in FirstChart.exe: 0xC0000005: Access violation reading location 0x5046b2c4."
What is the problem???
|
|
|
|
|
Hello
I have a CRichEditView based MDI application.
I would like to know how to access the GetRichEditCtrl() and its functions (such as ReplaceSel) when I'm in another class such as MainFrm
What I want to do, in short:
A non-modal Dialog box (using the Create and ShowWindow functions) to be accessible by both classes MainFrm and CHTMLEditorView (my rich edit view class)
Thanks a lot
|
|
|
|
|
>I would like to know how to access the GetRichEditCtrl() and its functions
>(such as ReplaceSel) when I'm in another class such as MainFrm
Following three statements give you your view from anywhere...
CMDIFrameWnd *pFrame = (CMDIFrameWnd *)AfxGetApp()->m_pMainWnd;
CMDIChildWnd *pChild = (CMDIChildWnd *) pFrame->GetActiveFrame();
CRichEditView *pView = (CRichEditView *) pChild->GetActiveView();
Obviously if you are calling from MDI you can use
CMDIChildWnd *pChild = (CMDIChildWnd *) GetActiveFrame();
CRichEditView *pView = (CRichEditView *) pChild->GetActiveView();
or simply
CRichEditView *pWnd = (CRichEditView *)MDIGetActive()->GetActiveView();
|
|
|
|
|
Hello
I would like to know who to add a line counter to the project. You know those gray bar to the left with line numbers which we can find in almost all those HTML editors.
Thanks for your help
|
|
|
|
|
Do you mean something to count the number of lines of code in your project, or a component to count the number of lines in some sort of edit control that is inside your application?
Dave
|
|
|
|
|
I am currently downloading a file from the web and checking info from it.
CStdioFile *remotefile;
CInternetSession mysession;
remotefile = mysession.OpenURL
(csUrl,1,INTERNET_FLAG_TRANSFER_BINARY|INTERNET_FLAG_RELOAD);
if(!remotefile)
return 0;
My question is can i write to the file that i just opened and save it back on the web server.
If this doesn't work is there another method if i want to write to a file over the web?
Scott
|
|
|
|
|
I have used CFtpConnection::PutFile(..) fn for that. But might also look a t CInternetFile::Write(..)
Art
|
|
|
|
|
I'm doing some bencmarks on low-level high-priority threads, and I'd like to see how they do when some other process is hogging a large percenbtage of CPU resources - 80% or 90%.
Does anyone know of a utility that will suck CPU time through a straw?
Thx
|
|
|
|
|
while (1);
-c
When history comes, it always takes you by surprise.
|
|
|
|
|
search for cpustres,exe, it's installed with Visual Studio.
It does exactly what you want.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
|
My question is:
Can I get info automatically on (all) functions that are in my project?
Here is what I want to do. I have a big workspace with several projects. I want to find all uses of a certain variable in each and every project. For example, I want to find every case that I use SYSTEMTIME or CTime in all my projects.
Can Studio report information in tabular format such as:
Function Name <--> Return Type
Function Name <--> File
Function Name <--> Class
Function Name <--> Project
Function Name <--> Argument List <--> Example of use
Return Type <--> Argument List
File <--> Project
Class <--> Project
You probably see what direction I'm going with this. I want to create a database that gives me info on my uses of a variable in an entire workspace.
Is this automated somewhere? I also have SourceSafe at my disposal. Sorry if this has been answered somewhere before, but I am not sure how to word my question or search.
Thank you
John J
|
|
|
|
|
I'm writing application that is windows explorer in some way,and I need some file icones like .htm,.sln,.zip,.cs,.aspx,.cpp,.h,..... Where can I find these icones to add them to my imagelist?
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
See SHGetFileInfo() . Use the SHGFI_ICON value for uFlags .
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thanks Ravi.
Mazy
"And the carpet needs a haircut, and the spotlight looks like a prison break
And the telephone's out of cigarettes, and the balcony is on the make
And the piano has been drinking, the piano has been drinking...not me...not me-Tom Waits
|
|
|
|
|
hi, I need some advice about using and connecting the CBaseControlWindow into the IGraphBuilder interface. so, thnx
J.
|
|
|
|
|
Hello all,
I tried remote debuging in VC6.0 with an NT machine as host (source code) and an 2000 machine as remote. Everything worked well except breakpoints. I couldn't set breakpoints.
What I was trying to debug is a DLL running form an executable for which I don't have source code or PDBs.
Any ideas on how to solve this?
Thanks in advance.
Alberto Gattegno
Software Engineer
http://www.itgil.com
|
|
|
|
|
I am trying to use text in a PaintShop Pro or PhotoShop type application. Does any body have any ideas on how to do this. I am specifically interested in ideas about how you let the user manipulate the text object. For example the user can stretch the text object in either direction, or rotate the text or...
I have started working on 2 solutions. The first is when I create a text object given a font name, font size, color and attributes (bold, italic...) I put it into a rich text control and grab the bitmap that is generated by the rich text control. Then stretching or rotating the text is basically stretchBlting or rotating a bitmap. This works well but looses quality (especially when printing).
The sceond solution is when I create a text object given a font name, font size, color and attributes (bold, italic...) I create a logical font, using the LOGFONT structure. This gives rotation by creating the font rotated. It also gives great quality when printing. But this causes problems with stretching. I have not gotten this approach to stretch into long or heigh text.
OK, does anybody have any recomemdations about these approaches? Or another approach?
Thanks for any advice!
Craig Smith
|
|
|
|
|
Hi,
The .dsp and .dsw files are rather easy to understand
but doesn't anyone know where I can find an official
description of the format of VS project and workspaces ?
Thanks!
Phil.
|
|
|
|
|
ouch ... I asked about this recently ... Chris Richardson and Neville Franks provided a lot of help (particularly since I was looking at using the VS Interface to do this - they persuaded me not to .. this applies more to VC6 by the way, the interface is better in VC7)
have a look at http://www.codeproject.com/useritems/IncludeFinder.asp[^]
From Chris >> "The classes you may be interested in will be in DSObjects.h, DSObjects.cpp, VC6Objects.h, and VC6Objects.cpp"
I do have some info I found on using the automation interface - 1 or 2 artciles from the web, but havnt analysed them thoroughly yet - reply back if you want me to dig them out (may take a day or so) ...
cheers, Garth
|
|
|
|
|
ps ..sorry about dyslexia in above .. 'artciles' should of course be 'articles'
dumb fingers/synapses early on a Monday morning !!!
'G'
|
|
|
|
|
Hey, thanks for the plug . I hope your project comparer is going well for you
Chris Richardson
You can stash and you can seize
In dreams begin, responsibilities U2 - Acrobat[^]
|
|
|
|
|
Hello all,
Suppose I want my application can edit a .doc file, so I decide to embed a MS Word ActiveX control into my app. Unfortunately, I can't find one. I only find SpreadSheet ActiveX control comes from Microsoft.
Anyone can give me a way to embed a MS Word into my application?
Thank you very much for your help.
Long Truong
|
|
|
|