|
HI,
I want send and recive Data on Printer Port
how ???
any sample code help
thanx
|
|
|
|
|
i have built an application which was running fine till now as administrator. now, i tried running it as a user, it failed. Does a user do not have access to C:\WINNT\system32\drivers files. actually i am loading a driver(.sys) in my application. so when it runs as a user(other than administrator), it fails to load the driver. but it is very important that all the user logged on to the machine can run the application. also i do not want to move the driver from the C:\WINNT\system32\drivers directory. Is there any way out?
|
|
|
|
|
Hi guys
I'm trying to change my mouse icon when it's passing over a zone in a Picture Control but unsuccesfully.Could you explain me what steps I have to do to implement this?
I'm trying with OnMouseMove to control the zone,and it detects perfectly my zone, but once there, how can I change my mouse icon (remember that is not a button it's a Picture control).I've tried a LoadIcon unsuccesfully.
Thanks in advance.
Doc
|
|
|
|
|
use m_nActiveCursor as a member to store the ID of the cursor which has to be shown
int the OnMouseMove change the cursor as you do using:
SetCursor(LoadCursor( AfxGetInstanceHandle(), MAKEINTRESOURCE(m_nActiveCursor)) );
Also set the cursor in the OnSetCursor correct.
SetCursor(LoadCursor( AfxGetInstanceHandle(), MAKEINTRESOURCE(m_nActiveCursor)) );
Hope this helps.
|
|
|
|
|
Hi GDavy
Still nothing happens
When the mouse is over the zone, still the arrow is shown
void CLinksCtrl::OnMouseMove(UINT nFlags, CPoint point)
{
if ((point.x>7)&&(point.x<188)&&(point.y>0)&&(point.y<23)) {
m_nActiveCursor=1; //HAND
} else {
m_nActiveCursor=32512; // DEFAULT ARROW
}
SetCursor(LoadCursor( AfxGetInstanceHandle(), MAKEINTRESOURCE(m_nActiveCursor)));
CStatic::OnMouseMove(nFlags, point);
}
BOOL CLinksCtrl::OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message)
{
SetCursor(LoadCursor( AfxGetInstanceHandle(), MAKEINTRESOURCE(m_nActiveCursor)));
return CStatic::OnSetCursor(pWnd, nHitTest, message);
}
Something wrong?
Thanks
Doc
|
|
|
|
|
return TRUE in the OnSetCursor function... ( NOT return CStatic::OnSet...)
Regards
|
|
|
|
|
Sorry
Same result
I'll keep trying
Maybe some Control Property or not?
Thanks
Doc
|
|
|
|
|
hmm... Sorry did not notice this earlier
your values are predefined arrow and hand pointers, in that case you do not need
the MAKEINTRESOURCE macro. you need this macro if the id would be the id from a cursor you manually added in the resources.
|
|
|
|
|
Hi,
I have a header file which is included in 1 project which has to be included in another too. I can copy it to the other project and then include it, but when the header changes i have to copy the file again to the other location.
How can i easily maintain only 1 version of that file?
I have seen i can import a header file from another location, but when i do #include "Myheader.h" or #include <myheader.h> the header isn't found neither.
Can you help?
|
|
|
|
|
You need to ensure that the location of MyHeader.h is in the include path for both of your projects.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
First of all, thanks for the reply.
I had included the location of 'Myheader.h' file in the first project like 'C:\vss\'. I knew it was going to be in a subdirectory of 'C:\vss'. I've now replaced it with the exact directory and now the compiler finds the file!! Really strange. (No recursive search?)
I've alsoo written a class in project 2 that needs to be accessed from project 1 alsoo. I have set my include paths correctly. It links in project2 correctly but in project1 it receives errors while linking. If i put the files in directory of project 2, the class compiles without a problem. How is this possible?
|
|
|
|
|
Are you talking about a header file and a lib ?
If so you need to ensure the compiler knows where the .lib file is also. It isn't sufficient to just state where the header is.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
Antony,
I meant a class having a .h (header) and a .cpp .
|
|
|
|
|
What is the link error message you are receiving?
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Williams (Little Britain)
|
|
|
|
|
HI,
I have a Device to whom i can Allot an IP.
I only know its IP now ..
I want to Connect to to it.
How can i do ...
i not know abut its port and cannot set any port
asny way to solve plz
thanx
|
|
|
|
|
Hi,
Can someone tell me how to get the path to a user's home directory "c:\Documents and settings\username". I tried reading the desktop path from HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders, and remove "\\Desktop" from it, but then on Non-english OS, the Desktop is called something else.
So is there any standard API that can give me this path?
Thanks
~f
|
|
|
|
|
Take a look at GetUserProfileDirectory() in the MSDN
|
|
|
|
|
Hey thanks for the pointer. The documentation says it is not supported under win98, so I just read the environment variable USREPROFILE.
|
|
|
|
|
Flace wrote:
The documentation says it is not supported under win98...
So use SHGetFolderPath(..., CSIDL_PROFILE, ...) instead.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I've got a multidocument MFC application: a text view and OpenGL view. I've used accelerators for arrows, Home, End keystrokes to provide user some keyboard interface for OpenGL view. But these accelerators are engaged as weel in text view, and, as there're no handlers for them in text view class, won't work at all.
My question is: how can I 'divide' these accelerators between two views using default handlers in text view and my own handlers in OpenGL view?
Thank you for your attention.
gopa12345
Any answers?
|
|
|
|
|
sir,
we are developing applications in TAPI.
can we connect with the remote phoneset(such that the phone set is individual one without having any MODEM or any other Hardware)by using TAPI in VC++ application.if any other information to solve my probles also welcome.
|
|
|
|
|
Your question is very unclear.
TAPI is an API layer which communicates to a hardware telephony device such as a modem or pbx via a device driver. Therefore you will need some hardware to communicate with. Unless you are using IP based communication, in that case TAPI will use the network card.
Post a more detailed description of your problem so that we can better answer you.
Michael
CP Blog [^]
|
|
|
|
|
hello Mr.Michael,
I am novice regarding TAPI.what is my aim is that ,i want to develop an application such that by using that application i have to use my personal computer(which is connected with the internet)to talk with the remote Telephone which is connected only with the conventional Telephone network.
can you tell me please the path which i should follow to develop that application?
is TAPI is suitable for me?
|
|
|
|
|
A lot depends on what hardware is sitting between your internet connection and the remote telephone.
Voice over IP (VOIP) can't talk to a normal telephone without hardware to convert the IP voice data to a
Have a read of this FAQ[^]
TAPI will let you make the outgoing call, but it does not handle the actual voice/data transmission. You'll need a seperate API to do that.
Michael
CP Blog [^]
|
|
|
|
|
can you tel me how can i implement my project as i want to make a program which will respond the caller .wav file or a desired song instead of ordinary ring tone
Kashish sukhija
|
|
|
|