|
Are you sending the message to the correct window?
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
Is there any application written in VC++, regarding voice communication, you aware of; then please let me know.
There is one here at CP, but it gives lot of echoes and code not of good quality. If there any other present somewhere like MSDN or M$ research site, you aware of then please let me know.
BTW: i've already searched google but it is giving results that are either Unix related or difficult to compile in VC++
|
|
|
|
|
If you want to add Text-To-Speech then get the SDK from Microsoft, there are many examples in C++ which work well.
Old Simon HB9DRV
|
|
|
|
|
No, I don't want anything like text-to-speech. What i want is to transfer voice over lan/internet in peer-to-peer or client/server manner
|
|
|
|
|
There is example voice chat software in the DirectX SDK
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
hi all,
i found this error when i include 2 header files in each other's header file. i do this since i need to call each other's functions with pointer to link to these objects.
class A
{
public:
...
..
private:
B *b;
};
class B
{
public:
...
..
private:
B *b;
};
how can i solve this problem?
thanks!!!
chaze
|
|
|
|
|
the class declaration should like this!
class A
{
public:
...
..
private:
B *b;
};
class B
{
public:
...
..
private:
A *a;
};
|
|
|
|
|
Well, you include A, it includes B, it includes A, it includes B....
This sort of stuff messes with your build times as well. Do this:
a.h:
class b{};
class a
{
...
a.cpp:
#include "stdafx.h" // always at the top
@include "b.h"
and vice versa. You're telling the compiler that b is a class, it can worry about the rest later - this works because all you're storing is a pointer, it does not need to know any details about it until it gets to the implimentation ( the .cpp file)
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
hi,
your solution seems don't work... the compiler complain that redefine a class...
anything wrong with me?
|
|
|
|
|
don't include a.h from b.h (and vice versa)
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Close. That should be:
class b;
Not:
class b{};
The curly braces are the cause of the "Redefinition" errors.
--------
There are 10 types of people in this world. Those who know binary and those who don't.
|
|
|
|
|
Thanks - that's what I get for answering off the top of my head when I am tired.
Christian
No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002
Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002
During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
|
|
|
|
|
|
I done this before with the forward-declaration as decriped in other answers.
But after a while I most found that this is a lack of the programming & class architecture.
In all my cases I have changed it somehow to no "back referencing".
possible solution:
a) inheritence
b) merge the classes
c) Make a member
You earn visibility and avoid bugs.
|
|
|
|
|
hi,
first, i don't understand "forward-declaration"...
yes, i think inheritance would be useful!
let me try!
thanks,
chaze
|
|
|
|
|
I have a Dialog App with and it has a list control in it. I want to handle wm_vscroll in the CMyDlg class though, not in a class derived from CTreeCtrl. Everything I've tried doesn't seem to work. How can I do this?
There's always one more bug.
|
|
|
|
|
hi,
can someone please help me with some c++ problems?
i've created a vc++ project using visual studio .net.. my application is a sdi and is using the windows explorer style(left side using treeview and right side using listview).. i've populated my trees in the treeview already, but i don't know how to add/associate control id with event handler functions.. the visual studio .net wizard wasn't very user friendly and i can't seem to find the command in the wizard which allows me to add/associate event handler with control id.. any help is welcome.. thanx in advance.
|
|
|
|
|
Here is the code that I am working with;
void balance(float pmt)
{
float bal_k;
int k=1;
float pay;
float i=9/12;
const int n=36;
pay=pmt;
bal_k=pay*(1-((1+i)^(k-n))/i)
}
When I compile, the compiler says that because the left hand operator of the "bal_k" expression is of type float that it is illegal. I tried forcing the expression "i" to type int but it becomes zero and then there is a divide by zero error. How can I get around this?
|
|
|
|
|
actually, your problem is that the "^" is the XOR operator in C++. You will need to use the pow() function in <math.h> in order to do exponents.
Build a man a fire, and he will be warm for a day Light a man on fire, and he will be warm for the rest of his life!
|
|
|
|
|
How do I get the directory that the main exe of my app is in? I know it's probably pretty simple, but I couldn't find anything looking through the help index
|
|
|
|
|
|
|
Also try looking up GetCurrentDirectory in the MSDN help file.
|
|
|
|
|
any body could tell the correct perameters of logonuser function?
i am having a simple network of two computers and no domain i simple need passworad and user name to enter.
My service is running on one computer where i want to login and i want to login to the system using logonuser api or function but i could not successed yet.
plz tell mee correct parameters of it?
BOOL LogonUser(
LPTSTR lpszUsername,
LPTSTR lpszDomain,
LPTSTR lpszPassword,
DWORD dwLogonType,
DWORD dwLogonProvider,
PHANDLE phToken
);
r00d0034@yahoo.com
|
|
|
|
|
Notice this: The LogonUser function attempts to log a user on to the local computer. (LogonUser[^])
If you're trying to do that over the network, it won't work.
You could use OpenSCManager()[^] to open the SCM on the remote machine, then use the other Service Functions[^] to do things with the services on that machine.
|
|
|
|