|
well ppl!
i have got a real trouble here ,
i am trying to send the 'APPE' (Append) to a FTP server
the other commands like REST or TYPE go well but the data storing or retriving commands give error
WINSOCK error 10038 - socket operaton on non-socket
what to do about it
how to remove it so that i be able to send some data !
PLZZZZZZZZZZ help me
|
|
|
|
|
Hi all,
I'm looking to make a list of common code bugs so I can toss the basic code into a c++ console app and compile so I can practice debugging.
Please let me know if this is a stupid idea.
Jeff
newb: Jack of all Trades
|
|
|
|
|
|
Nishant S wrote:
You don't have to go to all that bother. Just try writing an app of a basic level of complexity and the errors will come on their own. Then you can do all the debugging you want.
So unbelievably true
- Matt Newman / Windows XP Activist
-Sonork ID: 100.11179
"You can't seriously believe that you could get away with suing someone over quoting text from a message posted in a public forum, can you?" - John Simmons
|
|
|
|
|
True indeed!
Best regards,
Alexandru Savescu
|
|
|
|
|
how can i handle Events Sinking with pure c++, no MFC or ATL??.
|
|
|
|
|
|
thanx a lot
|
|
|
|
|
Hey Guys
I have created a list view derived class and have passed it in to a Document Template and it displays as a plain white window. I was wondering how do i actually get the list ctrl to appear inside it.
|
|
|
|
|
Do you like a grid?
Kuphryn
|
|
|
|
|
What i want to do is just have a standard list control ie CListctrl displayed inside this CListView. But i can't get the list view to display how to i create the list view inside the window.
|
|
|
|
|
You need to superclass it.
To hangover to remember how..
/M
- Don't sweat the petty things, and don't pet the sweaty things.
|
|
|
|
|
|
is there any data in it?
To explain Donald Knuth's relevance to computing is like explaining Paul's relevance to the Catholic Church. He isn't God, he isn't the Son of God, but he was sent by God to explain God to the masses. /. #3848917
|
|
|
|
|
helloo
im trying to disable my menu controls from my prog.
for dat i seek help from msdn , but dat code give me a run time exception..
if out there , there is any one who know how to disable menus ...plz hlpme out
looking forward from all the gurus of code
|
|
|
|
|
What code are you using at the moment?
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it" Nish on life [methinks]
"It's The Soapbox; topics are optional" Shog 9
|
|
|
|
|
Just try using AppendMenu [Click Here for the MSDN explanation.]
Just use the MF_DISABLED flag to disable what you need.
Something like this:
pMenu->AppendMenu(MF_STRING | MF_DISABLED, 0, "Insert");
"When a friend hurts us, we should write it down in the sand, where the winds of forgiveness get in charge of erasing it away, and when something great happens, we should engrave it in the stone of the memory of the heart, where no wind can erase it" Nish on life [methinks]
"It's The Soapbox; topics are optional" Shog 9
|
|
|
|
|
How can i declare the IDL interface, so a COM object can be assigned to a property of another COM object, and getting it back, just like the code below in VB.
-------------------------------------------------------------
Dim conn as MyLib.MyConnect
Dim msg as MyLib.MyMessage
Dim sentMsg as MyLib.MyMessage
set conn = new MyLib.MyConnect
set msg = new MyLib.MyMessage
msg.MsgData = "Hello, how are you "
set conn.Message = msg
MyConnect.SendMessage()
set sentMsg = conn.Message
--------------------------------------------------------------
Thanks
|
|
|
|
|
Do as the following:
[propputref, helpstring("property Message")] HRESULT Message([in] IUnknown* newVal);
[propgetref, helpstring("property Message")] HRESULT Message([out,retval] IUnknown** newVal);
Goodluck,
Dudi
|
|
|
|
|
normally, c++ calling is syncronized, here is an example:
//caller
int i;
GetInt(i);
//function
void GetInt(int&i)
{
............
i=5;
//point a
more code here
}//point b, end function
my question is, the caller gets value i=5 at point a or point b?
this question sounds silly and no interesting, but from first day of using COM to now, i don't undestand why following code works fine (thousands of times with no any trouble), see code bellow:
//COM code
void GetBSTR(BSTR*ppw)
{
BSTR str=::SysAllocString("my string in word");
*ppw=str;
//point a
::SysFreeString(str);
}//point b
the 'str' has been freed at point b, why caller has no trouble?
i know many people don't use ::SysFreeString, but anyway we should, otherwise who frees 'str'?
thx
includeh10
|
|
|
|
|
It is just pure 'luck' that it works.
(The mem is marked free but the string is still there)
/M
- Don't sweat the petty things, and don't pet the sweaty things.
|
|
|
|
|
includeh10 wrote:
i know many people don't use ::SysFreeString, but anyway we should, otherwise who frees 'str'?
No, you should not free the string. When you return data through an [out] parameter, the data belongs to the caller. Freeing it like that destroys the data before the caller gets it.
--Mike--
Just released - RightClick-Encrypt v1.3 - Adds fast & easy file encryption to Explorer
My really out-of-date homepage
Sonork-100.19012 Acid_Helm
|
|
|
|
|
Imagine this scenario:
Mate, can I borrow your shack by the beach for the weekend?
Um, Sure. I moved out a while ago tho, and left it abandoned, so I don't know what state it's in.
Now when you go to visit, you've got 3 chances:
1) It's still there, intact (but it may fall down later)
2) It's there, but it's gone damp and is now inhabited by nasty insects and scary hobos
3) It's already been condemmed and demolished
Due to timing, you're getting to your string before the memory manager has touched it, but its memory will be marked as no longer in use, so it could get reused by something else at any moment
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
Hi,
In my application, i have draw a 2D graph with a number scatter points. Now I want select two points by left-click the mouse two
times, and then change the positions of the points between the selected points (such as move points, linearization ...). Firstly, how to select the drawed points? how to give a mark of the selected point?
Thanks in advance?
chen
|
|
|
|
|
Draw it with other color, other size - any way you want. See also MFC sample DRAWCLI - the great sample that shows graphic interface implementation. It uses PatBlt finction to mark selected objects. Remember also that standard way to select more than one object is using Ctrl key together with mouse.
|
|
|
|