|
Yes, sorry
Buy it, buy it, buy it !!!!!
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.
|
|
|
|
|
|
C++ Builder is much better than VC++.
|
|
|
|
|
so go use c++ builder and leave us in peace
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Would you care to elaborate? I have used both and personally feel VC++ to be superior.
|
|
|
|
|
Yeps and there tons of examples and documentation, we also have a MSDN with tons or resources.
Obviously the above statement is a complete lie and thats why I use Visual C++ and not C++ builder.
C++ Builder is for C++ programmers you cant program.
|
|
|
|
|
Then use Visual Basic then and leave Visual C++ to the professionals.
|
|
|
|
|
It's funny, I accidentally corssposted into comp.lang.java.advocacy with the comment 'java sucks' a few months ago. I wasn't trolling like this anonymous clown, I was actually talking about languages to do graphics in, the user had asked about java ( hence the cross post I did not see ).
I must say that we are a far more restrained lot than the guys ( and gals I s'pose ) on c.l.j.a. Talk about starting a firestorm......
To the clown who started the thread - have the guts to put your name to your posts, and the intelligence to either present your case if you want to discuss it, or shutting up and going away if you're just looking for attention.
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.
|
|
|
|
|
Are you gay or something?
|
|
|
|
|
I've only recently started playing with it, and like most such tools it has it's good points and it's bad. I find it anoying that with a very small ammount of use I've been baffled by two unrelated compiler faults and one, shall we say, infelicity of design in MFC which meant going all round the houses to do something which ought to be trivial (replacing one of the windows under a splitter).
There seems to be a certain ammount of too clever by half about MFC. Fancy techniques used where simple techniques would have been more flexible.
I find much of the documentation nearly useless, being formulaic in nature when it ought to be explanatory. It's also irritating that the class references are on CDROM and take forever to acccess (it also interferes with my listening to music while I hack).
On the other hand I find the IDE surprisingly useful. Compiler errrors tend to be vague but runtime errors are quite well handled. The debugger seems quite good (is there an "evaluate expression" anywhere?).
|
|
|
|
|
In this age of 40 gig drives, you'd be mad not to have the MSDN fully installed on your hard drive.
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.
|
|
|
|
|
So when was the old law: Files expand to fill the space available repealed?;)
Actually it's probably just parsimonius habbits (that, and having three separate opertating systems).
|
|
|
|
|
I want the MFC or sdk methods for obtaining the status of each processor such as load, queue length etc in a network.
arunkc
|
|
|
|
|
read HKEY_PERFORMANCE_DATA
|
|
|
|
|
I am new in Visual C++6.
I want to learn.
How I can do a profile like:
Profile
Last name:_______
First name:______
and an user can complete this form and his data to be stored in a data base.
Can you help me please?
I can change the fonts just for the first line?
Thank you!
|
|
|
|
|
It's great that you want to learn, and also ( for you ) great that you've found this site. Can I just ask a couple of questions ?
1/ If I asked you to do this task on a console line ( like a DOS window ), could you do it ? If I asked you to write a simple calculator, could you do that ? If not, then step one is learning some C++, then worry about the Windows world. Otherwise it's too much to take in at once and you're setting yourself up to be a bad Windows programmer.
2/ Assuming you know some C++ and want to move to Windows, you're probably talking a dialog application here, or a Form based view. Either way, what you're looking to do is not difficult - the first step involves creating the 'form', using the dialog editor to position your controls. Then you can use the drop down window in the Wizard bar to associate messages with functions, so you can recieve notification if a button is pressed, or text is typed into a edit box. You press Ctrl-W to get up the class wizard, where you can associate a control with a variable, either a string or number, or a control ( which means you use GetWindowText to get the contents of a text box ). NEVER use DDX with validation, i.e. never create an edit box and create an int or float and type in a minimum or maximum value. The DDX stuff jst blows, it is very annoying to end users. I alaways roll my own.
Database support is something I have little experience in, but from memory you create a project in the wizard with database support and associate it with a database, and you get a class that opens the file and provides methods for reading and writing values in and out. Or you can use serialisation or CFile to create your own if you don't need a relational database, but just a file with a list of details.
If I've lost you along the way, feel free to ask for more info, but also consider if you need to choose something simpler at this stage. Also, buy a book. Everyone here is very helpful, but there's no substitute for good references. I have a bookshelf full of programming books. Initially I thought along the lines of getting stuff for free online, why spend money, books are $100 each, etc. Now I love buying books, because I learn so much better from a book, and because I see it as an investment in myself. ( That may not be a wise investment, but I have a vested interest )
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.
|
|
|
|
|
Thank you very much for your explanations, I’m really interested in learning this programming language.
I started to learn last week and till now wasn’t very difficult.
|
|
|
|
|
*grin* It gets difficult, but that's the fun of it. If you learned an easy language you'd have something that
a. any monkey could do and
b. wasn't very powerful. A language is easy when it protects you from the details, which in turn limits your options.
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.
|
|
|
|
|
How hard is this to do?
Id like to be able to, for instance, drag a item (node) in the tree and move it to a new location in the tree. Oh, and a non-MFC solution is preferred.
thanks
-Jack Mott
jackm@scalablesoftware.com
|
|
|
|
|
Handle TVN_BEGINDRAG/TVN_BEGINRDRAG. KB article Q214814 has basic info about this.
Tomasz Sowinski -- http://www.shooltz.com
|
|
|
|
|
Hi,
In my MDI application, I have a dialog box that the user can select at most 30 files(bitmaps).
then I store those file path names in a CStringArray(m_Array) in my Doc class.
there a button( on the toolbar) to click on, everytime I have to open the next image.
my problem is that I don't know how to open the next image in a new document.
I don't know what code to use.
the following is what i thought to start with.
void CTurboMechView::OnWindowNextimage()
{
// TODO: Add your command handler code here
CWinApp* pApp=AfxGetApp();
CMainFrame *ptr=(CMainFrame*)GetParent();
CTurboMechDoc* pDoc=(CTurboMechDoc*) ptr->GetActiveDocument();
pApp->OpenDocumentFile(m_Array.GetData()[1]);
}
any suggestions?
Ehsan Behboudi
|
|
|
|
|
You could open up another view and associate it with the current document. For this to work, you would also need to add a variable to the view. This variable would contain the index of the image the view is supposed to display.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
I have a pretty difficult DLL problem to solve and I a little bit in the air right now.
I am developing a game engine with a "Resource Manager" which is in essence a linked list storing pointers to "Resource" classes. This setup deals with data that needs to be loaded/shared/released. All classes that load data are derived from "Resource" and on loading are registered with the global resource manager.
So that when the game requests e.g a texture a second time it gets the pointer to the already loaded texture object... Hope that is understandable..
This setup works quite well with the built in resource classes (Texture,Movie,Sound etc)
But now i allow extension DLLs which allow to add functionality to the game engine through plugin classes which are derived from "Object" and sent back to the game engine through a DLL exported function like extern "C" __declspec(dllexport) Object * CreateEngineObject( const char * classname )
This works ok too... But now i want to allow different Resource classes too in the extension DLL and here i get a crash when the resource manager tries to delete such a class (the destructor is never reached) There is one global resource manager in the engine dll ...
The engine is setup like this.
Game.exe // Small executable
Engine.DLL // All the engine classes, including ResourceManager,and Resource, those classes are also Exported via __declspec (dllexport)
Plugin1.dll the basic plugin for my tests. here i define a XMESH class derived from Resource which is alos __declspec(dllexport) exported....
The Runtime lib for all configs is of course "Multihreaded DLL"...
I don't have a clue what that could be anymore...
If anyone wants to see the code i can send a 18 MB Setup file which contains the whole project which is compilable via VC6 SP4 without anything additional ... out of the box..
Thanks in advance
Bernhard Glueck
|
|
|
|
|
Try
AFX_MANAGE_STATE(AfxGetStaticModuleState( ));
at beginning of every member function exported or every DLL function explicit exported.
Oscar L.
|
|
|
|
|
Hm this AFX_MANAGE_STATE.. isn't that a MFC Specifc Macro/Function ?
I am only using the native WIN32 API and DirectX 8.0 no MFC whatsoever...
Till next time.
|
|
|
|