|
OK ! You are right.
But now I have another problem.
if I set the range of spin with big numbers(as 10000)
In run time I gets a MessageBox of error that impossible to return int
|
|
|
|
|
When you set the range, are you using SetRange32? If not, you should. SetRange only allows you to set 16 bit ranges (I know 10000 can fit it a 16 bit variable, but when in Rome...).
Also, you should make sure the spin control’s data member is initialized to a valid index within the range that you specified.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
Whenever I start my VCPP, before it displays the window it gets a fatal error. When I say details it syays this:
MSDEV caused a divide error in module DEVSHL.DLL at 015f:50024d84.
Registers:
EAX=00000000 CS=015f EIP=50024d84 EFLGS=00010246
EBX=00000000 SS=0167 ESP=0067ef7c EBP=0067f1dc
ECX=00000001 DS=0167 ESI=007dd440 FS=4377
EDX=00000000 ES=0167 EDI=007deca8 GS=0000
Bytes at CS:EIP:
f7 7d f0 8b c8 eb 82 8b 4d c8 eb 9b 8b 45 e8 2b
Stack dump:
00000000 007dd440 007deca0 00000018 00000001 00000007 0067f030 0000809e 0067f07a 00000928 00000047 00000000 0067f3de 00000000 00000000 00000000
How can I fix this? I tried reinstalling it, running defrag, scandisk, virus scan, I don't know what to do, please help, I can't program till this is fixed.
|
|
|
|
|
Please, someone help me. I'm going crazy not being able to program.
|
|
|
|
|
Have you tried installing the latest SP? are you using any third-party addin's, if you are disable them.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
No, I don't use addins and my VC++ was working for like a year with SP 3. And now it just suddenly keeps giving me that error. What can I do about?
|
|
|
|
|
Hmmm... Aside from installing SP5, I'm not sure what the best approach would be. HAve you by any chance just installed some new fangled software package? Have you considered wiping your system completely clean, and starting from scratch?? – I know it’s a little drastic, but this would be my best advice to you at this point.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
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
|
|
|
|