|
|
I want to enumerate all items under the special folder 'Programs' which is part of the 'StartMenu'.
I want to be able to enumerate through all items and their links, inside the 'Programs' folder.
Once i enumerate all 'Programs' items i want to get the name and path of each item, launch each of them and log the name and path details.
I have been trying without any success, i used the SHGetSpecialFolderLocation(), EnumObjects() Shell funcs.
btw: is there a function like SHGetDesktopFolder(), to retieve other special folders like 'Programs', 'StartMenu' etc.
Please suggest me a correct method to do this and also let me know if a sample code for this is available?
Awaiting a reply.
Thanks in advance,
Giftsana
|
|
|
|
|
Did you try SHGetSpecialFolderPath?
- NS -
|
|
|
|
|
I did not try SHGetSpecialFolderPath().
Could you kindly suggest me how i need to go ahead with this, am lost as to how to get it working.
and i need to deliver this by monday.
Thanks again.
Giftsana
|
|
|
|
|
I got a solution to this using SHGetSpecialFolderLocation and specifying CSIDL_PROGRAMS and CSIDL_COMMON_PROGRAMS since all items under 'Programs' are stored in the above two.
Giftsana
|
|
|
|
|
Hi,how to limit the stack size for an application. I want object creation should fail because available memory is not sufficient. Is there any way the same solution will work both on windows and linux too.
Regards, Eswari
|
|
|
|
|
With MSVC you can use "/F (Set Stack Size)" in the project settings, though if you are having problems with stack overflows you should check your code as increasing the stack size will not help.
Stack size is pretty compiler specific, maybe there is a command you can use within your code, but I'm unaware of one.
|
|
|
|
|
I've found in MSDN a /STACK linker option on the VC++ IDE here[^] If your are using VC++ .NET click Properties on your project, go to Linker, then to System, and you will find "Stack Reserve Size" option (default is 0).
|
|
|
|
|
On the VC++.NET it worked. Thank you
|
|
|
|
|
Good for you. If you need an article discussing the stack role please see
Chavdar Dimitrov's Playing with the stack[^] PLease keep the good coding!
|
|
|
|
|
Hi all,
I'm having a strange, seemingly random problem with the font for my Dialog. Most of the time it runs perfectly, at others a bold face is selected. The only way I am able to correct the problem is by restarting windows.
on my WM_INITIALIZE: I have
HDC hdc = GetDC(hwnd);
LONG lfheight = -MulDiv(10, GetDeviceCaps(hdc, HORZRES), 72);
curFont = CreateFont(lfheight, 0, 0, 0, 0, FALSE, 0, 0, 0, 0, 0, 0, 0, "Times New Roman");
oldFont = (HFONT)SelectObject(hdc,curFont);
ReleaseDC(hwnd,hdc);
On the Dialog itself there is no text, but the font withinin the controls is affected. i thought that any font selected into the main dialog would also affect the child windows.
Obviously I am doing something wrong, but I can't see what. It's also pretty impossible to debug since it happens once every few days.
Any ideas?
|
|
|
|
|
waldermort wrote: on my WM_INITIALIZE: I have
What is WM_INITIALIZE ?
Nibu thomas
Software Developer
|
|
|
|
|
Hey if you want to poke holes at a simple spelling mistake, I suggest you try learning to speak a foreign language yourself.
Nobody is perfect.
|
|
|
|
|
Hi waldermort,
I think(WM_INITDIALOG)
What's wrong?
|
|
|
|
|
waldermort wrote: Hey if you want to poke holes at a simple spelling mistake, I suggest you try learning to speak a foreign language yourself.
Well I just wanted to help you? I was wondering what message is this. I didn't think that this was a spelling mistake. It was genuine question. Cool down
Nibu thomas
Software Developer
|
|
|
|
|
ok, sorry. Yes the correct code is WM_INITDIALOG, but regardless of the message, I am still having a problem with this font.
|
|
|
|
|
Hello,
Is it possible to copy a file from one PC to another PC, which is located in different server.
In other way, is it possible to place a file on to USN(for example, http://remote/one) using CopyFile()?
Thanks in Advance.
Helping others satisfies you...
|
|
|
|
|
i have been programing in mfc c++ and using ADO as the access engine.can someone send m me a code to move one window to another.for instance form the customer window to receipt window
yee lets eat
|
|
|
|
|
kipchumba wrote: can someone send m me a code to move one window to another
No.
Your request is so unclear that one can not get the abstraction from your interface design to the MFC-actions to perform.
Sorry, but you need to restate your question.
With some luck, structuring and breaking up the problem for publication is half of the solution.
"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."
-- Caius Petronius, Roman Consul, 66 A.D.
-- modified at 5:00 Friday 24th March, 2006
|
|
|
|
|
i have been programing in mfc c++ and using ADO as the access engine.can someone send m me a code to move one window to another.for instance form the customer window to receipt window
code to change window-- mabe switch
code to come back to customer
will be thankfull
yee lets eat
|
|
|
|
|
hi
Im currently working on wince( evc++).
my project includes sharing and tranfering of files between an ebox
and a computer ( currently running wince only). i.e. the tranfer is
between wince to wince rather than desktop to wince.
also i am using MFC to implement my project as im not very comfortable
with EVC++ .
if anyone has implemented any kind of project as described above( using
MFC) and does not have aproblem sharing the source code, please mail
me.
also apart from the file sharing i also have to implement a chat
system. so that different pds/ebox/ can communicate among themselves as
well as the desktop computer/ server running wince.
expecting a reply.....
Ekta Ahuja
ahuja.ekta@gmail.com
|
|
|
|
|
I haven't worked on EVC++ but as far as development of application is concerned we transferred files from one machine to another in the shared folders of the computers that had read / write privileges.
Use WNetResource structure etc to see how you can have access to the shared resources on the remote machine and then read and write through Sockets or what ever you are comfortable with
Does this solve your problem
Vision is Always important and so is your ATTITUDE.
Wishes.
Anshuman Dandekar
|
|
|
|
|
Hi,
I am working with File reading in VC++. I am reading a log file which has around 1 lakh records. I have to read each record and filter them based on some options and display them on the UI.
The problem that I am facing is that it takes enormous amount of time to read so many records. I am using CStdIOFile for reading. Can any one please help me with some optimization techniques that will speed up my reading process.
Thanks
Madhavi.
|
|
|
|
|
ledallam wrote: which has around 1 lakh records
It is better you should implement a worker thread for readng and displaying in the UI.
- NS -
|
|
|
|
|
Hi, I think you should put each line of the log file in the CStringArray and lunch a worker thread to parse each item of that array. Good luck!
p.s. it would be nice to have a progress window
|
|
|
|