|
Hi
After populating your listbox with values, you can use CListCtrl::GetItemRect (with LVIR_BOUNDS code) to determine the size of the individual items in the list, calculate the total size, and resize the listctrl accordingly.
HTH
Martin
|
|
|
|
|
|
dim13 wrote:
Please, share.
please explain...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
I mean ZModem protocol for transfer files through modem connection.
Dim
|
|
|
|
|
|
Thank you for links.
I think that this problem is old enough to be already solved.
Is it too specific or too complicated but I can't find the sources.
It seems that I have to port sz and rz by myself
Dim
|
|
|
|
|
I have created a simple application which host a web browser in the Dialog box , I have tried to retrieve the pointer of the webbrowser parent but it is null why is it like that ,, I have just droped the control in the dialog box and created an object of the webbrowser control .
|
|
|
|
|
Shouldn't it be the dialog window itself?
|
|
|
|
|
yes It should be . but thats wat not happening here . I dont know why
|
|
|
|
|
ok i have a problem in my main.cpp of my client program, and i have been staring at the screen for so long i can't see what the problem is
[code]c:\documents and settings\computing\desktop\client2\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters
mesagesend.cpp
Error executing cl.exe.[/code]
[code]#include "connecting.h"
#include <iostream>
#include "mesagesend.h"
#include <winsock2.h>
#include <stdio.h>
using namespace std;
int main()
{
connecting client;
mesagesend chat;
client.connecttoserver();
chat.sendmessage();
client.disconnectfromserver(chat.mysocket);
return 0;
}[/code]
|
|
|
|
|
The connecttoserver function must need one or more parameters. Look in in "connecting.h" (or post it here) to see the parameters the method takes.
Mike
|
|
|
|
|
ok, i tell you what i see ...
main.cpp, line 17 :
client.connecttoserver();
chris28583 wrote:
c:\documents and settings\computing\desktop\client2\main.cpp(17) : error C2660: 'connecttoserver' : function does not take 0 parameters
nothing to add... :->
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi.
How to use Visual C++ to create a program for Input/Output via USB port?
Many thanks for help.
|
|
|
|
|
What do you mean exactly when you say: 'via USB Port' ? Are you using a USB-To-Serial adapter or another USB device ?
Fir the second case, a driver is shipped with the device and there shoulb documentation included. You must open the port using the CreateFile function specifying the name of the device you want to access. Then you use the DeviceIoControl function to send command to the driver.
Hope this helps
|
|
|
|
|
I participate in a project in which I have to establish comminication betwen Digital Signal Processor and PC via USB. This is the beginning of the project and we don't know that DSP would be the best. I will give more information as soon as the specification of the project is more clear.
Thanks!
|
|
|
|
|
Hi can somebody give me some code samples of the createENtry,CopyEntries and deleteentry using MAPI. i am not having enough reference on MAPI. In the IMapiContainer::CreateEntry method the ulflags are not working , can any one clarify me why it does not work. and also suggest me some books on MAPI or some sites where MAPI is available.
thanx in advance
vsr
VSR
|
|
|
|
|
Hello,
I have a problem and I hope somebody will solve this, because I'm getting crazy.
I have to execute parallel commands from an application:
e.g: to execute paralel commands like:
dir & notepad.exe
where &=parallel operator
How can I make this, using commands like CreateProcess and system(char *) call, without creating new instances of my application ,and without using CreateThread function.
I know that this is posible, but I don't know how.
Thank you!
|
|
|
|
|
Hi,
I made a program that burns cd's and dvd's. But when I start burning a CD the main screen gets inactive. I can't use any buttons and when I minimize the screen, I can't get it back.
Does anybody know how to solve this?
Grtz
|
|
|
|
|
Your program is busy with the cd/dvd writing and cant handle any other stuff until it finishes the writing task.
To solve shift the cd/dvd writing task on to a separate thread. This would leave your main application window open for inputs.
Rahim Rattani
Software Engineer,
Matrix Systems (Pvt) Ltd.,
Karachi - Pakistan
|
|
|
|
|
|
how to get information about all installed software of my PC ,programatically in VC,I mean is there any API ??
i m final year computer engineer student...ant making project "Asset manager for LAN" i want information of all hardware and software installed in LAN and want to manage them.i got some APIs for geting hardware information ..now i want APIs for software information
actuly i want to make such thing that if any user detach any hardware or software then one message should there on server that this user have removed this hardware from this PC in LAN
|
|
|
|
|
All the Information of Installed Software on local system can be find here
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall
you have to Enumerate the registry Key to know each installed Software.
For Enumertaion of registry key you can use these API->
<ul><br />
<li>RegEnumKey<br />
<li>RegEnumKeyEx<br />
</ul>
"I Think this Will Help"
Alok Gupta visit me at http://www.thisisalok.tk
|
|
|
|
|
WMI is the one of the solution to get h/w information .
Reg
Ramesh.k
VISUAL C++/ATL/COM PROJECTS
|
|
|
|
|
Hello I am a beginner to VC++.
I am having two applications server.exe and client.exe.
I want to exchange messages between these. How to do this ?
thanks in advance
regards
Raghavendra H
|
|
|
|
|
You can use socket and sendmessage
<italic>Work hard and a bit of luck is the key to success. You don`t need to be genius, to be rich.
|
|
|
|