|
|
How to determine the width of space in antialiased font?
|
|
|
|
|
I all.
I got the following class headers (on declaration):
template <class t=""> class tVar { blá, blá, blá... };
template <class t=""> class tDoubleLinkNode : public tVar<t> { blá, blá, blá... };
template <class t=""> class tDoubleLinkList : public tVar<tdoublelinknode<t> *> { blá, blá, blá... };
class tMemCount : public tDoubleLinkList<smemcount> { blá, blá, blá... };
and sMemCount is:
typedef struct sMemCount {
uWord Amount : 10; // Amount of memory (0..1023)
eMemMultiplier Multiplier : 6; // Memory multiplier (0..63)
// This is a enum
} sMemCount;
And many other classes that do not interest rigth now. I have done the whole thing in separated modules, so, the classes definitions (such as the ones above) are in some .h file and body functions in .cpp file. The thing is, i am getting the following errors under VC++ 6.0:
memc.obj : error LNK2001: unresolved external symbol "public: __thiscall tDoubleLinkList<struct smemcount="">::~tDoubleLinkList<struct smemcount="">(void)" (??1?$tDoubleLinkList@UsMemCount@@@@QAE@XZ)
memc.obj : error LNK2001: unresolved external symbol "public: __thiscall tDoubleLinkNode<struct smemcount="">::tDoubleLinkNode<struct smemcount="">(void)" (??0?$tDoubleLinkNode@UsMemCount@@@@QAE@XZ)
memc.obj : error LNK2001: unresolved external symbol "public: __thiscall tDoubleLinkList<struct smemcount="">::tDoubleLinkList<struct smemcount="">(void)" (??0?$tDoubleLinkList@UsMemCount@@@@QAE@XZ)
Debug/ucd.exe : fatal error LNK1120: 3 unresolved externals
In the .h file i have the constructor definition:
public:
tDoubleLinkList ( void );
And in the .cpp i have written:
template <class t=""> tDoubleLinkList<t>::tDoubleLinkList( void )
And the same to all.
Any sugestion about those errors !? Thx!
|
|
|
|
|
|
Now I get the information such as "Broadcom 440x 10/100 Intergrated Controller",How can I get the MAC address ?
|
|
|
|
|
|
I used getmac to know the MAC address from command prompt but
it is showing me an error
C:\Documents and Settings\Administrator>getmac
'getMAC' is not recognized as an internal or external command,
operable program or batch file.
My OS is WIN 2000.
pls help me.Thanx in advance
-- modified at 1:08 Tuesday 6th December, 2005
|
|
|
|
|
Your error message simply means that Windows can't find the program (getmac.exe), neither in "C:\Documents and Settings\Administrator" nor in the PATH.
So, where did you put that program?
|
|
|
|
|
oops!
I searched but there is nothing like getmac.exe in computer.
Is there any other way.
Pls help me.Thanx in advance
-- modified at 2:34 Tuesday 6th December, 2005
|
|
|
|
|
|
Now I cannot download the soure code from project,So could someone EMAIL me or paste the crucial soure code here?
thanks a lot
liu
fly high
|
|
|
|
|
|
|
I'm looking for some exercises regarding Visual C++. If you happen to know some sites or have some, please reply to my post. Thanks!
|
|
|
|
|
I'm looking for some exercises
Exercise means Bench Press, Pullups, Pushups kind of?
If you happen to know some sites or have some, please reply to my post.
This is the best.
-- modified at 22:41 Monday 5th December, 2005
|
|
|
|
|
If u mean u want to learn VC++
just this site ur in is great
1>Codeproject
2>MSDN nothing can help u better then msdn.
ok
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
How do I generate random numbers between 0 and 99?
|
|
|
|
|
|
|
41 (you thought i'd say 42, so 41 is random).
... want another - 53.
Feel free to ask me whenever you want another one.
... or you can do what the other Chris said - use srand()/rand().
Or, you can do what most encryption engines do:
- accumulate a blob of random input data:
- current time
- current mouse position
- pixel color at mouse position
- process id, thread id
- mac address
- ...
- create a hash of the blob e.g. using SHA
SHA1 is 20 bytes long so you could use the resulting hash to get 20 random numbers by taking hash[i] % 100, where 0 < i < 20.
...cmk
Save the whales - collect the whole set
|
|
|
|
|
Hi there.
I would be greatful if someone have abit of sample code for me. I'm sure this isn't a difficult problem to someone that uses ADO/C++ on a regular basis.
I want to put a Checkbox column into a C++'s CDataGrid object (dialog based program). Do bear in mind, it's VC 6.0 and not .NET I'm using here.
Thanks..
w
|
|
|
|
|
Deleting intermediate files and output files for project 'tmplts_12052005 - Win32 Debug'.
--------------------Configuration: tmplts_12052005 - Win32 Debug--------------------
Compiling...
test.c
c:\tmplts_12052005\vector.h(4) : error C2143: syntax error : missing '{' before '<'
c:\tmplts_12052005\vector.h(4) : error C2059: syntax error : '<'
c:\tmplts_12052005\test.c(5) : error C2146: syntax error : missing ')' before identifier 'size'
c:\tmplts_12052005\test.c(5) : error C2061: syntax error : identifier 'size'
c:\tmplts_12052005\test.c(5) : error C2059: syntax error : ';'
c:\tmplts_12052005\test.c(5) : error C2059: syntax error : ')'
c:\tmplts_12052005\test.c(5) : error C2449: found '{' at file scope (missing function header?)
c:\tmplts_12052005\test.c(31) : error C2001: newline in constant
c:\tmplts_12052005\test.c(34) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
tmplts_12052005.exe - 9 error(s), 0 warning(s)
-----------------------------------------------------------------------------------
/* File Vector.h */
//typedef int T;
template <class t="">
class Vector {
public:
struct RANGE_ERROR {};
Vector (size_t len = 100): size_ (len) {
if (this->size_ <= 0)
throw Vector<t>::RANGE_ERROR();
else this->buf_ = new T[this->size_];
}
~Vector (void) { delete [] this->buf_; }
size_t size (void) const { return this->size_; }
T &operator[] (size_t i) {
if (this->in_range (i))
return this->buf_[i];
else throw Vector<t>::RANGE_ERROR ();
}
protected:
T &elem (size_t i) { return this->buf_[i]; }
private:
size_t size;
T *buf_;
bool in_range (size_t i) {
return i >= 0 && i < this->size_;
}
};
==================================================================
ssnn
|
|
|
|
|
Does anyone know how to get/retrieve selected text from IE or Word?
Any information, whatsoever, would be most appreciated.
Be well.
|
|
|
|
|
|
Thank you very very much and (btw) your article is excellent. Don't know how I missed it. Gets my 5.
Thanks again and be well.
|
|
|
|