|
Hi All,
I am getting the follwing error when I try to compilethe code...Please help
error C2664: '__thiscall CUSBMgr::CUSBMgr(const class CUSBMgr&)' : cannot convert parameter 1 from 'class CString' to 'const class CUSBMgr&'
Reason: cannot convert from 'class CString' to 'const class CUSBMgr'
No constructor could take the source type, or constructor overload resolution was ambiguous
Thanks in Advance
Ashok
|
|
|
|
|
Looks like the class CUSBMgr has no constructor that accepts a CString . Can you show the code in question?
Steve
|
|
|
|
|
Modify the constructor which takes CString as an argument.
I guess you are trying to provide the copy constructor for your class.
Could you please share the code which gives this error ?
Regards,
Paresh.
|
|
|
|
|
I wrote the code like this
CUSBMgr *ptrUSBManger= NULL;
CString strControlPortName = _T("");
ptrUSBManger = new CUSBMgr(strControlPortName);///error 2664????
this is the constructor
CUSBMgr::CUSBMgr(const CString& strControlPortName)
{
}
Thanks In Advance
Ashok
|
|
|
|
|
can you show the code which is constructing your object, because the compiler talks about CUSBMgr::CUSBMgr(const class CUSBMgr&)
|
|
|
|
|
Which compiler are you using ?
Regards,
Paresh.
|
|
|
|
|
|
OP means ? is it Original Poster ?
Regards,
Paresh.
|
|
|
|
|
for what i understand, yes...
|
|
|
|
|
How does a server manages to accept another connection when already one client is connected. Does it assignes a different port for different clients?
KIRAN PINJARLA
|
|
|
|
|
The server has a listener socket that waits to accept client connections - this is the accept(...) function. Once a client connection is accepted, it's assigned a new (seperate) client-socket - this is the return value from the accept(...) function. This client socket is used to communicate with the client (can be passed to a seperate thread) while the server can continue waiting for more clients with the listener socket by calling accept(...) again, and so on ...
Hope this helps ...
Guy.
|
|
|
|
|
Hi!
I want to set the bitrate at the time of encoding proccess can any body help me for this?
Thanks in advance.
"Success lies not in the result , But in the efforts !!!!!"
Amit Mistry - petlad -Gujarat-India
|
|
|
|
|
CShare dg;
dg.Domodal();
addlog();
Above mention is my code. when I call addlog after Domodal . It gives me an unhandled exception error and go to heap memory functions. but when I call addlog before the Domodal it executes fine.Please any one suggest some solution for this problem
S.yamini
|
|
|
|
|
What is addlog ? and what does work?
|
|
|
|
|
I have generated a MAP file for an MFC application with two threads. The load address in the MAP file is 0x00400000. But the program is showing a run-time error for an instruction at 0x77fcca41 which is refering to memory at 0xffffffff that could not be read. But there are no instruction at 0x77fcca41 in the MAP file. I would like to know whether anyone has come across such a problem and was able to trace the cause. If so some help is required
|
|
|
|
|
Debugging release builds using map files is outdated, unnecessary and inefficient. Simply enable debug information for your release build (be sure to do so for the compiler and linker) and debug as normal.
Steve
|
|
|
|
|
That address is in one of the OS DLLs. If you can repro the crash, run the EXE in the debugger and look at the stack trace when the crash happens. You can then look up the addresses that are on the stack.
|
|
|
|
|
HI im currently doing a proj on time capturing.... So i have a push button switch connected to the Rs232 to TTL Converter...the Rs232 in connected to the pc.. So can anybody help to give me the program to capture the time when the push button is pressed....Thanx
-- modified at 1:17 Thursday 26th April, 2007
|
|
|
|
|
braleping,
welcome to code project. Cross posting your messages to mulitple forums is not considered appropriate. Also where you ask for someone to "give me the program" please read the first message at the top of the forum "How to get an answer to your question"[^] Specifically item #2
led mike
|
|
|
|
|
hi friends,
pls any one give the code to upload vedio files in the database and retrieving these from database to one aspx page.its very urgent.
prasanna
|
|
|
|
|
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
does anyone know how to convert FAT to CDFS?
give me some source code please
|
|
|
|
|
That sounds like an odd requirement. Please explain.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
how to replace '............344' with empty string from the string like:
'1. visual basic.net ............344'
i am using regular expression in vb.net
this is the sample code
sText = Regex.Replace(sText, " (\\.+)\\d+", "");
thanx
|
|
|
|
|
Im sorry but I dont understand what you said you have a string (...344) and now you want to replace this string with null string on c++ ?
|
|
|
|