|
Remco Hoogenboezem wrote: Hi I would like to start a powerpoint slideshow from C++ the way it is done by the shell.
Then use ShellExecute() .
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Is it possible for me to link an SDI in my dialog based application? For example, when a button in the dialog is clicked, an SDI window comes up.
I've tried to 'File->Add->New Project' and added an SDI project into my current project but i have no idea how to link them up.
|
|
|
|
|
You mean start a new application (which is a SDI) ?
If yes, take a look at the FAQ[^]
|
|
|
|
|
No, not opening a different application but opening an SDI window from an SDI project which i included in my current Dialog based project
|
|
|
|
|
From your first post:
cv_k3n wrote: I've tried to 'File->Add->New Project' and added an SDI project into my current project but i have no idea how to link them up.
This will simply create a new project (so, a new executable) that will be added in your solution. They are unrelated and the only way to 'link' them is to have one execute the other one. So, this is not the solution.
I don't know how you could do this but you'll probably have to do everything manually (create a frame window, create the view and the document, ...). But I'm not sure if this will work.
|
|
|
|
|
cv_k3n wrote: No, not opening a different application but opening an SDI window from an SDI project which i included in my current Dialog based project
What you will want is to create an SDI application and display your dialog prior to displaying the SDI's mainframe (you'll be making some changes to the app's InitInstance method).
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
how shall i start the dll hooking application
naresh
|
|
|
|
|
See and read about SetWindowsHookEx API
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
|
how shall i start a dll for hooking that will trace the client data and gets the data
naresh
|
|
|
|
|
u can use SetWindowsHookEx api.
u have to specify what type/id of Hook like Keyboard,GetMessage (for more info go to msdn and type setwindowshookex).
Then according to the hook type the hook procedure prototype changes.
export the hook procedure using
__declspec(dllexport) LRESULT CALLBACK HookProc(int nCode, WPARAM wParam, LPARAM lParam)
{
// here u can write the code.
// At last u have to call CallNextHookEx
// The handle returned by SetWindowsHookEx has to be passed to this module through another exported function or some user defined messages.
}
//
Regards
Sudeesh
|
|
|
|
|
hi all i had made the service in vc++6. now i want that when that service is installed it start automatically,i had used SERVICE_AUTO_START parameter in the createservice API but it does not start when that function is executed.
Tasleem Arif
|
|
|
|
|
As I understand it that flag only means the service will automatically start up on boot, not necessarily as soon as you install the service. You'll need to start the service yourself manually once you've installed it, with StartService.
|
|
|
|
|
Hello,
I have created an application in vc++, using mfc. I have to create the setup file for the application.
I am confused as to what files to include in the setup. When I run the program in 'Release' configuration, I get the .exe file. Now, I ran this exe file on win98 and xp. It works perfectly.
SO, how do I find out what dll to package with my application?
Thanks.
Fortitudine Vincimus!
|
|
|
|
|
Build your 'exe' by setting 'Use MFC' option to 'Use MFC in a Static Library'...
To set this...go to project properties.. Choose General and set the 'Use MFC' option
Do your Duty and Don't expect the Result
|
|
|
|
|
Open your .exe in Depends and view the list of DLLs it depends on. Depends can be found in Programs | Visual Studio 6.0 | Microsoft Visual Studio 6.0 Tools.
/ravi
|
|
|
|
|
and in the case you don't have VS6 or don't find it, Ravi was talking about Dependency Walker[^]
|
|
|
|
|
I have VS6. I checked out depends. Its there. Thanks a lot.
Fortitudine Vincimus!
|
|
|
|
|
Hello,
I ran depends for my program and it gave a huge list of dll's
ADVAPI32.DLL
COMCTL32.DLL
COMDLG32.DLL
GDI32.DLL
KERNEL32.DLL
MFC42.DLL
MSVCRT.DLL
NTDLL.DLL
OLE32.DLL
OLEAUT32.DLL
RPCRT4.DLL
SHELL32.DLL
SHLWAPI.DLL
SIMPLE HOME BUDGET.EXE
USER32.DLL
Do I have to include all of these in the setup program. What I do not understand is that if my program(just the .exe) works fine without any setup, why do I have to add all these dll's while creating the setup?
Please can you explain?
Thanks.
Fortitudine Vincimus!
|
|
|
|
|
Tara14 wrote: Do I have to include all of these in the setup program
yes.
Tara14 wrote: What I do not understand is that if my program(just the .exe) works fine without any setup
because, the m/c you are running your program on is already having these dlls.
Tara14 wrote: why do I have to add all these dll's while creating the setup?
Setup is meant to install your program on user m/c. Its not necessary that all necessary dll's will present there. The software you will use for making set up program , will take care of copying these dlls at desired location.
|
|
|
|
|
Thank you for your reply.
The setup will have to copy only the dlls that are not there on the users m/c, right?
I worked my program on win98, 2000 and xp. It worked on all of them without any error. That means all of the sysems have the necessary dlls needed.
Fortitudine Vincimus!
|
|
|
|
|
Tara14 wrote: The setup will have to copy only the dlls that are not there on the users m/c, right?
partially, because sometimes you need tocopy updated version.
Tara14 wrote: I worked my program on win98, 2000 and xp. It worked on all of them without any error. That means all of the sysems have the necessary dlls needed.
yes. It means that all these m/cs have visual studio installed ,too.
But it will not be case with user m/cs. So you need to consider that.
|
|
|
|
|
prasad_som wrote: yes. It means that all these m/cs have visual studio installed ,too.
Well... non of them had vs installed in them. I even sent the exe file to client.
Fortitudine Vincimus!
|
|
|
|
|
Tara14 wrote: Well... non of them had vs installed in them. I even sent the exe file to client.
Oops ! search for MFC42.DLL,MSVCRT.DLL on those m/cs. And hope that same are present on client m/c in windows folder.
Its impossible to have these dlls present on clean m/c.
|
|
|
|