|
|
HI,
while Integrating Latest development in my code , i faced these errors.
please look these errors , and give your advice to fix this.
ClientDlgs4.obj : error LNK2001: unresolved external symbol "public: __thiscall CDynamicAccessorEx::CDynamicAccessorEx(void)" (??0CDynamicAccessorEx@@QAE@XZ)<br />
ClientDlgs4.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall CDynamicAccessorEx::~CDynamicAccessorEx(void)" (??1CDynamicAccessorEx@@UAE@XZ)<br />
UnicodeReleaseEnterprise/DUClient.exe : fatal error LNK1120: 2 unresolved externals
Thanks,
Royal.
|
|
|
|
|
Where does the CDynamicAccessorEx class comes from ? Did you make sure that the cpp file of this file is part of your project ? A frequent error is also to declare a construtor and destructor but forget to give a body (and it seems that is your case, because only those two functions are missing).
Make sure you have a body for those (even if it is an empty one).
|
|
|
|
|
construtor and destructor have function body, CDynamicAccessorEx is part of project.
|
|
|
|
|
Royaltvk wrote: construtor and destructor have function body
Can you post those functions here ?
|
|
|
|
|
Hi,
Have you provided the definition for all the class members ?
Regards,
Paresh.
|
|
|
|
|
See here.
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
i want ot make chat server plz tell me how can i write the code for fd_write
i have to perform if one client sent data to server and sever sent data to their particular client
plz give me anwser as soon as
priyanka chauhan
gujarat india
|
|
|
|
|
priya_chauhan09 wrote: tell me how can i write the code for fd_write
Use a keyboard and an IDE like Visual Studio. That's how we do it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
HI
Plz don’t discourage junior members
|
|
|
|
|
Rajesh R Subramanian wrote: Use a keyboard and an IDE like Visual Studio. That's how we do it.
Hi
Plz don’t discourage junior members
|
|
|
|
|
mirtu wrote: don’t discourage junior members
I appreciate your attitude toward encouraging people on the forum. But, the fact that the OP is a junior member has nothing to do with my reply. I would have given an even more discouraging reply if the OP was a senior member. Generally, a person posting a query on a message board is expected to read the guidelines and follow it. The same applies to this message board too. I wouldn't be discussing any further with you on this topic.
PS: Please try to avoid using SMS language as I believe that you have a full QWERTY keyboard.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: Please try to avoid using SMS language as I believe that you have a full QWERTY keyboard.
I'll have to remember that one.
|
|
|
|
|
This way you can write...
WSAEventSelect(listeningSocket, hEvent1, FD_READ | FD_WRITE | FD_CONNECT | FD_ACCEPT)
or loat of example on codeproject or codeguru.
|
|
|
|
|
See Here[^] and Here[^].
"It is easy enough to be friendly to one's friends. But to befriend the one who regards himself as your enemy is the quintessence of true religion. The other is mere business."
- Mohandas Karamchand Gandhi
|
|
|
|
|
Hi Firends,
I am using the fllowing code to create a meta file
HDC hDCMeta = CreateEnhMetaFile(m_hDC, "D:\Data.emf", NULL, buf);
m_hDc is handle to printer dc. buf represents the name of application.
after creating the meta file I am drawing some information with m_hDC and at the end closing the metafile.
m_hMeta = CloseEnhMetaFile( hDCMeta );
CloseEnhMetaFile() function fails as it returns NULL but when tring to get the error message using GetLastError its returning ERROR_SUCCESS.
Before calling CloseEnhMetaFile() I prompted a messagebox and checked that the file Data.emf created in D:\ drive with size more than 1 GB. (I am having 1 GB ram).
soon after CloseEnhMetaFile() call fails the file also get delete disk.
Please help.
Sandip
|
|
|
|
|
g_sandipan wrote: HDC hDCMeta = CreateEnhMetaFile(m_hDC, "D:\Data.emf", NULL, buf);
How is this working with only a single backslash?
"Normal is getting dressed in clothes that you buy for work and driving through traffic in a car that you are still paying for, in order to get to the job you need to pay for the clothes and the car and the house you leave vacant all day so you can afford to live in it." - Ellen Goodman
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi friends,
I have unicode string like
wstring filename = "??????? ?????, ????? ? ª ????";
which I am trying to convert to normal multibyte string using
WideCharToMultiByte API.
But the conversion fails. Please refer Following code
int Length ;
// Here I call this API to get length of the wstring
char* output = new char[Length];
int foundUnmapable = FALSE;
My call is like
WideCharToMultiByte(CP_ACP,
NULL,
input.c_str(),
-1,
output,
len,
NULL,
&foundUnmapable );
This code fails saying that foundUnmapable = TRUE;
GetLastError() return 1008 error number which means
"An attempt was made to reference a token that does not exist."
Can anybody point out the issue here?
|
|
|
|
|
One correction
wstring filename = "??????? ?????, ????? ? ª ????";
Which is actually string of special characters. But I am unable to post those chars in this web page. It automatically gets converted to "????..."
|
|
|
|
|
What type of input vriable "input" which you used as 3 argument in WideCharToMultiByte and what is the value of 6 argument len ?
|
|
|
|
|
sorry for mistakes. I actually wrote code here.
// Please assume that
input = filename.
and I am using WideCharToMultiByte API to get length.
Please do not look at syntex errors out here.
The main issue is
I have wstring which contains special characters.
I am trying to convert this wstring to mutibyte string using API
WideCharToMultiByte with code page "CP_ACP"
And it fails.
Note: I dont know how to paste those special chars here for your reference.
|
|
|
|
|
If you are using WideCharToMultiByte to get length then pass NULL as 5th argument and 0 as 6th argument. It will return length.
|
|
|
|
|
I already said that I have working code at my place.
I know how to get length and other things.
Please see my earlier posting for exact question.
|
|
|
|
|
vikrams wrote: This code fails saying that foundUnmapable = TRUE;
from WideCharToMultiByte reference [^]
lpUsedDefaultChar
[in] Points to a flag that indicates whether a default character was used. The flag is set to TRUE if one or more wide characters in the source string cannot be represented in the specified code page. Otherwise, the flag is set to FALSE. This parameter may be NULL. The function is faster when both lpDefaultChar and lpUsedDefaultChar are NULL.
vikrams wrote: This code fails saying that foundUnmapable = TRUE;
How do you know it fails?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
I got the point.
I have such file name with speical chars.
But when I replace all these chars using say 's'. File opening fails.
|
|
|
|