|
hey Friends..
CDC::Arc(...) is not supported in eVC++ (WinCE).
Please give me some hint to draw Arc and Pie without using MFC methods
thanks ...
|
|
|
|
|
look at Win32 Api Arc and ArcTo
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Win32 Api Arc and ArcTo ...etc are not supported in eVC++(WinCE)
|
|
|
|
|
Win32 Api arenot supported in WinCE!!
|
|
|
|
|
Mmmm,
Have you looked into the API how does the function works? Maybe is it possible to code it separatelly.
I guess it is possible to program it giving the two points, a radio and a bool.
With the two points you limit the circle being drawn,
with the radio you take how flat or round should it be, a line is an arc of a circle with infinite radio.
with the bool you say: the shortest way between the points or the other side of the circle?
The equation of a circle is: x² + y² = r²
I hope it helps.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
|
|
|
|
|
I answered the same question a few days ago. Different poster, same class?
And on examination, you're the same person who asked it!
Forget MFC - the CDC functions are only thin wrappers around the original Win32 GDI function calls.
Does ::Ellipse not work? Could you not find the documentation for ::SelectClipRgn, or ::CreatePolygonRgn? Or do they not work in WinCE?
If you don't want windows to do the heavy lifting for you, then you're going to have to roll your sleeves up and learn a bit more about sin & cos...
Iain.
|
|
|
|
|
Hello friends,
In my one of the project i require to send the data to the function resides on internet. Can i use the Socket on Port 80 ( which is reserved for HTTP)
or is there another way
|
|
|
|
|
Gaurang Shah 033 wrote: In my one of the project i require to send the data to the function resides on internet. Can i use the Socket on Port 80 ( which is reserved for HTTP)
or is there another way
is HTTP* or Internet* api of any use
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
I'm using WinInet to call a Perl script on a webserver but at the moment I do it synchronously. Sometimes this gives real problems as it can take a few seconds for the InternetOpenUrl command to execute. I really want to do this asynchronously but I'm having a lot of trouble understanding how to do this. I don't need to read anything back from the webserver so I'm hoping there's a simple solution to this.
Can anyone help?
Sean O'Connor
http://www.windowsgames.co.uk
|
|
|
|
|
I think I've got it to work using this code but I'd be very grateful if anybody who knows their WinInet could take a look and let me know if I'm doing anything wrong (eg not freeing up things when I should be):
HINTERNET hInternetSession;
HINTERNET hURL;
typedef struct
{
HWND hWindow;
int nStatusList;
HINTERNET hResource;
char szMemo[512];
} REQUEST_CONTEXT;
REQUEST_CONTEXT request_context;
void __stdcall InternetCallbackFunction(HINTERNET hInternet,
DWORD dwContext,
DWORD dwInternetStatus,
LPVOID lpvStatusInformation,
DWORD dwStatusInformationLength)
{
REQUEST_CONTEXT *cpContext;
cpContext= (REQUEST_CONTEXT*)dwContext;
switch (dwInternetStatus)
{
case INTERNET_STATUS_HANDLE_CREATED:
hURL = hInternet;
break;
case INTERNET_STATUS_REQUEST_COMPLETE:
InternetCloseHandle(hURL);
InternetSetStatusCallback(hInternetSession, NULL);
InternetCloseHandle(hInternetSession);
break;
}
}
BOOL SendURL(char* szURL)
{
hInternetSession = InternetOpen("Microsoft Internet Explorer", INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL, INTERNET_FLAG_ASYNC);
if (hInternetSession != NULL)
{
InternetSetStatusCallback(hInternetSession, (INTERNET_STATUS_CALLBACK)InternetCallbackFunction);
hURL = InternetOpenUrl(hInternetSession, szURL, NULL, 0, INTERNET_FLAG_RELOAD | INTERNET_FLAG_PRAGMA_NOCACHE | INTERNET_FLAG_NO_CACHE_WRITE, (unsigned long)(&request_context));
return TRUE;
}
return FALSE;
}
-- modified at 7:01 Wednesday 22nd August, 2007
|
|
|
|
|
How can the "work offline" option in internet explorer be changed to "work online" using MFC.
Thanks in advance
|
|
|
|
|
InternetSetOption
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
Has INTERNET_OPTION_OFFLINE_MODE been implemented?
"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
|
|
|
|
|
DavidCrow wrote: Has INTERNET_OPTION_OFFLINE_MODE been implemented?
naah... i am just looking for api InternetSetOffline.. but seems i missed the decalaration!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
and you still in my signature
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
|
As per libtiff mailing list , partial scanlines can' be read ?
Is there any other solution for this? or it can be done?
|
|
|
|
|
Hi
I have a remote PC with a Watchdog application running on it. This is monitoring the health of other applications runing on the PC, and if it detects a problem, will reset the PC. All applications are written in Visual c++, OS is XP home.
Is it possible to send a message over the network to the Watchdog app to instruct it to reset the remote PC?
Will FindWindow() work over a network (using the IP afddress of the remote machine), or is there another way of getting the handle of the Watchdog application?
Thanks for any advice you can give!
Mike
|
|
|
|
|
Mike Winter wrote: I have a remote PC with a Watchdog application running on it. This is monitoring the health of other applications runing on the PC, and if it detects a problem, will reset the PC. All applications are written in Visual c++, OS is XP home.
Is it possible to send a message over the network to the Watchdog app to instruct it to reset the remote PC?
Will FindWindow() work over a network (using the IP afddress of the remote machine), or is there another way of getting the handle of the Watchdog application?
for IPC over network, there are very few method available one of them is SOCKET, Remote Procdeure Call and NamedPipes( i havn't used Named pipes over network).
but Socket is most easy way to communicate over network!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief
|
|
|
|
|
I got the article to recieve UDP packet done in vc++ from codeproject which is available in this link
http://www.codeproject.com/useritems/sniffer.asp?print=true[^],
but what I need to do is to recieve only Voice UDP packets and needs to store it in a voice format using some codec.
The conversation made in particular Avaya IP phone connected in Private LAN need to be recorded and stored in wav format, can anyone help me out????
Rajeche
|
|
|
|
|
Hi All,
Is there any APIs to get geographical information (like USA, CAlifornia) by pinging to any URL from an MFC application.
1. Assume that there is always access to internet when the application is running.
Sunil
|
|
|
|
|
did you have a look at Google Maps APIs ?
|
|
|
|
|
Thanks. But that is for Java dependant right.
What if i need to use it in MFC?
Sunil
|
|
|
|
|
sunilpv1982 wrote: But that is for Java dependant right.
you're kidding, right ? you did even looked at it, didn't you ?
|
|
|
|
|
got what you meant. But those are for web site development ONLY, if i am right.
mine is an MFC application..
could you provide code snippet in case you have used Google apis in MFC?
Sunil
|
|
|
|