|
Better don't choose the easy way and do your homework alone. This page is for helping other people, not for doing their planning!
Don't try it, just do it!
|
|
|
|
|
so, where exactly is your problem ? problem definition ? code/compilation problem ?
what have you done yet ? did you start coding it ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
hi all expert out here
i'm working on a project, where create an ActiveX plug in for MSIE, which gv IE the ability to resizing image without needs for another stand-alone software. can i get some links for any tutorials which touch step by step development of this ActiveX control? i myself hv found some thru search engine, how ever still vy confuse and blur about it, especially about how do i get the event readimage from the browser.
beside it, i would like to make use of some image processing library to make my life easier, and implement some resamplign algorithms provided. Any suggestion? Intel OpenCV is a good one?
thx in advance for my replies i might get
|
|
|
|
|
Hello,
Hello,
I have a application where I have integrated an ActiveX ShockwaveFlash ! Since then, I cannot receive any longer my windows user(registered) messages ...
Please help,
alain
There is no way to happiness, happiness is the way !
|
|
|
|
|
I would like to send the Ctrl Alt Delete sequence to another computer similarily as the VNCViewer application does. How can this be done? IMsRdpClientNonScriptable::SendKeys is only for XP.
|
|
|
|
|
Hi all
I am using visual studio 6.0.
Whenever I add a new member function using the wizard (Add Member Function) I also want to the appropriate ( Predifined by me) comments to appear just before the function definition in the class implementation file.
How could I do that. ?
Thanks in advance.
I suppose am clear in definition my problem, please comment if am not.
Regards
The Best Relligion is Science.
Once you understand it, you will know God.
|
|
|
|
|
I encounter the following problem within my program. When the user is prompted to input a number the following happens to the calculations. When $2000 is input the calculation comes out fine i.e., 4% +$80.00. The problem comes if the user enters $2,000 the 4% shows up as o.o8. The comma is causing a problem. Can someone help me overcome this problem. Other than that the program works fine. I have tried cin.ignore() to no avail. Since I am just beginning C++ I am lost.
|
|
|
|
|
Hi
I am developing a VC++ application with Web Browser Control placed inside a dialog box. when the dialog get maximized i am not able to resize the web browser control's size.
can anybody help me to resolve this situation.
Thanks & Regards
Sarathy
|
|
|
|
|
dialogs children are not resized automatically.
you need to handle WM_SIZE and resize and reposition you web browser control.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I used a WebBrowser2 Class provided by VC++.net framework to handle the webbrowser control. But I dont know exactly what are the methods to be used from that class to reposition my Web Browser Control.
Can u help me by giving the methods to resize and reposition the Control.
Thnx
|
|
|
|
|
Hi. Does anybody here in this forum can help me for generating Gaussian, Uniform and Salt & Pepper Noise on a *.PGM image?
Thank you.
|
|
|
|
|
Hi,
I have created an ATL dll which has a modeless dialog box containing a WebBrowser control. My problem is that whenever I'm pressing TAB key over the WebBrowser control, the focus is not shifting to other controls or links within the web page which is getting displayed within the control.
I have implemented a hook to trap WH_GETMESSAGE message, after that I'm able to get response from the 4 arrow keys and TAB key, but that too within the dialog box.
I have to make the TAB key acting normal within the WebBrowser control that is within that dialog box.
Can anyone of you help me out? Thanks in advance.
Regards,
Ashish
|
|
|
|
|
i fail to envoke shutdown function.
i m trying to write the data recd in the socket buffer to a fiel.
though i manage it but it happens only i stop the application and not before.
i tried many alternatives but feel i m still short of something.
Seeing the given code can i be suggested why????
// THe following is a client thread
<br />
UINT ClientThread(LPVOID pParam) <br />
{<br />
char *buff;<br />
CString cmd;<br />
CString params;<br />
int n;<br />
int flag=0;<br />
BOOL auth=false;<br />
buff=(char *)malloc(1);<br />
SOCKET client=(SOCKET)pParam;<br />
recv(server,buff,sizeof(buff),0);<br />
while(true) <br />
{ftxt=fopen("d:\\amit\\COMMAND.txt","a+t");<br />
while(n=recv(client,buff,sizeof(char),0))<br />
{<br />
flag=1;<br />
<br />
<br />
fwrite(buff,sizeof(char),1,ftxt);<br />
<br />
if(n==SOCKET_ERROR ) <br />
break;<br />
buff[n]=0;<br />
cout<<buff;<br />
}<br />
shutdown(server,2); <br />
<br />
fclose(ftxt);<br />
<br />
}<br />
<br />
flag=0;<br />
closesocket(client);<br />
return 0;<br />
}<br />
amit mishra
|
|
|
|
|
I do not know about your actual problem, but you have other problems.
char *buff;
buff=(char *)malloc(1);
recv(server,buff,sizeof(buff),0);
recv(client,buff,sizeof(char),0);
buff[n]=0;
1) Allocating a 1 character buffer makes no since and you never free the memory allocated. Just declare a single character variable or a small buffer: char buff; or char buff[1];
2) These two statements are not the same thing:
recv(server,buff,sizeof(buff),0);
recv(client,buff,sizeof(char),0);
sizeof(buff) == sizeof(char*) NOT sizeof(char);
If you had declared the buff variable as buff[1] or buff then
sizeof(buff) would equal sizeof(char).
3) buff[n]=0;
if n is anything other than 0, then your thread may (should) crash.
buff[1] = 0; // ERROR
4) Unless you have a good reason, constantly opening and closing the file in the outer loop is probably a bad idea too!
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Taking char * buff has a strong reason behind as i m trying to recv a string eg. SYNTAX like <green>Operator play file abc.wav
yeah a typing err n i apologize fr recv(server,....) it was n shud be recv(client,....).
Constantly opening and closing file is reqd as the client may keep sending data.
eg. 1.
open channel ch_id,play file filename,record fiel fielrec , etc...
i want to envoke shutdown in the outer loop
n yes i ddnt free memory was my mistake..for once the data is written to the fiel the memory shud have been freed n file closed.
amit mishra
|
|
|
|
|
You still do not need to allocate a buffer, since all you need is a pointer to a single character.
Hmmm! I should have noted that recv(server,...) was a typo, since that was a typo, then shutdown(server...) is also a typo.
I looked up the functions used and here is what your code will do once the typos are fix:
FIRST TIME TRU LOOP:
1) Read 1 byte from the socket and then ignore it.
2) START INFINITE LOOP {
3) Open a file.
4) While( there is a byte received OR a SOCKET_ERROR ) {
5) copy byte to file. // before checking if error occured
6) if( error )
break;
}
7) Shut down socket so you can no longer send or receive and data.
(This means recv(...) will now always return SOCKET_ERROR)
8) Close file.
9) } // END OF INFINITE LOOP
AFTER FIRST LOOP:
1) START INFINITE LOOP {
2) Open file.
3) While( SOCKET_ERROR ) { // because of shutdown above
4) Write the last character received (during first loop).
5) Break out of loop (since it was a SOCKER_ERROR).
}
6) Try to shut down again (cann't because it was already done).
7) Close file.
8) } // END OF INFINITE LOOP
I do not think that was what you were trying to do, but that is what should be happening. There is also the fact that the INFINITE LOOP cann't be stoped properly (any other way if bad).
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
Hi Everybody,
I need some help. I would like to program a small tool like the Win.Task Manager which is able to show all running Threads and also the Virtual Memory which is in use... There should be an funktion for getting al the nessecary Informations but i can't find it. Hope some of guys can help me with some Ideas or maybe someone has already that kinda tool. Would be very nice of you.
|
|
|
|
|
|
I am trying to find Sourcecode for getting data from ListView Control using Win32 api.please provide me a working source code ,i know the api's ,but i am unable to use them.
any help is greatly apreciated.
Thanks
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
To work with the list view control in win32 you just SendMessage any of the LVM_* list view messages to the control. The info will either be the return value, or contained in the structures you pass in as the message parameter.
For example to get the number of items in the control:
int NumItems = SendMessage(HWNDListView, LVM_GETITEMCOUNT, 0, 0);
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Within you lies the power for good - Use it!
|
|
|
|
|
Thanks,
actually My Problem was solved yesterday only.i am trying to get List View data from a different Application through my program.May be that program hooked WM_GETTEXT ,that why every time it returning NULL.
Using DLL injection,i SOrted Out My Problem.Thanks For aBove.
PJ Arends wrote:
"Obviously ??? You're definitely a superstar!!!" mYkel - 21 Jun '04
Trust Me!! you are Definitely a Real SuperStar of CP
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Hi,
I am having a problem with updateResource API with strings.
I want to delete all the strings in a string Table and rewrite them in another language.
This creates 2 sting tables
1. the new destination string table with the new strings.
2. the older string table (All the strings are however deleted here)
on selecting the older sting table in the resource editor(VC.NET), the editor throws an error and shut down throws
I want to get rid of the older String table
PS NOTE: the application works properly in some computers but in some computers, the above mentioned problem occurs...
Could i know the reason for the same, and the process of getting rid of this problem..
thanks in advance..
Vinod
|
|
|
|
|
Hi,
I need to generate a lot of Excel files. I don't want to use Excel Automation (Excel version dependant, perf, etc. ). So, I'm looking for a good C++ library to create spreadsheets dynamically...
No C#, No .net. ActiveX would be ok. (actually, I'm using STL/ATL)
Nota:
CSV files do not match my requirements cause I have to customize cells, borders, colors and so on...
Can you help me ?
|
|
|
|
|
You distant past may still haunt you...
magicbassfr wrote: I need to generate a lot of Excel files. I don't want to use Excel Automation (Excel version dependant, perf, etc. ). So, I'm looking for a good C++ library to create spreadsheets dynamically...
I know you posted this quite some tome ago... therefore I am hoping you have found a solution as I have the same requirement... what did you end up using?
Thanks for any help...
|
|
|
|
|
i want the Imgocxd.hlp file im working on image scanning and saving it to hard disk if any one have it then pls giv me
Shahbaz kiani
|
|
|
|