|
Hii
In my application , wanna copy all files from one partition to another partition.
First I copied a file that I taken default and copied to another partition.
The above operation is done by using the control code "FSCTL_GET_RETRIEVAL_POINTERS".
The clusters used are read and wrote into destination volume using readfile() and writefile() windows functions.
Now I gotta copy all files.....
So how to proceed ....??
|
|
|
|
|
krish_kumar wrote: Now I gotta copy all files.....
So how to proceed ....??
If you can successfully copy one file, why can't you copy more than one?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
|
i am working on SDI based application. in view area i draw four square, i am reading the data from the file,and plot that data in separate square. the problem here is that that the graph which plot goes out of that square area.which is not desired. i want to plot that graph in the square area without any alternation in the graph,i mean i want to fix this graph within that square area without changing the size of the data.
kkkljj
|
|
|
|
|
I'm not a 100% sure if I understand what you want.
::SelectClipRgn() or CDC::SelectClipRgn() can be used on a device context to allow drawing only inside a specific shape (a rectangle in your case). Use ::CreateRectRgn() or CRgn::CreateRectRgn() to create your valid drawing area.
|
|
|
|
|
To map the data image to the window client area you need the following values
int xMinData;
int xMaxData;
int yMinData;
int yMaxData;
(as maximum and minimum values of the bounding rectangle of the data image)
then perform (assuming your client area is {0, 0, widthWnd-1, heightWnd-1}:
xWnd =(int) (((double) xData - xMinData) / (xMaxData-xMinData) * widthWnd + .5);
yWnd =(int) (((double) yData - yMinData) / (yMaxData-yMinData) * heightWnd + .5);
formula correctness test is left to the reader
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I'm fairly new to VC++ and I'm trying to develop a device manager type of utility.The problem I'm facing is with SPDRP_INSTALL_STATE property. Whenever I try to retreive this property I get the following error at compile time.
error C2065: 'SPDRP_INSTALL_STATE' : undeclared identifier
My syntax is:
SetupDiGetDeviceRegistryProperty(dInfoSet,&devInfo,SPDRP_INSTALL_STATE,&dwT,(PBYTE)&dwIS,sizeof(dwIS),NULL);
where dwIS and dwT are both DWORD.
I also tried the following syntax:
SetupDiGetDeviceRegistryProperty(dInfoSet,&devInfo,SPDRP_INSTALL_STATE,NULL,NULL,0,&reqSz);
szBuf=(char *)malloc(reqSz);
SetupDiGetDeviceRegistryProperty(dInfoSet,&devInfo,SPDRP_INSTALL_STATE,NULL,(unsigned char *)szBuf,reqSz,&reqSz);
Both give the same compilation error.I should also like to point out that the latter snippet works with other properties like SPDRP_DEVICETYPE. I've hit a dead end because of this as I need to know if the device is working properly.Any ideas?? Do I need to use cfgmgr32.h ?(Although I doubt it) Please help
|
|
|
|
|
Do you have an old SDK? I don't know, but both values are defined in setupapi.h on my installation (w/o any #ifdefs)
#define SPDRP_DEVTYPE (0x00000019) // Device Type (R/W)
#define SPDRP_INSTALL_STATE (0x00000022) // Device Install State (R)
|
|
|
|
|
Well it must be old since it is the setupAPI.h that originally came with VC++ 6.0.0.8167 in 1998. And I checked the setupAPI.h and it doesn't have SPDRP_INSTALL_STATE property defined in it. So what should I do? Should I download new setupAPI.h and setupAPI.lib files to replace the old ones? Wouldn't there be any compatibility issues then? Even the SetupDiGetClassDevsEx in this header uses 6 parameters instead of 7 as in the newer version. But it works fine so I didn't bother!
|
|
|
|
|
It sounds a bit risky just updating parts of the SDK. There could in theory be other dependencies you don't know of. On the other hand, it might just work perfectly.
Advice you, I will not.
|
|
|
|
|
callousfantom wrote: So what should I do? Should I download new setupAPI.h and setupAPI.lib files to replace the old ones?
Visual Studio 6 is a very old development platform which was released way before even Windows XP was available. It is a very good IDE and there are many software developers still using it. You need to bring it up-to-date. I highly recommend the following:
1.) Install Visual Studio service pack 6[^]
2.) Install Windows Server 2003 Platform SDK[^]
The Windows Server 2003 PSDK was the last SDK which was guaranteed to be compatiable with VC6... if you want to try a later SDK your on your own.
Best Wishes,
-David Delaune
|
|
|
|
|
Thanks guys! I upgraded using the service pack 6 and used the latest SDK and that solved the problem
modified on Wednesday, June 17, 2009 1:23 AM
|
|
|
|
|
Hi,
When trying to use insertbefore() method to insert a node from an xml file to other Xml file the node is getting deleted from the old Xml file...
Please help me regarding the same..
|
|
|
|
|
How about clone()ing the node first?
|
|
|
|
|
please let me know how to do clone() ing the first node....
|
|
|
|
|
Call IXMLDOMNode::cloneNode() on the node you get from the source document.
|
|
|
|
|
im getting the address of source node into MSXML::IXMLDOMElementPtr how to use the ptr in clone method..
|
|
|
|
|
Something like:
IXMLDOMElementPtr pNode = get_element_from_source();
IXMLDOMNode *pClonedNode;
pNode->cloneNode(VARIANT_TRUE, &pClonedNode)
Now insert pClonedNode into your target document.
|
|
|
|
|
Thank u very much for ur valuble advice...
|
|
|
|
|
can i assign a IXMLDOMElementPtr to IXMLDOMNodePtr....is it fine..
|
|
|
|
|
I have some control bars (CDialogBar actually, but the problem is the same for all CControlBar derived classes) owned by my CMDIChildWnd derived class. These control bars contains document specific data.
The problem I can't seem to find a solution to is when one of these control bars is in a floating state and I have more than one document open. The floating control bar is alway on top of all CMDIChildWnd derived windows, making it difficult to know to which it actually belongs.
(This can be easily tested by just adding the toolbar from the CMainFrame to the CChildFrame class and opening a few document windows and let a toolbar float.)
The behaviour I'd like to see is that the control bar should be on top of its owning CMDIChildWnd, but below any other CMDIChildWnd that might be in front of it.
Does anyone have a clue how to do this?
I have tried SetWindowPos(&my_child_frame,...) in various places without any luck.
Maybe I could set the window style of the CMiniFrameWnd somehow?
Any ideas would be appreciated.
I run MFC (obviously) and VS2003, though I doubt that matters.
|
|
|
|
|
hi,
My requirement is like this. Ill develop a User Interface for the user to customise and select the controls required for him (for a specific ). Is it possible to generate
a installshiel setup for the selected file. Pls help
Regards
Jayaraman
|
|
|
|
|
Jayaraman K wrote: a installshiel setup
If you really want to use InstallShield, why didn't you look at the company website[^] ?
On the other hand, if you would like to use a free tool, I suggest InnoSetup[^]
|
|
|
|
|
Hi,
Can you please help me and told me how can i set option of my RichEditCtrl to display the All line which exceeds the width of RichEditCtrl and not with scroll.
ie when i have a text string like that "blablablablablablablablablablablablablablablablablablabla"
and the width of the RichEditCtrl is less than the length of this string it should display the part of this string and display the rest in newline.
|
|
|
|
|
Did you even bother to read my reply when you posted this yesterday?
The text will wrap automatically when you use the ES_MULTILINE style.
|
|
|
|