|
pri_skit wrote: The problem is (.h) file is created after compiling the project
that's impossible !!!
the .obj, .lib, .dll or .exe are, but not .h, .c or .cpp because they are the SOURCE of a program !
|
|
|
|
|
When i run Console Win 32 App,then it reads excel & converts it into file(which may be of any type .txt,.c,.cpp,.h).This file needs to be used in another project Embedded VC++ 4.0(MFC Supported).How this could be done?
This shold happen: When i compile Embedded VC++ 4.0(MFC Supported) Application,then it automatically runs another .exe (Win 32 Cosole App) first,which in turn generate a file & this file needs to be used in project.
Is there any more clarification required????
priyank
|
|
|
|
|
WTF does excel come to do here ?
can you talk a little more about that file content ?
|
|
|
|
|
Excel contains strings in 9 language.This (.exe) project(Win32) read excel & convert to file(containg CString str[]="Lang1",.,.,.,"lang7") format string.
priyank
|
|
|
|
|
toxcct wrote: that's impossible !!!
That is possible. Sometimes, some header files and source files are generated by external tools. An example is when you use CORBA (it is a technology that allows you to make calls on a remote class, something similar to DCOM i think). You need to provide an IDL file (Interface Description Language). From this file, a specific CORBA compiler will generate header files and source files that need to be used by your program. So, it is logical that this tool is executed before the compilation of your program.
|
|
|
|
|
yes yes, i know about CORBA.
but here, it seemed to me that the OP were not really of that advanced knowledge
|
|
|
|
|
It depends of the IDE you are using.
But in general, you have several options. The easiest one, is to open the "Tool Build Order" option (in the 'Project' menu, for VC2005) and move the custom build tool before.
Or instead of using a custom build step, you can use the 'Build events' specify your command line to be executed in the 'Pre-Build Event'.
The last option is a little bit more complex: you can create a custom build rule yourself and so create a new 'tool'. But that's is a little bit comlicated.
|
|
|
|
|
hi!
i want to get my quality system in my VC project. how do i it do?
Zo.Naderi-Iran
|
|
|
|
|
Could you please expalin / elaborate more on the requirement ?
Regards,
Paresh.
|
|
|
|
|
yes,
i want to call SetPixel function in my project, but i should know what the quality system sets (16bit or 32bit)
Zo.Naderi-Iran
|
|
|
|
|
Use the API GetDeviceCaps .
Regards,
Paresh.
|
|
|
|
|
oh, yes. thank you
CDC* pdc = GetDC();<br />
int iBits = pdc->GetDeviceCaps(BITSPIXEL);
Zo.Naderi-Iran
|
|
|
|
|
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
|
|
|
|