|
I am displaying the directories and files in ListView on clicking the treeview node.But on clicking the listview item
it does not shows the subitems in listview.
Can somebody please send the any link or code ?
|
|
|
|
|
|
How to test TCP/IP connection on the client-side? Some software needed (Win32).
Thanks
Rose
|
|
|
|
|
I like this tool: http://www.protodevelopment.com/en/index.html
|
|
|
|
|
|
Hi friends
Please look at following questions.
1) Can I get list of printers and print servers from active directory. If yes how?
2) Can I monitor printer jobs for a shared printer installed on some different machine.
3) Can I abort above kind of jobs
4) Can I modify above kind of printer jobs and add watermark or user name?
Thanx
VikramS
|
|
|
|
|
i'm using fread to read a file ,and get all the characters in file into a buffer.
char buffer1[nfilelength];
numread=fread(buffer,sizeof(char),1,"text1.txt");
then when i compile, an error occured need me to put a constant integer in declaration of char buffer[], how can i do coz the file length is dynamic.
HelpMe
|
|
|
|
|
Allocate buffer1 with new.
And don't forget to delete it, later.
|
|
|
|
|
rather than putting nfilelength in buffer1[] put some value say buffer1[512]
never say die
|
|
|
|
|
To specify an array with dynamic size, you should allocate it dynamically.
eg.
char* buffer1 = new char[nfilelength];
// read the file.
// do other thing that you need.
delete [] buffer1;
But I think there is a logical mistake in your code. You read only one char from the file using fread. If you intended to do so then you don't have to give any array.
If not you should specify the size as nfilelenght or sizeof(char)*nfilelength instead of sizeof(char).
- NS -
|
|
|
|
|
What is the difference between ItemExpanding and ItemExpanded in treeview ?
Thanks
|
|
|
|
|
pankajgarg12 wrote: What is the difference between ItemExpanding and ItemExpanded in treeview ?
MSDN has explained the difference quite nicely.
Nibu thomas
Software Developer
|
|
|
|
|
|
TVN_ITEMEXPANDING is sent before the expand/collapse happens, and gives you the chance to prevent the change. TVN_ITEMEXPANDED is sent after.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
IF i have a array which contains the color values then how to create a bit map using that array.
eg. unsigned char Arr[ROW][COL][3];
Arr contain Row*Col*RQuad valus;
then i create a BITMAPFILEHEADER, and BITMAPINFOHEADER
and these two a erite into a file, then i face aproblem how to write a color value in file so that .bmp file will generate.
Thanks in advance
Rahul here
|
|
|
|
|
these days I also concerned how to operate bitmap,I think you can down a bitmap operation project to learning,you can learn it frome the "Save as" menu respond function.Good luck!
|
|
|
|
|
Hi,
I am working with vc++. I need to write an excel file with the below format in VC++.
Events Table - 1st row
Description of table - 2nd row
Date&Time,Source,Cause,Description,Fault - 3rd row
Mar 13 2006 12:25:05.000078,HMI,H-0001,Startup,N
Mar 13 2006 12:25:05.000187,HMI,H-0005,Caution,Y
Basically the first row in the excel file must have the table heading, second row must have the table description and the third row will have the column names and fourth row onwards the actual data.
I am able to create an excel file if all the rows have the same number of columns.
But I am unable to create an excel file with different numberof columns in the rows as shown above.
I am using the CSpreadSheet class from codeproject website:
http://www.codeproject.com/database/cspreadsheet.asp
but this class is not allowing to write data in the above format..
Can anyone please help me to do this.
Thanks
Madhavi.
|
|
|
|
|
Just a thought, why don't you use 5 columns for all lines?
I.e:
Line 1: "Events Table", " ", " ", " ", " "
Line 2: "Description of table", " ", " ", " ", " "
Line 3: "Date&Time","Source","Cause","Description","Fault"
"If you can't beat them, join them"...
|
|
|
|
|
Hi,
I am working with vc++. I need to write an excel file with the below format in VC++.
Events Table - 1st row
Description of table - 2nd row
Date&Time,Source,Cause,Description,Fault - 3rd row
Mar 13 2006 12:25:05.000078,HMI,H-0001,Startup,N
Mar 13 2006 12:25:05.000187,HMI,H-0005,Caution,Y
Basically the first row in the excel file must have the table heading, second row must have the table description and the third row will have the column names and fourth row onwards the actual data.
I am able to create an excel file if all the rows have the same number of columns.
But I am unable to create an excel file with different numberof columns in the rows as shown above.
Can anyone please help me to do this.
Thanks
Madhavi.
|
|
|
|
|
When u say Excel file, do you mean a .xls file? How did you go about creating the excel file. Please post more details!
Have you tried using the Excel Object Model?
---
With best regards,
A Manchester United Fan
The Genius of a true fool is that he can mess up a foolproof plan!
|
|
|
|
|
I am using the CSpreadSheet class from codeproject website:
http://www.codeproject.com/database/cspreadsheet.asp
but this class is not allowing to write data in the above format..
|
|
|
|
|
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /DRIVER specification
Thanks
|
|
|
|
|
Open project properties. In C/C++ section, change "Debug Information Format" to "Program Database."
In Link section, you may also want (need?) to change "Enable Incremental Linking" to "No"
Anyone who thinks he has a better idea of what's good for people than people do is a swine.
- P.J. O'Rourke
|
|
|
|
|
Its just a conflict between some of the complier flags you have. Nothing serious. I'm not too sure what the /DRIVER settings does, but the /EDITANDCONTINUE allows you to modify code while you're debugging.
I used to know where these settins were in the project options, but I cant seem to find them anymore. Sorry
|
|
|
|
|
Hi,
I have a problem regarding the message handling of Control Bar. I have a Control bar which is derived from CControlBar. This control bar has a Tree control inside it. The problem is that, iam not able to capture the changes in the tree item (selection cahnges). I used the like this:
I used this inside.... BEGIN_MESSAGE_MAP
ON_NOTIFY(TVN_SELCHANGING, 123, OnSelchangedTreectrl)
END_MESSAGE_MAP()
But whenever i chnange the selection inside my tree, there is no notification. But there is a notification for the context menu, which i used as:
ON_WM_CONTEXTMENU()
This contest menu message gets captured properly, but not the tree control changes.
Can anybody please help me in understanding this. i would be very much grateful, if someone can direct me to some code, which uses something like the one i have stated.
Thanks a lot in advance
thx,
KAB
|
|
|
|