|
To register files in InstallShield, create a File Group just for self-registering files:
1) On the File Groups tab, right-click and select "New File Group". Give the group a name.
2) Put all of your self-registering files into this file group (I find that dragging them from Windows Explorer is easiest).
3) Click on the new file group in the left hand tree view. The right hand side of the Installshield window should show you some settings for the file group.
4) One of the settings is called "Self-registered". Double click on it and a dialog will appear where you can select to make them self-registering.
Hope this helps, let me know if you have any problems.
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Hi Derek,
Thanks aloooot for your reply.
I have other question, in File Group Tab i can see other sections ...
Shared DLLs and Program DLLs, can you explain for me about thease sections ...
Thanks again.
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Yep, I think those sections are created by default if you use the Installation Wizard to create an Install. Basically, Program DLLs are any DLLs that your program uses. Typically they will be placed in "INSTALLDIR" which is the directory that the user chooses to install your application into.
Shared DLLs tends to be used to install newer version of system DLLs, for example, mfc42.dll. These are typically installed in "SYSTEMDIR" which is C:\Windows\System (Win 95/98/Me) or C:\Winnt\System32 (NT/2k/XP?). You need to be careful with these to make sure you don't put some old version of the DLL over some newer version. Usually, files in this group are only updated if you provide a higher version and/or more recent file. I think that this is all set up by default when you use the Installation Wizard.
Hope this helps!
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Hi Derek,
Your reply was very very perfect for me,
If i have any other question, i'll ask of you ...
Thanks again ...
Best Regards,
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Hi all,
I want to know how can i link my DAO database to the DataGrid or FlexGrid ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I think you'll find you need to traverse the database and put the data in to the grid. We used flex grid and had to fill the grid in another thread during startup/user registration, because it was so slow otherwise.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Good, so i want to use of FlexGrid ... but how ???
I want to see my records in FlexGrid, but how ?
Please help me ...
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I used a formview and put my flexgrid on it ( actually I had three views so three grids and just changed their Z order to select the one visible ). I can't remember the commands to set the number of columns, etc. but if you've put the flexgrid into your project there will be a class there that lists them, stuff like SetColumn is pretty obvious.
I have my old source code at home, I'd be happy to dig it up so I can give some more specific answers. I'll try to do that tonight.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Hi again,
Can you send your source code for me ? that was about indicate records in a FlexGrid ?
Can you ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'll try to dig up a code backup CD and see what I can find for you.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Anyone how to transfer color to gray like XP shutdown interface. However, only the window is color, others is gray.
What I needed maybe you have, so let's help each other.
|
|
|
|
|
No need to barter
To make colour into gray scale, you need to take the red, green abd blue values ( actually windows uses BGR ) and then use the formula
x = .299 * red + .587 * green + .114 * blue
to get the value to pass back in to all three values ( gray pixels having equal values in all three channels ). You can take an average of the three, but that doesn't take in to account the way the human eye percieves colour.
Now, to change the whole screen to gray ( I assume that's what XP does, hey, maybe you DO have something I want....), you need to grab the screen ( which is easy - CWindowDC dc(NULL); gives you a DC to the screen, you can Blt off it ). Then you need to create a DIBSection the same size ( because you can get direct access to the bits ), copy the CWindowDC onto it ( it needs to be selected in to a DC, obviously ) and traverse the bits using this formula. Then copy the DIBSection back over the WindowDC. If you're doing it IN XP, or don't mind depending on the GDI+ dll, then you'll find the job easier because you can use a GDI+ bitmap to traverse the bits. I'll be writing a tutorial on how to do this shortly ( i.e. when I find time ).
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Is there any sample?
What I needed maybe you have, so let's help each other.
|
|
|
|
|
I have a sample around here somewhere that shows how to use a DIBSection to get access to the bits of a bitmap, but it's going to appear in next months Windows Developers Journal, so I'm not sure if I'm allowed to post it. What part of the explanation I gave do you need help with ? To get access to the screen bitmap, you'd do something like:
CWindowDC window(NULL);
CDC dc(NULL); // Does two different things, NULL in the first case creates a DC of the screen, the second creates one *compatible* with the screen.
dc.SelectObject(dib); // Assumes it's already created to the screen size
dc.BitBlt(0,0, width, height, &window, 0, 0); // viola.
You might actually find if you download Paintlib (ww.paintlib.de ) it has stacks of examples of direct pixel access, and a nice wrapper for DIBsection. Also, if you want it, I've written a Targa saver, and filters including a 3x3 spatial with smooth, sharpen, emboss, etc., and gamma, colour, and I'm sure others, but I can't recall. Nothing too cool, no hot wax or swirl ( yet... )
LMK if you need more help, but that should get you started. Just post some code to show me where you get stuck.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
I wrote the following code, but it give me a red screen, everything become red-like, not gray.
CWindowDC dc(NULL);
for ( int i=0; i<1024; i++)
for ( int j=0; j<768; j++)
{
COLORREF clr = dc.GetPixel(i, j);
int R = GetRValue(clr);
int G = GetGValue(clr);
int B = GetBValue(clr);
clr = (54 * R + 183 * G + 19 * B)/256;
//clr = 0.299 * B + 0.587 * G + 0.114 * R;
//.299 * red + .587 * green + .114 * blue
dc.SetPixel(i, j, clr);
}
What I needed maybe you have, so let's help each other.
|
|
|
|
|
You need to write something like this:
int newclr = (54 * R + 183 * G + 19 * B)/256;
clr = RGB(newclr, newclr, newclr)
to put data in all three channels.
|
|
|
|
|
Thanks, I have correctted it.
But there still has a problem:
some area also is colourful, not gray, such as title bar, part of task bar.
What I needed maybe you have, so let's help each other.
|
|
|
|
|
Please stop saying
What I needed maybe you have, so let's help each other
it sounds so mercenary. I help people to help them, I'm sure others here do the same and it is a given that you will probably help me if you can later on.
Anyhow, these areas are drawn by windows, you won't be able to draw on them using this method. The mouse pointer is the same. What is happen is that GDI allows you to draw out of bounds without a crash it just ignores the call. BTW you should add code to check the screen size to your loop - use GetSystemMetrics to do that.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
I should also mention that the reason I suggested copying to a DIBSection is that GetPixel is painfully slow compared to iterating through the bits using the pointer a DIBSection's constructor gives you.
Christian
#include "std_disclaimer.h"
People who love sausage and respect the law should never watch either one being made.
The things that come to those who wait are usually the things left by those who got there first.
|
|
|
|
|
Is there is any who can help me to remove the scroll bars from the Html View Window?...;)
|
|
|
|
|
I can't tell you the script off hand, but add the JavaScript to your document which tells the window to hide the scrollbars. That will work.
David Wulff
dwulff@battleaxesoftware.com
|
|
|
|
|
Sir,
I am using Visual C++ and then I have created the HTML view on the Dialog , in which i have forced the HTML window to display my own HTML text. but there is one problem when we load the text in the window if the text is more than the length of the window then Scrolling is visible i want to disable that scroll bar...
|
|
|
|
|
Hey all!!
You know when you right click on the CD Drive icon in my computer, you have the option of ejecting the cd? How do I do this in my MFC dialog app?
Thanks
Ashman
|
|
|
|
|
Search in MSDN for thread Q81871. There's a link to a sample application. Perhaps it will help you.
Gero Gerber
|
|
|
|
|
I have need to add 2 radio buttons to the print dialog and/or the Print setup dialog. I have no problem supplying my own template for the Print dialog and then passing the additional data back to the print function.
However when it comes to the Print Setup the template does not work, the dialog does not come up.
Also if the printers properties are changed I need to have these controls informed of that.
I'm trying to get out of having to write the entire thing myself.
Happy programming!!
|
|
|
|