|
Gaurang you deleted the message at the base of this thread too, please stop doing that.
|
|
|
|
|
Sorry for that.
But can u help me in my problem
I am trying to create the Process using Crateprocess. I have just copy the function from my other project. It works there fine. but gives error in this project.
I am using win32 Dialog base Applicaion and a Dll file for MouseHook.
Can this thing cause any problem
|
|
|
|
|
You imply in your messages that you are using some kind of MouseHook and yet all you give is the CreateProcess() call.
Stack trace the exception, and post relevant pieces of your code.
|
|
|
|
|
Ok. I have tried the same code in other win32 application which doesnt uses any other thing.
I just simply create the Win32 Project throught Winzard(VC 2005) and the make the changes so that when you press OK Button on About Box it Call the ShowImage() Function. But still it gives the me the Runtime Error. The Follwing code works fine in one of my MFC Application.
<br />
<br />
void ShowImage(void)<br />
{ STARTUPINFO si;<br />
PROCESS_INFORMATION pi;<br />
<br />
ZeroMemory(&si, sizeof(si) );<br />
si.cb = sizeof(si);<br />
ZeroMemory(&pi, sizeof(pi) );<br />
<br />
CreateProcess( NULL,
L"MSPAINT",
NULL,
NULL,
FALSE,
0,
NULL,
NULL,
&si,
&pi );
<br />
}<br />
<br />
|
|
|
|
|
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.
|
|
|
|