|
I see nothing wrong in your usage of CreateProcess() (unless you are compiling without UNICODE defined) therefore the problem must be in some other part of your application. As suggested by your statement The Follwing code works fine in one of my MFC Application.
As indicated by WalderMort above my comment here is totally wrong.
-- modified at 0:14 Sunday 2nd September, 2007
|
|
|
|
|
is there any way of including the mfc42.dll file (or it's content) in the exe file,
so that you dont have to add the mfcfile along with the executable when releasing the final product to the end user?
or is any way to not use mfc42.dll at all when developing a mfc dialog app?
(vc++ 6.0 standard edition)
off topic: is there any new servicepacks for vc++ 6.0, i've got sp6, is this the latest?
thx!
-- modified at 8:00 Saturday 1st September, 2007
sp1 -> sp6
|
|
|
|
|
rolfhorror wrote: is there any way of including the mfc42.dll file (or it's content) in the exe file
You can link it as static library. It is set via project settings => General.
rolfhorror wrote: is there any new servicepacks for vc++ 6.0
As far as I know, SP6 is there. But I dont know from where it is available.
- NS -
|
|
|
|
|
thanx for answering, i'll try the linking thing.
sorry about the servicepack, i meant i've got sp6 not sp1, maybe 6 is the latest
thanx.
|
|
|
|
|
how exactly would you link mfc42.dll in Project->Settings->General
where do i go from there? Theres no options only "Use MFC in a Shared DLL"
How do i statically link mfc42.dll to my exe?
cant seem to find any articles about that.
|
|
|
|
|
rolfhorror wrote: Theres no options only "Use MFC in a Shared DLL"
Really? You probably not installed the static libraries...
If it is fine, there will be another option, "Use MFC in a Static Library"
- NS -
|
|
|
|
|
i guess i havent got static libs installed, strange, isn't static libs common?
think i need vc++ 6.0 Pro.Edition, i only have the Standard ed, and its without the static libs
is there any other options?
maybe programatically add som lines of code?
thanx!
-- modified at 9:06 Saturday 1st September, 2007
|
|
|
|
|
rolfhorror wrote: how can i install them
You just need to modify the installation from the "Add or Remove Programs" in control panel. Select Add/Remove when setup screen is shown... And select the options of static libraries...
- NS -
|
|
|
|
|
ok, i'll check it out.
thanx.
edit:
i only have these options:
VC++ dev studio
VC++ runtime libs
VC++ mfc and temp libs
VC++ build tools
tools
data access
activex controls
---
no static libs..
only something called "static crt libs" in a submenu, but this was installed.
like i said before, i think i may have the light version of vc++ 6.0(standard not pro) which is without static libs.
-- modified at 9:17 Saturday 1st September, 2007
|
|
|
|
|
rolfhorror wrote: VC++ mfc and temp libs
Take the details of it... i think there are more than 2 or 3 levels...
- NS -
|
|
|
|
|
ok, ill check it out.
thanks for the help.
|
|
|
|
|
Welcome
- NS -
|
|
|
|
|
rolfhorror wrote: is there any new servicepacks for vc++ 6.0, i've got sp6, is this the latest?
VC++ 6.0 is no longer supported. SP06 is last of service packs for it.
Prasad
MS MVP - VC++
|
|
|
|
|
|
tanx, this is awesome!
|
|
|
|
|
Service pack 6 was the final one for VC6.
Software Zen: delete this;
|
|
|
|
|
Hi ,
I want to write a download manager like DAP or Flashget. Do you know what the principle is? I do not have any idea how downloads can be accelerated or resumed. Will I be able to use MFC for that or I have to write a class for handling the http connection?
Thanks
|
|
|
|
|
For download a file you can use of URLDownloadToFile but for write manager tools you need to see Internet section on the codeproject for more info.
|
|
|
|
|
|
try modifying the icons in the resource view and see which one gets updated.
|
|
|
|
|
to be more presise,
go to resource view tab in the workspace,
expand the icons or bitmaps folder,
just open each one and put some dot on each.
run the application and see weather the icon is updated.
|
|
|
|
|
I think you haven't got the problem. may be i fail to explain.
Actully I have started my project with empty win32 project. And Created Dialog Based Application ( haven't Create Any Window ). Now I have Add a ICON in Resources. I just Want to know What should I do So when I compile the project it set as the ICON of EXE file.
|
|
|
|
|
Does WM_SETICON any help?
|
|
|
|
|
Hi,
Can you guide me on how to use this WM_SETICON. I tried to understand from MSDN. But not able to get it.
I tried to send the message as follows but gives Runtime Error.
<br />
HICON hIcon = LoadIcon(hInst,(LPCWSTR)IDI_ICON1);<br />
SendMessage(hWnd,(UINT)WM_SETICON ,(WPARAM)hIcon,(LPARAM)0);<br />
|
|
|
|
|
Gaurang Shah 033 wrote: SendMessage(hWnd,(UINT)WM_SETICON ,(WPARAM)hIcon,(LPARAM)0);
It is wrong...
SendMessage(
(HWND) hWnd, // handle to destination window
WM_SETICON, // message to send
(WPARAM) wParam, // icon type
(LPARAM) lParam // handle to icon (HICON)
);
(From MSDN... )
- NS -
|
|
|
|