|
I re-compiled one of my applications under VS .NET 2005 (with no code changes) and the .exe is now twice the size....
What have Microsoft done ? or do I need to turn off some setting that is new, like a "make large .exe to waste disk space" setting ?
Any idea's ?
regards,
Darka
www.xanya.net
|
|
|
|
|
are compiling in debug or release mode ?
|
|
|
|
|
Hi V2.0,
Release - exactly the same build in both versions of the compiler, .NET 2005 is always larger (in the 3-4 projects I have tried).
|
|
|
|
|
Darka wrote: "make large .exe to waste disk space"
LOL
You have an apple and me too. We exchange those and We have an apple each.
You have an idea and me too. We exchange those and We have two ideas each.
-- modified at 6:20 Friday 24th March, 2006
|
|
|
|
|
Hi, make sure that you use MFC as a static link-edited library
and please check your optimization settings of your project.
|
|
|
|
|
Hi,
I don't use MFC and all optimisations are for "small code", etc.
regards,
|
|
|
|
|
How to associate a scrollbar to a image
|
|
|
|
|
|
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
|
|
|
|