|
Is there a way to add extra control such as a datagrid or a chart control to VC. I used to use these controls (are they OCX's?) in visual basic all the time, its not something whcih seems to be used often in vc, why is this??
ben
|
|
|
|
|
If you go Project/Add to project/Components and COntrols you'll find that you can add Registered ActiveX controls on your machine. I don't know if this list is dynamic or set by VC on install, because you're right - I don't use them. I prefer the control I get by building my own or getting them from places like this. An overridden MFC control has all the source, so I can do what I want with it. I remember the hell I went through wading through VB documentation on MSDN trying to figure out FlexGrid. Not for me, thanks.
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 a technique to understand stl errors?? the syntax is so odd, eg:
'class std::_Tree<int,struct std::pair<int="" const="" ,char="" *="">,struct std::map<int,char *,struct="" std::less<int="">,class std::allocator<char *=""> >::_Kfn,struct std::less<int>,class std::allocator
<char *=""> >::iterator __thiscall std::map<int,char *,struct="" std::less<int="">,class std::allocator<char *=""> >::find(const int &)' : cannot convert parameter 1 from 'char [3]' to 'const int &'
This particulr problem was easy to solve but the error messages are worse than useless...!
|
|
|
|
|
There is a VC add in kicking around that strips the extraneous template errors so you can quickly get to the meat of STL error messages. I think it's here, but I could be wrong. Either way, it's about if you search for it ( I don't *think* I have it myself )
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.
|
|
|
|
|
christian,
that sounds fantastic... do you know what its called or who wrote it, i cant find it on here...
|
|
|
|
|
You might also want to look at the July 2001 issue of C/C++ Users Journal - there is an article by Leor Zolman called "An STL Error Message Decryptor for Visual C++".
|
|
|
|
|
Thanks Tim. I had a feeling it wasn't here, but I don't really *go* anywhere else. I thought of a magazine, but WDJ just ran a different plug in thing, so I thought I must be wrong.
Christian on Jono's machine ;0)
Jonathon
|
|
|
|
|
Firstly, can I ask what are library files. I presume these are .lib files - and how do they differ from dll's? Are they still C++ compiled code....
Secondly, what form does MFC take. I presume we dont actually have the classes as source code on our hard disks. Is Mfc made up of DLL's, but if this is the case how come when debugging we can drop through into the source code. I presume the MFC DLL's havent just been released as a debug version for this reason surely the debug compilation is less efficient.
Third, what are macro's? Are these written in C++? i know what the traditional macro is for instance in an excel spreadsheet or the Window 3.1 macro recorder which "records" a series of actions, is a C++ macro similar. I guess its used for automating things but I dont see how exactly.
And thats it, thanks a lot...!
Ben
|
|
|
|
|
A library file is compiled code, but it is not the same as a dll. A use for .lib files is to distribute a programming tool without the source - the code will compile with just the header, as long as the .lib file is provided for the compiler to find the code it needs to finish the job. GDI+ is distributed this way.
Two - yes, you have the MFC source code in /vc98/mfc/src. Now you can't complain about that !! A lot of stuff to do with extending MFC would be nigh impossible if you couldn't bury your nose in the source code for a bit...
A macro allows you to create a new command, for example min and max are macros, they are defined so that you can type min(x,y) and the code is replaced on the first pass of the compiler with something like:
if (x
|
|
|
|
|
Hi all,
Can anyone tell me, how can i create setup disk for my program ???
(Please step by step)
Because, i add my files to my project then i add my componets and ... then i compile my project, when i run setup, installshield don't copy my files to directory !!!
I used of InstallShield 6.0 proffesional
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 remember this - you need to effectively add things twice. The first time you create packages, the second you say which ones you want to use. It's dumb, and not clear at all. I prefer Setup Factory.
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,
Do you know how can i register an ActiveX or dll file by InstallShield ???
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
Sorry, I don't know.
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.
|
|
|
|
|
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.
|
|
|
|