|
Rajesh R Subramanian wrote: You probably need to install VCRedist.exe on your testing environment.
For VC6 ?
It seems also that the problem is somewhere else because the CreateControl function fails, which implicitely means that he is able to start the application successfully.
|
|
|
|
|
OK 5 - I overlooked this one.
[add] Probably because vcredist is the first thing I suggest, when someone says my Visual C++ program works on my machine, but not on the client's. [/add]
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
modified on Thursday, May 22, 2008 2:38 AM
|
|
|
|
|
You will also need to copy and register the chart activeX control on the target platform (I guess it is distributed as an ocx right ?)
|
|
|
|
|
hello everyone,
I encounter a technological problem about how to control the copied file origin.
Example, i have a file named aa.txt, it localed on disk C.Then i drag it to disk D,or i copy it to Disk D using Crtl+C, Ctrl+V. Now is there any method to let me know aa.txt from Disk C.
If anyone has a technological plan to help to resolve the technological problem,can contact in Email .xianfeng.dl@gmail.com
Regards & Thanks
|
|
|
|
|
You Can Use CopyFile() or MoveFile() win32 API for this purpose. See MSDN for Detail...
If it doesn`t work let me know..
|
|
|
|
|
i have used CopyFileEx(),but seems that it also cann't work. i also have no ideas to get the file origin.
|
|
|
|
|
You Can Use this in another way like--
For example, if you wanted to copy the folder 'c:\windows\Ashu' to 'c:\Ashu':
SHFILEOPSTRUCT fileop;
fileop.hwnd = NULL;
fileop.wFunc = FO_COPY;
fileop.pFrom = "C:\\windows\\Ashu\0"; // additional null needed
fileop.pTo = "c:\\Ashu\0"; // additional null needed
fileop.fFlags = FOF_ALLOWUNDO|FOF_NOCONFIRMATION|FOF_NOCONFIRMMKDIR;
if (!SHFileOperation(&fileop)); // error condition
Try This..................
|
|
|
|
|
Thanks , I will try it.
now i want to have a process to automatically catch this event.
i have tried to using hook api ,and SHChangeNotifyRegister to resovle this problem, but at last i also cann't get it
|
|
|
|
|
Is there any method to monitor this copy process,and know the file origin.
|
|
|
|
|
feng.dl wrote: If anyone has a technological plan to help to resolve the technological problem...
No, but I am now technologically confused.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Hi all,
what do I need to get this working? I get 'PPERF_DATA_BLOCK' undeclared and I have already included
#include <atlapp.h>
#include <atlframe.h>
#include <atlctrls.h>
#include <atldlgs.h>
#include <atlctrlw.h>
#include <atlwin.h>
#include <iostream>
#include <atlmisc.h>
#include <malloc.h>
#include <stdio.h>
#include <windows.h>
#include <stdlib.h>
#include <Winreg.h>
Sorry for the semi-repost if ever
|
|
|
|
|
And did you include Winperf.h?
|
|
|
|
|
Hamid,
Thanks a lot thats all i need for now.
Jj
|
|
|
|
|
You're welcome.
|
|
|
|
|
Thanks,
Also I solved the problem.
|
|
|
|
|
I have a list control CListCtrl with report view and the extend style of LVS_EX_CHECKBOXES.
Then I try to change the back ground color of the list control, to black color for example. It's done by overriding OnNMCustomdraw() method.
Everything works well except the background color of all checkboxes.
Now I don't know how to fix this problem.
Any suggestion should be appreciated.
|
|
|
|
|
|
Thank you for your reply, Hamid.
I'll have a look at it now
|
|
|
|
|
it's quite complicated, so I still not success,
but anyway, thanks for your help. I will look at this later
|
|
|
|
|
Did you see it I guess your problem is solved.
|
|
|
|
|
Not yet, Hamid,
If I success, I will notify it here. And if you find something, plz let me know,
|
|
|
|
|
I did it, not very well but it works.
Actually, I try to do similarly to XListCtrl
All I did here:
I have a class MyListCtr direved from CListCtrl. Then I override OnNMCustomdraw, try to draw the rectangualar with specificed color (black in my case).
The problem is how to catch event mouse click, determine checkbox state and change the drawing. I cannot understand the way XListCtrl do, it seems to register a defined event WM_XLISTCTRL_CHECKBOX_CLICKED, but I'm not sure. And TRACE, what is TRACE macro? hehe
So I did like this: use event NM_CLICK
void CMyDlg::OnNMClickListData(NMHDR *pNMHDR, LRESULT *pResult)
{
NM_LISTVIEW* pNMListView = (NM_LISTVIEW*)pNMHDR;
*pResult = 0;
if (pNMListView->uOldState == 0 && pNMListView->uNewState == 0)
return;
BOOL bPrevState = (BOOL)(((pNMListView->uOldState &
LVIS_STATEIMAGEMASK)>>12)-1);
if (bPrevState < 0)
bPrevState = 0;
BOOL bChecked=(BOOL)(((pNMListView->uNewState & LVIS_STATEIMAGEMASK)>>12)-1);
if (bChecked < 0)
bChecked = 0;
if (bPrevState == bChecked)
return;
}
I'd tried some ways but not success until this. Actually, I found it somewhere else.
|
|
|
|
|
Hi All,
I'm primarily a windows developer , just came across Qt library recently and I need to decide Qt over MFC for a simple GUI implementation on top of real time huge application.I looked around some samples and still confused about how to use Qt. I have real time application (you can imagine as telephony system) where I need to maintain display status of all lines and a common logs (in general display area) separate like Dock Widget. For line display I think it should be like QTableView but data is not coming from DB rather from a thread inside. So, for 100 lines there will be 100 threads sending status and a global thread will be sending status(log) for general display area. You can imagine as left half screen showing just global general logs going on and right half screen will show all line status from top to down ( 1 to 100).
Can anyone please suggest me the best way to handle it.
thanks very much.
|
|
|
|
|
Hello.
I'm working on a XPCOM component (so I can't just use std::string) and I need to pass an array of characters into an array which is a member of a class.
(Please ignore that this code is out of context)
class MyClass {
char val[100][50];
public:
void drop(char v) { val[0] = v; }
};
MyClass Obj;
void SomeFunction() {
char myString[] = "Hello";
Obj.drop(myString);
}
I get this error: cannot convert parameter 1 from 'char [7]' to 'char'
All I want to do is pass myString to my member function which I want to store the value in the first index of the member array.
Any help would be greatly appreciated, thanks.
|
|
|
|
|
Samjiman wrote: I get this error: cannot convert parameter 1 from 'char [7]' to 'char'
drop() is expecting a char , yet you are sending it a char[] .
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|