|
|
Gracias, ya me habia supuesto que era algún tipo de bug de Microsoft.
|
|
|
|
|
Hi...
I have a webserver on which I use a Perl Script to do WebBased file upload.
The script is called upload.pl. If I call the script http://server/cgi-bin/upload.pl is shows 3 EditBoxes...
1. UID
2. Password
3. Path of the file to upload !!!
I want to call the script with a Dialog-Based Application (Visual C++)...
first I tried to simply call the upload-script by
http://server/cgi-bin/upload.pl?uid=xxx&pwd=yyy&file=C:\autoexec.bat&submit=Upload
But this won't work... I sniffed on my Ethernet Card to look what my PC sends to the WebServer !!!
Then I see that the client sends not the FileName c:\autoexec.bat but the DATA of c:\autoexec.bat to the webserver !!!
The upload Script calls a
How could I send the File to the WebServer with Visual C++ (binaries,text) ???
Have anyone an idea ??? or knows sources on the www where I will find a solution ???
Please help...
cu Agent_White
|
|
|
|
|
does really nobody have a tip for me
cu Agent_White
|
|
|
|
|
You need to do a HTTP POST operation containing the file data. See the HTML standard to see how the response should be formatted.
|
|
|
|
|
Thanx for your answer... the URL was is a good place to look at !!!
But there are still problems left... because I have no experience with wininet at all !!!
In my opinion... to solve the problem...
I must read the Data of the file in a buffer (no problem) and then send it with the HTTP request (big problem) !!!
Maybe someone knows a source which posts a file to a server ???
cu Agent_White
|
|
|
|
|
May I know the algorithm or the procedure to combine two different TIFF Images into one single TIFF Image?? ALso I'm specific in combining the two pages of single TIFF image into one single Page...so, i would appreciate if someone could reply me
thanks
sukesh sabbani
|
|
|
|
|
From memory GDI+ will read and write TIFF. Then it's a case of using BitmapData to step through both bitmaps and combine the data as you see fit.
Christian
As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet.
Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.
|
|
|
|
|
Try www.6ixsoft.com. FreeImage has a MergeImages function (or something like that).
|
|
|
|
|
hi all,
i am in a situation that there is a higher priority thread for wait event from a transmission bus. the bus will receive large amount of data in short period and go back to silent. it will miss data if i put too much processing code in that thread. so, i put the processing code in a new thread.
so, could anyone tell me any method to pass data to other thread savely ( make sure all data is received by the processing thread. if i use filemapping or global variable, i can't sure the processing thread can received b4 new data is received from receiving thread but i can't wait for processing thread to finish its work ) anyone can help?
thanks,
jim
|
|
|
|
|
Derive a new class from stl::queue and put in locking in push_front and pop_back. Make the queue known to both your threads. Rock'n'Roll.
|
|
|
|
|
How to find the end points of all lines (hatch) filling a polygon?. The lines are inclined with an angle and have a constant spacing between them.
|
|
|
|
|
Rotate and scale your polygon so that the hatching is transformed to a horizontal hatching with spacing 1. Then, for each segment of your polygon, points within it with integer y are hatching end points. Transform them back and you're done.
For a hatching angle θ and a spacing s, the resulting transformation is:
x' = ( x cos θ + y sin θ) / s,
y' = (-x sin θ + y cos θ) / s.
And the reverse transformation is:
x = ( x' cos θ - y' sin θ) · s,
y = ( x' sin θ + y' cos θ) · s.
Good luck.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
combobox has no getitemtext function?
i must save its copy as item's data?
t!
|
|
|
|
|
You must use GetLBText method:
CComboBox combo;
CString str;
combo.GetLBText( combo.GetCurSel(), str );
in "str" you have items data.
|
|
|
|
|
to get proper item's text depends on initial ownerdrawfixed flag
is it normal?
(btw. now i found mfc ignores later changes of CBS_OWNERDRAWFIXED for DrawItem (not)calls)
t!
|
|
|
|
|
problem found
with owner draw must have has strings too
fine day
t!
|
|
|
|
|
I have a CRichEditCtrl in a CView class. I need to know when the control gets the focus and I don't know how to do it.
This is what I've done so far:
//On MyView.h
afx_msg void OnStupidCtrlGetFocus(NMHDR* pNMHDR, LRESULT* pResult);
//On MyView.cpp
ON_NOTIFY(NM_SETFOCUS, ID_STUPIDRICHEDITCTRL, OnStupidCtrlGetFocus)
void CMyView::OnStupidCtrlGetFocus(NMHDR* pNMHDR, LRESULT* pResult)
{
//Do some work
}
But it doesn't work !!! what am I doing wrong ????
Thanks in advance..
|
|
|
|
|
Hi all,
I create a button dynamically but as it is now, I create the button ID myself like this cause in this case I can't use the editor to create it:
#define ID_MY_BUTTON 33333
But how do I ensure a unique ID for this dynamically created button?
/Tommy
|
|
|
|
|
You can use _APS_NEXT_CONTROL_VALUE. Resource editor store here value which will be given to the next created control - so values above this not used.
Acid will burn!
|
|
|
|
|
i afraid it is good for first control but not for system dialog or any ole ctrls
there he must search all parent's sub-windows or similar (?)
t!
|
|
|
|
|
Ok, so you mean that I can do like this:
m_pBtn->Create(_T("Button"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(0,0,19,14), this, _APS_NEXT_CONTROL_VALUE);
Because m_pBtn is not associated with a resource editor created control, it's createed from scratch and subclassed dynamically.
/T
|
|
|
|
|
This true only for first item, then you must increase value youreself:
m_pBtn->Create(_T("Button1"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(0,0,19,14), this, _APS_NEXT_CONTROL_VALUE+1);
m_pBtn->Create(_T("Button2"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(0,0,19,14), this, _APS_NEXT_CONTROL_VALUE+2);
You keeping unique values. You need do this only in one scope, so when you
create item with different's parent you can use same ID's:
m_pBtn->Create(_T("Button1"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(0,0,19,14), pWnd1, _APS_NEXT_CONTROL_VALUE);
m_pBtn->Create(_T("Button2"), WS_CHILD | WS_VISIBLE | BS_PUSHBUTTON, CRect(0,0,19,14), pWnd2, _APS_NEXT_CONTROL_VALUE);
There is no problem, couse different parent's: pWnd1, pWnd2.
Acid Will Burn!
|
|
|
|
|
|
Hi again,
What must I include in order to use the _APS_NEXT_CON... value?
|
|
|
|