|
Whats the major difference between CToolbar and CDialogBar ? .. Any fast help ???
|
|
|
|
|
Dialog bar can have controls that can otherwise only be placed on a Dialog box.
But toolbar can have buttons only. Ofcourse you can have combos and others too. But it's tedious.
Dialog bar is real cool.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Hi,
Does anyone know any c++ database layer generator from a ODBC source?
Best regards,
Jose.
|
|
|
|
|
maybe not exactly what you need, but there is one here[^] on CodeProject.
there are also these:
http://dtemplatelib.sourceforge.net/index.htm
http://otl.sourceforge.net/otl3.htm
http://www.codeproject.com/database/TemplateDB.asp
http://www.infobjects.com/pages/index.php?rubriqueid=2&srubriqueid=36&numpage=0&langue=2
(as far as i understood, it can use ODBC sources, but i am not completely sure)
|
|
|
|
|
Hi,
Thank you very much, but I'm looking for a database CRecordset derived classes code generator (like MSVC does) which includes bulk operations (SELECT and INSERT).
Kind regards,
Jose.
|
|
|
|
|
Hi All,
How to determine the change of icon of cursor at runtime and get that icon ?
Thanks,
|
|
|
|
|
WM_SETCURSOR
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
kendao wrote: How to determine the change of icon of cursor at runtime and get that icon ?
look for WM_SETCURSOR message and GetCursorInfo Function, also GetSystemMetrics
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
void fun(CArray<CString,CString>)
{
}
void fun(CArray<CString,CString>& )
{
}
why dose the argument in the first function produce a error(like this: error C2664: 'fun' : cannot convert parameter 1 from 'class CArray<enum myenum,enum myenum>' to 'class CArray<enum myenum,enum myenum>'No copy constructor available for class 'CArray<enum myenum,enum myenum>')
while the second funtion is right?
Thank you very much!!!
|
|
|
|
|
See the constructor CString in MSDN
never say die
-- modified at 4:52 Monday 2nd January, 2006
|
|
|
|
|
I've got you these from MSDN i think you will understand why? let me know in case not
SYMPTOMS
When a user-defined class contains a CArray and the same user-defined class is nested in another class, you may get the following errors if no copy constructor and assignment operator are provided for the class:
main.cpp(52): error C2664: 'Add' : cannot convert parameter 1 from 'class B' to 'class B' No copy constructor available for class 'B'
After adding a copy constructor, you get the following error message:
afxtempl.h(443): error C2582:'B' : 'operator =' function is unavailable afxtempl.h(1566):while compiling class-template member function 'void __thiscall CArray<class b,class="" b="">::SetAtGrow(int,class B)'
CAUSE
If the class that contains a CArray is nested in another class, then its objects must be copied.
The compiler does not construct an implicit copy constructor and copy assignment operator because the class in question has CArray as a member, which does not have a copy constructor and copy assignment operator, and CArray inherits from CObject, which has a protected copy construtor and a copy assignment operator. The compiler tries to generate the implicit ones, but that generates a call to CObject's version of them. Because they are protected, the above errors are generated.
RESOLUTION
You need to provide a copy constructor and an assignment operator for the class.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
This problem was corrected in Microsoft Visual C++ .NET.
MORE INFORMATION
The following example shows the correct use of the CArray class:
// No compiler option needed.
#include <afxtempl.h>
struct A
{
int i;
int j;
};
class B
{
public:
B();
~B();
// Need to define copy ctor and assignment operator.
B(const B& b){
// Your copy ctor body goes here.
}
/* const B& */ void operator= (const B& b) {
// Your assignment operator body goes here.
}
protected:
CArray<a, a=""> arrayA;
};
B::B(){}
B::~B(){}
class C
{
public:
C();
~C();
void addElement();
protected:
CArray<b, b=""> arrayB;
};
C::C(){}
C::~C(){}
void C::addElement()
{
B temp;
arrayB.Add(temp);
}
void main()
{
}
I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design
|
|
|
|
|
I got it,thank you very much.
I am a beginner of programming, I found that a lot of people like you can always find answers to questions quickly and correctly from on the Internet especially microsoft's web site.
could you please tell me how you do that ? is there relatively any way to follow? or is any books or articles teaching these things you can recommend to me?
Thank you again!!
-------------------
I am learning C++ and English
|
|
|
|
|
Dear, you can visit microsft.msdn.com, that is full of help, or simply use MSDN help that comes with Visual studio 6.0 ,2003 or 2005, just search for the error number and the whole help will be yours serving your needs, I was using C++ for 7 years, trust me go for C# and never for J#.
C# is easier, has the same libraries and more rich GUI wise.
I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design
|
|
|
|
|
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
The first one you are passing by value. So a copy constructor is required.
The second one you are passing by reference so no copy constructor is required. Only the reference is passed.
Jesus Loves You and Me <marquee direction="up" height="50" scrolldelay="1" step="1" scrollamount="1" style="background-color:'#44ccff'">
--Owner Drawn
--Nothing special
--Defeat is temporary but surrender is permanent
--Never say quits
--Jesus is Lord
|
|
|
|
|
Thank you very much!!!
-------------------
I am learning C++ and English
|
|
|
|
|
Hello and a Happy 2006 to all of you! ::- )
Short question: how can I add "version", "description" and "producer" information to a simple (empty project, no files created by the wizard) Win32 DLL? Somebody told me a few days ago that I can do it by adding a "Version" resource, but as I said, this is an "empty" Win32 DLL and I don't know what steps to take to add such a resource and what is its format.
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
insert->Resource
never say die
|
|
|
|
|
To add resource Script
Open the Workspace in which u have to add.Then click new and select Resource Script
never say die
|
|
|
|
|
Thank you very much, that's what I was looking for ::- ).
-= E C H Y S T T A S =-
The Greater Mind Balance
|
|
|
|
|
I created a JobObject in a process and am able to use AssignProcessToJobObject to add processes to the JobObject. But if I CreateJobObject from ProcessA and open this job object using OpenJobObject in ProcessB, I am not able to use AssignProcessToJobObject to add processes to this job object in ProcessB. I get error 5.
Is this supposed to work? Has anyone done this before?
thanks!
Happy 2006!
|
|
|
|
|
I am developing a program using MFC and I want to know the computer's IP to use it. Is there any function that can get the IP of the computer???
|
|
|
|
|
|
|
Using MSVC you can compile and link youre own kernel, and have it loaded into bochs a x86 emulator with this package. It contains everything you need except MSVC.
Once unzipped, simply double-click the bochs.bat to run the prebuilt kernel which will display letters across the screen letting you know it booted okay.
To modify and add your own code to the kernel, open the solution file and when ready press F7 to compile. F5 does not work, unless you specify the path for bochs.
YOU CAN NOT DEBUG YOUR KERNEL FROM MSVC. However, you can double-click bochsdbg.bat to run the bochs emulator in debug mode. Typing help at its command line will give you commands to debug the kernel.
When you are ready to try the kernel on a real PC, simply locate the floppy.img in the directory and use a utility to write this image directly to a floppy disk. Stick it in the drive and boot it up.
http://mcguire.sytes.net:8080/msvcoek.zip
http://mcguire.sytes.net:8080/
Here are some extra sites to help you get started along with forums:
http://www.osdev.net
http://www.osdever.net
http://www.mega-tokyo.com
http://www.osdcom.info
http://www.invalidsoftware.net
I would love to hear from anyone who thought this was a neat idea, useful, or full of problems. =)
kmcguire3413@hotmail.com
|
|
|
|