|
Hello Stephane
first of all, thank you A LOT for your fast reply
1)
>>If you use MFC as shared dll (default behaviour) then yes redistrubtion problems arise.
Unfortunately VC 6 standard allows only mfc shared dll linking so i have no choice
1b)
>>Be warned, if <winsysdir>mfc42.dll is already installed (but in an older version) and locked by another process, then you won't be able to overwrite it until next boot-time. And you'll have to add a win.ini entry and stuff ==> use InstallShield for this purpose instead
VC 6 standard doesn't ship InstallShield, so i use Inno Setup free installer with a statement like (if installing in the default sys dir, otherwise, as i would like to do, in the app dir itself just cut the destidir section):
Source: "c:\vcfiles\mfc42.dll"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder; Flags: restartreplace uninsneveruninstall regserver
; alwaysskipifsameorolder and the Flag uninsneveruninstall on all of the above files,
; since you would not want to potentially overwrite newer versions of the existing files
; with older ones, nor would you want the uninstaller to ever delete them.
>you won't be able to overwrite it until next boot-time. And you'll have to add a win.ini entry and stuff
Could you kindly tell me what win.ini entry and stuff would be required?
2) OK
3) OK, i think Innosetup can do the regserv stuff too
x) you are right, anyway with Inno Setup i can write something like below:
; Administrative privileges are required
; In order for the files with the restartreplace flag to install successfully
; on Windows NT and 2000, the user must have administrative privileges.
; By default, Inno Setup installations do not check for administrative privileges.
; It is recommended that make your installation script check for this,
; by setting the AdminPrivilegesRequired [Setup] section directive:
; [Setup]
; ...
; AdminPrivilegesRequired=1
; ...
; If this is not done, and the user doesn't have administrative privileges,
; an "Access Denied" error message will be displayed during the installation.
y)
>> To manage .msi files (and embed .msm MFC merge modules), use either VisualStudio Installer, or InstallShield 7, or upgrade to VC7.
Do you know if the only way to get this upgrade would be to purchase the full Visual Studio .NET or maybe they sell just only the VC7 as a separated product?
Again thanks a lot in advance for your * very appreciated * help!
Joe
|
|
|
|
|
Anonymous wrote:
Unfortunately VC 6 standard allows only mfc shared dll linking so i have no choice
You are running a project on a low-budget basis.
Anonymous wrote:
so i use Inno Setup free installer
So your questions go to the InnoSetup guys behind.
Anonymous wrote:
maybe they sell just only the VC7 as a separated product?
Yes, you can buy VC++.NET[^]. Price is here[^].
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Look at this, and tell me why and how.
--------------------Configuration: HydroSrv - Win32 Debug--------------------
Linking...
nafxcwd.lib(oledisp1.obj) : fatal error LNK1190: invalid fixup found, type 0x7562
Error executing link.exe.
HydroSrv.dll - 1 error(s), 0 warning(s)
Extreme programming. Do the No.1
|
|
|
|
|
Linker Tools Error LNK1190
invalid fixup found, type type
The object file has become corrupted. Recompile
Signature space for rent. Apply by email to....
|
|
|
|
|
Still can't work, a lib file must be corrupted
Extreme programming. Do the No.1
|
|
|
|
|
Hi,
When I try to compile a program I get a following fatal error
===========================================
fatal error C1189: #error : "eh.h is only for C++!"
Error executing cl.exe.
===========================================
I'm using VC 6. Please can someone tell me where do I get the right eh.h for VC? It's very critical!!!
Many Thanks,
John Bosco.
|
|
|
|
|
Seems you're including "eh.h" from a .c , try renanimg your file to .cpp extension.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks Joaquin!!
It gave me a bright Idea!!!
Best Regards,
John.
|
|
|
|
|
how set Cursor spot posotion at Center of the Cursor, not at (0,0)?
SetCursor( AfxGetApp()->LoadCursor(IDC_CURSOR1));
....
Thank you!
|
|
|
|
|
Usually in resource editor, you have a button "Set Hotspot". I see that you have a custom cursor, so I don't think you need to do this at runtime
Romeo JUNCU
|
|
|
|
|
|
Hello,
I'm using SetWindowPos with SWP_SHOWWINDOW | SWP_NOREDRAW | SWP_NOCOPYBITS to move a window contains a picture to a specific position. If I do not use the SWP_NOREDRAW flag everyting's fine but I can see the window covered by the resizing window redraws somewhere while the window is resizing. If I use SWP_NOREDRAW the covered window will not redraw and the old window's edge still on the screen if the new size is smaller. How do I fix this problem? I tried to do:
::InvalidateRect(NULL, NULL, FALSE);
RECT rcFrame = { x, y, nNewWidth, nNewHeight };
::InvalidateRect(NULL, &rcFrame, FALSE);
but the covered window draws each time I resize the window which makes the screen blinks.
Do you have any idea how to resize a window without letting the covered window redraw the area that's going to be covered?
Thanks,
Hiu Sing Ngai
|
|
|
|
|
Hi all,
I have a little problem, I need to build an application to set the password for the network and the one for the workstation to the same password,
Can any one help me on my way or tell me were to find the code.....
Here's the program flow:
1-checker runs in the background after boot up
2-user is prompted for the network (W2K Active Dir) password change
3-user changes password
5-changes are made to the register (somewhere)
6-Checker checks if registery keys are changed
6-When changed then the checker pops up with dialog box
7-Dialog box asks to confirm the password again
8-the confirmed password is used to change the local account
Note : the "checker" is the program to be build
Thanks in advance
|
|
|
|
|
oke,
I now found out that I have to write a .dll to sit on the domain controller and return a value to the account, but does anyone know some program for this or how to write it?
And then I need to process to catch the value (like a sniffer?) and set that to put the password into the local account on the machine.
Is this possible?
Thanks
regards,
Cornelis
|
|
|
|
|
I have a class that works with CPropertyPage classes!
So, the problem is that I need the value of the resource id (IDD) of the property page.
I need the following value:
enum { IDD = IDD_XXX }
How can I get this value at runtime???
I have only pointers to CPropertyPage classes!
CPropertyPage* pPage;
pPage->...
Is there any member function, like pPage->Get??? to get the IDD (resource id) of the property page!
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Personally, I would create my own class derived from CPropertyPage, and override the constructor. You could store the resourceid in a member variable, and then call the base class constructor.
jon
Signature space for rent. Apply by email to....
|
|
|
|
|
I have found a way:
pPage->m_psp.pszTemplate;
pszTemplate:
Pointer to a dialog box template to use to create the page. This member can specify either the resource identifier of the template or the address of a string that specifies the name of the template. If dwFlags includes the PSP_DLGINDIRECT value, this member is ignored.
Daniel
---------------------------
Never change a running system!
|
|
|
|
|
Hi friends!
I am using DirectSound for capturing audio. I am using DirectSoundCaptureEnumerate() API to enumerate avialable audio capture dev. I have included dsound.h but still i am getting error that this function is
'undeclared identifier' plz tell me what to do, exactly where to include dsound.h in MFC application confused:
|
|
|
|
|
Which function is undeclared? Post the error messages you get.
Gero
|
|
|
|
|
In the case you have a separate DirectX SDK installed, make sure to add the include and library directories in msdev tool Directories options, in FIRST position.
(otherwise, msdev will compile and link with those from its own installation, which may be too old).
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
please, somebody, help me!
i really need to view in one dialog/view more than one rich edit views. each of them may contain images.
i cannot make CRichEditCtrl to show images and i cannot show more than one CRichEditView in one place (they must locate one under another).
please, if someone has ANY idea how to do this, help me!
Dmitry Timin
|
|
|
|
|
If you find out how to do it, please let me know, or write an article on it, cause im having the same problem!
|
|
|
|
|
Hi all,
My problem is this. I have a user viewing a web page on my intranet and that user has an ActiveX control running on that web page. The ActiveX control needs to get some sort of information about the currently logged in user and to send it to my server and the server must then authenticate that user against the domain.
I don't want the user to have to type in a user name or password, I want the user to view the web page, the activeX control to send some security information (SID?) to the server, the server then validates against the NT domain then the user is automatically logged into the intranet system.
Do you know what sort of information the ActiveX control needs to get and how I could do all of this?
Thanks in advance, Phil
|
|
|
|
|
IE has integreted authentification, unlike Netscape. This should allow you to log, authenticate, certify someone without showing a single box.
She's so dirty, she threw a boomerang and it wouldn't even come back.
|
|
|
|
|
Problem is I have a Apache web server with J2EE on it on a Tomcat thingy.
My clients are IE.
So you see why I need an ActiveX control to send something to the web server to be authenticated...
Any ideas?
Cheers, Phil
|
|
|
|