|
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
|
|
|
|
|
i would like to know how do one package a software. i have developed a small software but would like to know how do i package it? there a some dependent libraries like MFCxx.dll, dao350.dll, msjet35.dll etc. do i carry the dlls along with my exe and install in the target machine? or can i create a single executable linking all the dlls with my .exe file. I know i can statically link all the mfc dlls to my .exe file. But still i am left with some other dlls which i don't know how to link. please suggest wat can be done.
|
|
|
|
|
This is a little bit of black magic.
First of all, you will want a proper installset creator. InstallShield, WISE or a free one (there is one called Inno Setup, if memory serves). DLLs installed will have to be version check, and if appropriate, registered, and installset creators helps with this.
You'll have to make sure of all the DLLs used by your application. Some are system DLLs, and should not be installed. You can search for the DLL name on MSDN, for example.
Some stuff, like ODBC, has its own redistributable installation. Some installset creators (like Wise) has premade "components" installing those.
Depends.exe can be used to find out the DLLs that the application uses, not only the obvious ones, but also DLLs used by the DLLs.
This is not a trivial process, and best is to have clean machines with the supported Windows versions to try on - something that I realize is impossible for small shareware and the such.
In your case it seems like you want to install MFC and ODBC, you can also search for this on MSDN.
|
|
|
|
|
well, i have tried using installshield to create a setup program.
depends.exe gives a list of files. do i include all? some a system dlls.
also i find dependency on MSCHRT20.OCX and MSHFLXGD.OCX. is it enough that i just include these files in my installshield project? also, how do i register it? i have not found any option in installshield to install a .dll or .ocx file?
thanx
|
|
|
|
|
Anonymous wrote:
depends.exe gives a list of files. do i include all? some a system dlls.
As I gstated in my previous post, you'll have to check MSDN for this. By going to www.microsoft.com and searching for
+"MSCHRT20.OCX" +installing
as an example, I could see that the control is included with VB and VFP, so you would have to install it.
As for how to install them, you'll have to check the InstallShield documentation. For Wise, which I use, I would set the file to be automatically registered and version checked. I'm sure there is support in InstallShield for this, otherwise it would be quite useless
|
|
|
|
|
thnx. i guess i got how to do.
|
|
|
|
|
A decent installation programme is a good investment - think how many phone calls you won't have to answer
The tigress is here
|
|
|
|
|
HI~
In WinCE (pocket pc), how to set a window to scrollable in vertical and honzontal direction?
Thanks
|
|
|
|
|
Hi,
I have an SDI app that puts stuff on the view with an OnDraw() override. It updates automatically whenever there is any Document activity but I would like to trigger a screen refresh after certain non-document events, like changes in other dialogs. I don't know how to piggyback another message map on top of OnDraw without screwing it up. Can you offer any clues?
I thought this code would work but no go: "illegal call of non-static member function". It's a virtual override generated by the ClassWizard.
CDC *pDC;
pDC = pMain->GetDC();
CAppView::OnDraw( pDC );
Thanks in advance for any advice.
|
|
|
|
|
You have to have an instance of a class to call functions of it (unless it's staic, as the error message notes).
OnDraw should not be called directly even if you have a pointer to the view, however. You should invalidate it and redraw, there are several mechanisms for this. Personally, I prefer RedrawWindow .
You can either pass a pointer to the view to the different unrelated classes, which might not be a good idea structurewise, or redraw the complete main window. This can be accomplished by calling AfxGetMainWnd()->RedrawWindow();
|
|
|
|
|
Thank you very much for your fast and helpful repsonse. RedrawWindow works nicely.
|
|
|
|
|
I want to create dial-in connection as dial-up connection,
I can create dial-up connection by using RasSetEntryProperties
Can you tell me which funciton be used for dial-in creation.
Thanks a lot!
|
|
|
|
|
char [10] = 10 bytes
unsigned int= 4 bytes
char [1] = 1 byte
MAJOR = 4 bytes
10 + 4 + 1 + 4 = 19 bytes
but it outputs 24 bytes!!
typedef enum {
CS, MIS, ME, PHI
}MAJOR;
typedef struct STUDENT_t {
char name[10];
unsigned int ID;
char sex[1];
MAJOR major;
}STUDENT;
int main(void)
{
printf("%d\n", sizeof(STUDENT));
return 0;
}
-----------------------------
C++ without virtual functions is not OO. Programming with classes but without dynamic binding is called "object based", but not "object oriented".
|
|
|
|