|
Thanks, Mike buddy!
What means "IntelliSense" in your reply?
regards,
Geo
|
|
|
|
|
Microsoft's general term for context-sensitive popup information - for example, the list of available methods that pops up after you type the '.' after an object name, or '->' after a pointer name, or the list of parameters for a method.
This information comes from a pre-parse of your declarations that the environment performs as you type. The parsed declarations are stored in the .NCB file with the same name as the project. This file is also used in the ClassView window - if VC ever complains that 'ClassView information is not available', it probably means that this file is read-only.
|
|
|
|
|
|
Thanks, Andrew buddy!
Geo
|
|
|
|
|
unresolved external symbol "public: __thiscall CDEPODLG::CDEPODLG(class CWnd *)" (??0CDEPODLG@@QAE@PAVCWnd@@@Z)
Debug/mems_fab.exe : fatal error LNK1120: 1 unresolved externals
what does this error means?
|
|
|
|
|
It means that the linker couldn't find a definition for the function it mentions (a constructor for the class CDEPODLG that takes a CWnd* parameter).
Either you didn't include the source file that contains that function in the project, or you haven't implemented it.
|
|
|
|
|
i have a database problem, description: i have dialog A with listbox and button A, based on what item user chose in listbox, i will pop up dialog B with the data record for that item when button A is pressed. Then in dialog B, user can edit the data of that current record, problem is whenevr user edit the current record, it actually overwrites my 1st record in the database. this means the pointer nt pointing to current record coz i open and find the record in dialog A's code then close database, then i open database again in dialog B, by then the pointer prob reset itself... how do i link these 2 dialogs with my edit working properly?
|
|
|
|
|
What SQL code are using for updating the record?
|
|
|
|
|
Hello, everyone!
After setting a break point on some statements, and run Build --> Start Debug --> Go from Build Menu of VC 6.0, the following dialog occurs:
----------
Does not contain debugging information. Press OK to continue.
----------
BTW: my project is a MFC project.
How to enable debug ability in my project?
Thanks in advance,
George
|
|
|
|
|
You're probably trying to debug a release build. For general debugging, you want to have a debug build. In the Build > Set Active Configuration dialog, you should have the configuration ending in 'Win32 Debug' selected.
The message pops up because the executable doesn't contain a section called the Debug Directory, which tells the debugger where to find debugging information. This information takes up a lot of space, and so is only generated if you ask for it.
If you need to debug a release build, you need to build it with debugging information turned on. In Project > Settings, select 'Win32 Release' in the Settings For box, then on the C++ tab, select the General category and select Program Database in the Debug Info drop-down. Then, on the Link tab, in the General category, check the Generate Debug Info box. Rebuild your project.
|
|
|
|
|
|
The book "Visual C++ .Net in 21 days" by SAMS in Chapter 14 said:
DLL can share functionality with other application. That means DLL
can let me build a set of application functionality to be used in an
application that another programmer is building. But how?
Right now I am building a project for my programming clas. The project
is a music program, and I'm using some functionality wirtten by another
programmer -- "speaker.dll" and "speak.c". Those files can let the computer
make peep sound. Any idea how do I use it?
|
|
|
|
|
"speaker.dll" and "speak.h" should lie in your project directory.
Usage: extern "C" void yourfun();
Hello World!
|
|
|
|
|
What's that? extern "C void yourfun();"? Where should I
put that statement? in the header file? Should I add it
to my project like the header file? We need to add the
header file to the project, then how about the speak.dll?
Thanks
|
|
|
|
|
I tried to add the speak.dll into my current project via the solution
explorer, and added it to the reference. However I got an error.
Anyone know what did I do wrong? How can I add a dll file into a
project.
|
|
|
|
|
|
it said: "Add Reference: Error adding reference to the project."
|
|
|
|
|
Converting a class I have into a class template
so that I can utilize it for various data types.
I've never used templates before, and am trying
to sort a few things out.
In the class I currently hold data in an array of
doubles by declaring a pointer to the data.
<br />
double* m_pdData;<br />
and then initialize using the operator new . So that
<br />
m_pdData = new[double dSize];<br />
I'm not entirely clear on how to declare these items
in a templated version of the class.
Would their equivalents be:
<br />
T* m_pdData;<br />
and
<br />
m_pdData = new[T dSize];<br />
or is there a little bit more to it??
Also, what is the notation convention?
ie: for a member function that's a pointer
to type double we prefix with m_pd
for a template what would be the equivalent...
m_p???
TIA.
John Theal
Physicist/Mathematical Programmer
Digital Immersion Software Corporation
Got CAD?
http://www.presenter3d.com[^]
http://www.merlin3d.com[^]
|
|
|
|
|
Change "m_pdData = new[T dSize];" to:
m_pdData = new T[dSize];
|
|
|
|
|
|
You can use your templated type anywhere you would use a normal type although you have to qualify it with the appropriate template parameters e.g.
<br />
T<int>* pData = new T<int>[ 100 ] ; <br />
I usually create a typedef to make things more readable:
<br />
typedef T<int> MyIntClass ; <br />
MyIntClass* pData = new MyIntClass[ 100 ] ;<br />
Likewise for pointers to member functions although there are pitfalls: you can't take the address of a function of the template class, you can only take the address of a function of an *instantiated* template class i.e. you can't do &T::fn, only &T<int>::fn.
WRT to variable naming, it's time to drop the Hungarian, it just doesn't work with OO. I just use m for member variables, p for pointers, g for globals and r for references. Anything else will drive you nuts!
"Sucks less" isn't progress - Kent Beck [^]
Awasu 1.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
|
Hey Friends
I am using MFC Doc/View architecture for printing some lines.
I want to display a Few Lines on the View and then take the printout.
I am trying to use MM_LOENGLISH map mode but could not get things done.
Can someone Please Give me a 10cm Line on Printer.
Also I wish to find out the paper size in cm or may be in pixel.
Trying to get through OnPreparePrinting 's PrintInfo but i get some -ve values of the rectangle
Plz Help
|
|
|
|
|
Here you go:
-------------------
-----------------------
Best not to ask too many serious questions Saturday night.
J.
----------------------------
|
|
|
|
|
I remembered that after i had posted the question.
|
|
|
|