|
Take a look at this article ^.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
It sounds like you need to use a SAFEARRAY .
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
I know SAFEARRAY , BSTR, LPSTR all are good option to return character array (Large data) which is recognized by VB 6.0 as a string. But please give me an example that how to implement them.
|
|
|
|
|
Ashish Chauhan wrote:
But please give me an example that how to implement them.
How about MSDN article Q207931?
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
how to send command to the server after being connecting by telnet
|
|
|
|
|
Same way that you would send anything via a socket connection. Using the send function. Pass the command you want to the server thru the Send function.
There are alot of Telent articles here so, do a search and take a look see.
Tom Wright
tawright915@yahoo.com
|
|
|
|
|
Hi,
my list isn't behaving the way I want it to. I have the following code which I step through in the debugger.
<br />
std::list<int *> testList;<br />
int * one = (int *) 0x01;<br />
int * two = (int *) 0x02;<br />
int * three = (int *) 0x03;<br />
testList.push_back(one);<br />
testList.push_back(two);<br />
testList.push_back(three);<br />
one = two = three = NULL;<br />
three = testList.back();<br />
testList.pop_front();<br />
two = testList.back();<br />
testList.pop_front();<br />
one = testList.back();<br />
testList.pop_front();<br />
In the end I get all three int * variables to be 0x03 which is not what I intended with this code. And yes, I am trying to create a list of pointers because eventually it will be a list of pointers to a class representing an image which I don't want copied on each enqueue and dequeue operation.
|
|
|
|
|
I didn't notice when I pasted but the <int *> template didn't paste with my code. I do have it there:
std::list<int *> testList;
|
|
|
|
|
I see why the variables are all equal to three. Sorry, stupid question.
|
|
|
|
|
Replace all the pop_front() by pop_back() .
What you are doing here is reading the last element of the list then removing the first one. Then reading again the last (which is of course the same because you removed the first and not the last one).
Hope this helps...
|
|
|
|
|
give me a suggesstion to buy a best book for Embedded VC++,
How to start Pocket PC application development, for that i need to instal any software on the Pocket PC or not.
kindly give me a solution ASAP.
best regards
MohanRaj.K
to make communication between Server and Pocket PC through wireless(Wi-Fi), for that developing the front end application software by using VC++ in WinCE OS.
|
|
|
|
|
I have bought Pocket PC from hp that model no is hp iPAQ h6365, in that i need to develop the application to make wireless communication between server an pocket pc, server will transmit data that may be text file or Excell file, from that pocket PC application sholud encript that data and creata grphical format screens as well as window based screen like a VB.
In order to develop application i have selected Embedded VC++
Pocket PC OS is WindowsCE
My quitions is how can i implement my program into the Pocket PC, how start to develop an application.
to make communication between Server and Pocket PC through wireless(Wi-Fi), for that developing the front end application software by using VC++ in WinCE OS.
|
|
|
|
|
Go to the following site:
MSDN downloads[^]
download the emBedded Visual C++ 4.0 and also the Service pack 4.
Also you best get Active Sync, which eVC uses to initiate a connection with mobile devices.
Greetings,
Davy
|
|
|
|
|
Hello!
How can I determine the height in pixels of status bars? The GetSystemMetrics function seems to give many such values, but doesn't support status bars??
Best regards
|
|
|
|
|
|
Perhaps you could try getting the dimensions of the CStatusBarCtrl that is contained within a CStatusBar ?
/ravi
My new year's resolution: 2048 x 1536
Home | Articles | Freeware | Music
ravib@ravib.com
|
|
|
|
|
The size of a status bar is application-dependent. You'll need to take the height of the main window and then subtract other heights from it like caption, menu, non-client area, and border. There may be other values, too.
"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown
|
|
|
|
|
Get the window handle to the status bar's window.
Then can call GetWindowRect.
Take the height of the rectangle as the height of the status bar.
|
|
|
|
|
How can I get the handle?
I tried the following from my View-class:
<br />
CMyView::OnInitialUpdate()<br />
{<br />
...<br />
<br />
CRect rcStatusBar;<br />
<br />
CFrameWnd* pFrame = (CFrameWnd*) GetParent();<br />
CStatusBar* pStatusBar =<br />
(CStatusBar*) pFrame->GetControlBar(AFX_IDW_STATUS_BAR);<br />
CStatusBarCtrl& statusBarCtrl = pStatusBar->GetStatusBarCtrl();<br />
<br />
statusBarCtrl.GetWindowRect(rcStatusBar);<br />
<br />
...<br />
}<br />
But this leaves me with a CRect with the size of 0 height and 0 width...
|
|
|
|
|
These are all MFC Window objects. It is possible that during the OnInitialUpdate that the true 'window' have not yet been created?
You can check with:
::IsWindow(pFrame->m_hWnd)
and if that is not true, your windows don't exist yet, so all widnow rectangles will return empty rectangles.
You might have to investigate something like RecalcLayout and call it from some other location once the windows exist.
|
|
|
|
|
i had finished an application that communicate with server by web services. i programmed it by VC++.net 2003 on win2003. it's ok when setup on win2003 but not ok on win2000, when it ran on win2000, it could not get any data from web services(written by C#). My msi had included soap3_core.msm,msxml4sys32.msm,vc_user_mfc71_rtl_x86_---.msm,vc_user_stl71_rtl_x86_---.msm,vc_user_crt71_rtl_x86_---.msm.
Z.J.Chen @ CZoneSoft --http://www.cnblogs.com/babyblue
|
|
|
|
|
Hi
I have a client server application.
Server is an mfc dialog based application.
Client is an mfc sdi application.
Winsock2 is used for communication.
Both client & server are asynchronous in nature credits to WSAAsyncSelect().
The client & the server are connected to each other:
Now whenever i close the client socket, FD_CLOSE notification is send to the server but the vice versa is not happening.
The client donot gets the FD_CLOSE notification when the server socket is closed.
What cud be the possible problem?
waiting for suggestions
Regards
|
|
|
|
|
Hi everyone!
Can anyone tell me how to insert additional bytes in a memory mapped file?
|
|
|
|
|
Look at the ZwExtendSection native API
(you will need to google for it, it's not documented by MS)
James
http://www.catch22.net
|
|
|
|
|
Is it Possible to make in one time all controls on a form in blank ?
I am using Visual C++ 6.0 MFC
I am learning my self
|
|
|
|