|
You need to open a TAPI-device before you can receive any events - use lineOpen.
Most likely you will wan't to preceede that with lineNegotiateAPIVersion and lineGetDevCaps.
|
|
|
|
|
thanx...that really was the problem though it is still not solved but im working.
|
|
|
|
|
Do any of the printf() statements work?
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Hi,
I am trying to run a project which is built from other system.
I installed Visual studio 2005 and trying to run the same project in different system.
but its building successfully.But i am getting run-time error as
"The application failed to initialize properly (0xc0150002).click on OK to terminate the application" .
What may be the problem.I am using third party dlls and lib files also.
Any help
Thanks in advance
Raj
|
|
|
|
|
raju_shiva wrote: I installed Visual studio 2005 and trying to run the same project in different system.
This sentence is not clear: did you install Visual Studio on the computer on which you are trying to run your application ? If no, then the problem is probably that you didn't install the redistributable package on the target machine (see here[^]). If you have the Visual Studio SP1, you have to select the appropriate download from the list at the bottom of the page.
|
|
|
|
|
Cedric Moonen wrote: did you install Visual Studio on the computer on which you are trying to run your application ?
Yes,i have installed Visual studio 2005 on the system which i am trying to run
Cedric Moonen wrote: you have to select the appropriate download from the list at the bottom of the page.
I have also installed Service pack 1(VS80sp1-KB971090-X86-INTL.exe) and vcredist_x86 on the running system
How can i know,which to be downloaded
Thanks
raj
|
|
|
|
|
See if this tool helps: Dependency Walker[^]
Regards
--
"Programming is an art that fights back!"
|
|
|
|
|
Try to use the depends to see the dependent DLL. If there some one missing?
|
|
|
|
|
How to get current application path in C++?
|
|
|
|
|
In Windows, it is GetCurrentDirectory .
|
|
|
|
|
AFAIK, the C++ language itself doesn't provide such functionality. And neither does any of the C runtime libraries (someone correct me if I am wrong). You have to use the underlying OS's (or any runtime environment's) APIs to achieve that. For Windows, Superman's reply holds.
...byte till it megahertz...
|
|
|
|
|
What about getcwd() / _getcwd()? Declared in direct.h or unistd.h for Unix
But for question the OP:
GetModuleFileName() returns the fully qualified path of the application.
Alcohol. The cause of, and the solution to, all of life's problems - Homer Simpson
|
|
|
|
|
kakan wrote: What about getcwd() / _getcwd()? Declared in direct.h or unistd.h for Unix
Oh YEAH! Thanks! direct.h is in Windows too.
...byte till it megahertz...
|
|
|
|
|
If you are targeting different platforms, I heartily recommend to use boost::filesystem which abstracts this functionality in a very comfortable manner. If only one platform is targeted and this platform is windows, use designated Microsoft frameworks instead of this low level APIs.
|
|
|
|
|
by googling[^] you can get most of the answers without posting it again and can save time.
--
"Programming is an art that fights back!"
|
|
|
|
|
void CGetCurrentDirectoryDlg::OnBnClickedOk()
{
TCHAR tcPathName[100];
GetCurrentDirectory(100, tcPathName);
}
|
|
|
|
|
Hi...
I have created a polydraw.
CPaintDC dc (this);
CRect rect;
GetClientRect (&rect);
CPen pen (PS_SOLID, 0, RGB (0, 0, 255));
CPen* pOldPen = dc.SelectObject (&pen);
POINT aPoint3[7] = { 10, 10, 100, 150, 150, 150, 10, 100, 500,150,150, 100, 10, 10 };
BYTE types[7] = {PT_MOVETO, PT_LINETO, PT_LINETO, PT_BEZIERTO,PT_BEZIERTO, PT_BEZIERTO, PT_LINETO};
dc.PolyDraw(aPoint3,types,7);
dc.SelectObject (pOldPen);
Now i want to fill this polydraw. How can do that?
Any help will be appriciated...
Thanks...
G.Paulraj
|
|
|
|
|
Use CDC::FloodFill or CDC::ExtFloodFill .
|
|
|
|
|
Thanks super man.
FloodFill and ExtFloodFill asks HTC. how can get that variable from my code.
G.Paulraj
|
|
|
|
|
What do you mean by HTC?
You have to specify a point that lies within the bounding lines and the color of the lines.
You need to find some way to get this point.
|
|
|
|
|
Hi...
I am using visual studio 2008. The syntax for FloodFill is
FloodFill(HTC htc, int x, int y, COLERREF color);
if i use like FloodFill(10,100,RGB(255,255,255));,
there will be a syntax error like FlootFill does not take 3 arguments.
G.Paulraj
|
|
|
|
|
As mentioned by Superman, you have to use FloodFill from CDC, not the the global function (and it is HDC, not HTC). So, call FloddFill on the paint DC that you already have.
|
|
|
|
|
Thanks Cédric Moonen.
dc.FloodFill(1,1,RGB(255,255,255));
i have called like above. but full screen color has been changed. how to change the color of that particular polydraw area.
thanks...
G.Paulraj
|
|
|
|
|
The x and y has to be inside the polygon.
1, 1 lies outside in your case.
Try 15, 15.
|
|
|
|
|
is there any example to use calendar control with static text/edit box/combo box
when i click on static text/edit box/combo box the calendar contol should display. when i select any date it should hide. or when i click anywhere on dislog then calendar control should hide. which events are use for these actions.
which when i select any date which event tell me the selected date
|
|
|
|