|
:(Hello!,
I have a problem with static function, to access to member variable at same dialog class, both the static function and member variable are class members.
The problem begin when i try compile a program with a function in a AfxBeginThead instruction with errors. I solve that problem, using a static function, but now i can't access a data member variable, of the dialog class of my project.
Please help me!!!
Thank for your collaboration.
greating. mperlera
|
|
|
|
|
Since static functions do not have an implicit 'this' pointer, you cannot access any member (non-static) functions or data from within the static function. However, AfxBeginThread() allows to provide a user-defined parameter to your static thread function. In this case, you can pass in the pointer to the dialog as the user-defined parameter, and then use that within your thread function to get at the members.
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
What you usually do is something like the following:
UINT CMyClass::ThreadFunc(LPVOID p)
{
CMyClass* pMyClass = (CMyClass*)p;
p->SomeNonStaticFunc();
p->DataMember = 0;
...
return 0;
}
void CMyClass::SomeFunc()
{
AfxBeginThread(ThreadFunc, this);
}
--Dean
|
|
|
|
|
Hi folks:
I am trying to implement a program that can capture what I am doing and communicate with a "PC-wall" to instruct them to do the same.
To do this, I want to capture keystrokes and mouse movements/events and relay them over to the PC-wall.
Any good tutorials on how to capture such strokes and store them in script form so I can send it efficiently over the network ? I would also appreciate pointers to the task of unwrapping such a script to create the "replication scenario".
TIA
Ron
|
|
|
|
|
Search for "Real VNC" it's an AT&T program that acts like PCAnywhere and that comes with the full source...
who knows, you can use that program or even you can get the idea from there...
Hope this helps.
|
|
|
|
|
hi
harm harm, this is only for VC 7
so, is there an addin for the VC 6 ? the idea is very cool. msn messenger integrated in the visual studio IDE..
|
|
|
|
|
Is there a way to enable/disable a button whitout using MFC ? I am not really familliar with this type of operation. I've done it successfully for edit control :
<br />
::SendDlgItemMessage(hwndDlg, IDC_KEYPAIRNEWFILENAME, WM_ENABLE, TRUE, 0);<br />
::SendDlgItemMessage(hwndDlg, IDC_KEYPAIRNEWFILENAME, WM_ENABLE, FALSE, 0);<br />
and was expectiong something similar for buttons but everything I tried was unsuccessfull.
Thanks.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
J.-C. Gauthier - http://www.grandmenhir.com/
|
|
|
|
|
I going to show you a way to solve all you problems
Get WTL, in it there is a AtlCtrls.h file, in that there are all the standard controls like CButton
Not only is it easy to use but if you look at the code it wraps the SendMessage stuff. Also has a CString class and Arrays which allows you not to use MFC and it makes things smaller. Once you've used WTL you'll never go back to MFC
WTL is hard to find and I dont have the MSDN site, ask the ATL newsgroup they will know
LostGolfBall
|
|
|
|
|
|
Excellent !
This is exactly what I was looking for
Thanks for your input.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
J.-C. Gauthier - http://www.grandmenhir.com/
|
|
|
|
|
A friend of mine is developing a new TV producion application. He has his own company, and he was working in this area for many years, but rather in design than developing. You can check the sites www.ddrc.net and deepbluetv.com
His new app is finished only for 50-60% now, but it seems that it could break out Sony's bcast (and more). He's also looking for a good talents in this area, but the first problem he has to solve is with his investors. They want to see the presentation (its ok), the source code (he doesn't want to show it all before contract signing, just parts of it) and they also want to see some of his old codes as a reference.
In the old times he was working as a codeveloper of Maya and Xsi, but as the code is a propriety of the owners, he can't get the source (neither of his work) they don't want to give it to him for many "commercional reasons".
So he is looking for a good code, or just parts of a code which can fit the needs, anything about 3D graphics, paint, text, sound editing, tv production, etc.
If there is anyone who can help out with a source code, please contact me at jackye@dracon.sk or UIN 28834215. I don't know what to offer you as repay, I am just a searcher and problem solver. Maybe you can get a good paying job (in Madrid or UK) or any other help. I'll contact yourselves and everything other (the deal) is your business.
Thanks for your patience
Regards
Jackye
|
|
|
|
|
I am writing an app using the DirectX api, when i get hold of a file i'am using the renderfile() method from the IGraphBuilder, then using the MediaControl interface to control the file. But the problem is that i do not want to render the file on screen is there an other way to read the file without rendering the video strem?
Any help would be great as i have had lots of nightless sleep on this.
please... help!
|
|
|
|
|
Render the file to a NullRenderer, which is supplied as a standard Windows renderer. Look under Graph->Insert->DirectShow Filters in GraphEdit.
|
|
|
|
|
Thanks for that, i found some thing about the NullRenderer in the api now, i will give that a go! if i have more questions can i post it to you ?
thankyou for your help
|
|
|
|
|
I dont not have prior knowledge of Visual C++ but only the implementation of normal level C code in it.
Why iam posting the message is to some expert to help me out to decide the project of any kind in Visual C++ as the time required for whole development is 8 months(analysis and development). I must have to do it in Visual C++.
excluding chat server.
|
|
|
|
|
Here are some ideas.
FTP Client
Address book (w/ support for ASP, PHP, SQL,etc.).
Media Player
Image Viewer/Editor
Kuphryn
|
|
|
|
|
salamz hasan
you can make some project related to audio conferencing ....
apart from it you can make some java IDE in visual c++
as u may have seen(J builder, visual cafe', IBM Visual age for Java) the thing u have to do is to connect jdk with ur interface .... the thing needs research ... go ahead
Regards
Nauman Ghazi
Bahria University
|
|
|
|
|
i am also interested in some ting like text+audio+video conferencing but the problem is that i dont want to use java for it. however what do u think is java,vc++ or c# which one would be the most appropriate for that.
|
|
|
|
|
Hiya I need help with this. I can not get telnet to work for me. I have tried looking on the net for examples, and have found loads. But not one of them will work for me.
I have a sockets client app done and am trying to use telnet to connect to it.
I can open up telnet no problem, were it says Microsoft telnet.
Then at the Microsoft Telnet> command line I type: o 127.0.0.1.
But every time it says that the target machine actively refused it!!!
I am running the sockets app with the loop back address 127.0.0.1.
Any ideas what I am doing wrong??
Thanks.
|
|
|
|
|
Which port is the client app listening? Add the port number to the telnet command, e.g if your app is on port 123 do: telnet 127.0.0.1 123
|
|
|
|
|
yeah thanks, have tried that. The default port is 23. The port the client listens on is 4000.
i.e 127.0.0.0 4000
When u run telnet, is it always considered to be the server??
Thanks.
|
|
|
|
|
Try running it like this instead:
telnet 127.0.0.1 Port
Where Port = the port number your app is listening on. The way you are doing it tries to conenct to the telnet port (23) by default. Unless of course your app is listening to port 23...
--Dean
|
|
|
|
|
Ok trying something else now. I have changed the client to send a message to telnet. The client app takes a port and a message to send when the send button is pressed.
I have a little server that I have tested my client with so I know that the server definitly works. But I really want to get telnet to see my client app. So how do I get telnet to see my client app and output the message.
Thanks.
|
|
|
|
|
Ok trying something else now. I have changed the client to send a message to telnet, which I want to use ase server for testing. The client app takes a port and a message to send when the send button is pressed.
I have a little server that I have tested my client with so I know that the server definitly works. But I really want to get telnet to see my client app. So how do I get telnet to see my client app and output the message.
Thanks.
|
|
|
|
|
Hmm, now you have a different problem. The telnet program is a client application, as is the application you are writing. You can't really connect the two together because neither is acting like the server and accepting an incoming connection. The best thing to do would probably be to add some code to your small server app to print all of the incoming packets it receives from your client app.
--Dean
|
|
|
|