|
hi
i want write unicode text(arabic) in button control
(VC++ .NET) how do i do it?
sincerely
|
|
|
|
|
I am in the process of making a form with VC++. How would I make the form a child window of another application? What I am trying to do is make my form the child window of Counter-Strike. If Counter-Strike is minimized, the form will be minimized with it, and the form can only be moved around within the Counter-Strike borders. How would I go about doing this? I have been looking and asking around for some time now, and haven't found anything, so I'm guessing this isn't going to be easy? Any help would be appreciated.
Dev578
|
|
|
|
|
You would need to inject your code (in the form of a DLL) into the CS process before you can create windows. THere are articles here on CP on this subject (in fact I think one is on the front page in the top 5 most popular articles)
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0.1! | RightClick-Encrypt
You cannot stop me with paramecium alone!
|
|
|
|
|
...and this which will get your StemId banned since Steam will think that you are trying to cheat.
And if the paths that I have followed/have tread against the flow/there is no need for sorrow
I am coming home
Return, Crüxshadows
|
|
|
|
|
Hi,
I want to create a server that listens on a particular port for clients.
Once the client connects, the server will send data.
I have created
CAsyncSocket serverSocket;
serverSocket.Create(8000);
serverSocket.Listen(1);
//In function OnAccept
..OnAccept(int nErrorCode)
{
serverSocket.Accept(sendSock, NULL, NULL);
.
.
}
My Problem is OnAccept never gets called, when I start up my client
Any help!!!!!!!
thanx
Gaurav
|
|
|
|
|
CAsyncSocket clienSocket;
clienSocket.Create(8001);//or any integer
clienSocket.Connect(8000);
execute this code on a click event of a dialog box then the onAccept of server will get executed automatically.
its better derive to 2 different classes from CAsyncSocket as CMyClientSocket and CMyServerSocket instead of directly using the object of CAsyncSocket.
never say die
|
|
|
|
|
I am using a customized title bar with my MDI application. For certain events, I change the background color and text of the title bar. Seems that my CCaptionPainter caption painter class(retrieved from this site as well)paints the title bar correctly. However, I am having flickering issues where it appears the old title bar setting gets repainted over the new one, and vice versa and so on. Seems maybe the child frame is trying to repaint everything as well. Any ideas?
|
|
|
|
|
Hellou all,
Well, my question really isn't about how you insert an ordinary child item.
Instead imagine you have a parent and a child to that parent. Now the user adds another child to that parent (and that new item should then be the parent of the existing child).
How would one do that? Would I have to loop through each existing child element and insert it again with the new child as the parent (and then deleting the old existing one, of course)?? This just sounds a bit like a waste of resources to me :S
Any suggestions?
Thanks
|
|
|
|
|
How do I send a PrintScreen key to a window using windows message?
I mean, which Windows Message should I send and which lparam/wparam values?
Thanks
~Mike
|
|
|
|
|
Many of you may be familiar with the xKill application packaged with some distributions of linux... if you are not familiar with it: when you open the app, it takes over your mouse cursor and then the next window you click on is closed ( not responding apps, normal apps, folders, etc... )....
I'm thinking about doing a windows version of this program, but I had some general questions and one specific question.. the specific question is: how would i got about getting the id of a window with a mouse click on that window? my general questions are really just for general help, ie helpful links or tips that anyone can provide - i'm rather new to win32/MFC programming so any help that can be provided to me would be great.... Thanks in advance to anyone who replies
~Will
|
|
|
|
|
The WindowFromPoint() function will return the HWND of a window given a point that is in the window.
Ryan "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"
|
|
|
|
|
and from the HWND, you could call GetWindowThreadProcessId to get the process ID and then call TerminateProcess.
onwards and upwards...
|
|
|
|
|
Great, I'll look into those tips - thank you for the help
~will
|
|
|
|
|
One of the Best Software Consulting Company in New Jersey looking for IT Professionals to join the company on H1B and sponsor Green card immediately with labor is 3-4 months timeframe, and we have Offices in different locations.
We offer Best Billing rates to the consultants, if you have project in your hand you will get maximum portion of the Billing Rate completely negotiable. You will get Bonus when you refer a friend or associate to the company.
No Rejection/Query in the entire company history for H1/Greencard sponsorship.
We are direct vendors to IBM, Pearson Education, and Verizon etc.
We are also looking for consultants who have skilled in Data Warehousing, .NET & J2EE Technologies, SAP and Oracle Apps etc. We are ready to sponsor H1s and Green Cards.
YOU CAN CONTACT ME AT keith_002@hotmail.com.
|
|
|
|
|
This is just spam. First you have only posted this message, but you have posted it in 5 forums, all unrelated to your spam. Work Issues forum would have been much more appropriate.
Matt Newman
If you chose to continue this discussion, I am fully prepared to make you my bitch. I invite you to ask around, and you'll find out that I'm quite capable of doing so - John Simmons on Trolls
|
|
|
|
|
Anyone have any experience with integrating custom help collections into the new help that comes with VS.NET? I have been able to do this with the older version of MSDN that came with VS6, but I am totally confused by the new system.
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Dear All!
i am doing my final CS project on Voice Masking system. I am trying to implement Fast Fourier Transform to do the masking on a voice input from mic..all i want right now is the idea that can masking be done through FFT or is there any other option ..or if anyone can provide me with the algorithm for masking(changing) voice
just for info : its not analysis its simple changing voice so that original voice cant be recognised. TAPI is also involved in it.
regards
jenny
|
|
|
|
|
Is there an API function where I can call the Windows Authentication Dialog Box in my application. The same Dialog box used when accessing a password protected web page on the internet.
Thanks.
|
|
|
|
|
CredUIPromptForCredentials .
Only works for Windows XP and Server 2003.
|
|
|
|
|
How would one go about getting at the version information from the project's version resource (VS_VERSION_INFO) at runtime? I'm familiar with how to get the version information from an external file (an exe or dll on disk for example) but what about from the currently running executable? I'm interested in loading this info so it can be displayed on the about box, etc. Then updating the version info in the resource editor and re-building will automatically update the info on the about box, etc.
Any ideas? Thanks!
Ed
--
Edward Livingston
(aka ExtraLean)
--
"I still maintain that seeing a nipple is far less disturbing than seeing someone get their brains blown out." -- Chris Maunder
|
|
|
|
|
I suppose GetFileVersionInfo() could be of interest for you.
--
C'est normal!
|
|
|
|
|
You obtain it the same way as you would for an external file, except you just use the module handle of your existing executable or DLL handle from the load library call you made.
I used one of the file version information classes from this web site and then used AfxGetInstanceHandle() to obtain the EXE module handle.
|
|
|
|
|
With a little work I found this "CFileVersionInfo" at codeproject, it should help.
Seeing as how you always know where the .exe of your program is I would probubly have used the functions for retrieving external file version information.
Good luck!
INTP
|
|
|
|
|
Thanks all!
I'm not sure why I didn't think to use the same method (reading the info from the file iteself) I guess I was too caught up in looking for a Load* function similar to LoadString, etc.
Thanks again, it's gonna work like a charm
--
Edward Livingston
(aka ExtraLean)
--
"I still maintain that seeing a nipple is far less disturbing than seeing someone get their brains blown out." -- Chris Maunder
|
|
|
|
|
Alright, I'm still pretty new to c++, and well my final project in programming is due tomorrow, i'm doign alright so far, but I cant get the values of my "right" and "wrong" variables to write to a file. I'll post my whole code so that you can see exactly what I'm doing here, its just a program that takes questions from a text file, puts them out to the screen and keeps track of what the user answers right and wrong, i need to put the users score into a text file and thats what screwing me up, thanks.
#include<iostream.h>
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
void main()
{
FILE *fp, *fb;
char line[100],ans,name[20],qfile[20];
char extension[5]= ".txt",entadmin;
int x=0,flag=0,y=0;
int right=0, wrong=0;
cout<<"Enter your name \n";
cin>>name;
strcat(name,extension);
fb=fopen(name,"w");
cout<<"What library of questions do you want to open (eg. quest.txt) ? \n";
cin>>qfile;
if((fp=fopen(qfile,"r"))==0){
cout<<"This file does not exist";
exit(0);
}
while(fgets(line,100,fp)!=NULL){
x++;
if(x!=6)
puts(line);
if(((x%6)==0)&&(x>0)){
fflush(stdin);
ans=getch();
if(ans==line[0])
{
cout<<"Right\n";
right++;
x=0;
}
else
{
cout<<"Wrong\n";
y=0;
wrong++;
}
}
}
cout<<",you got "<<right<<" correct, and "<<wrong<<" wrong";
fcloseall();
}
|
|
|
|