|
Thank you very much!
I set the focus to other button, then it solves the problem!
|
|
|
|
|
Hi LaHaHa
BY default when you slect the item from Combobox it will remain highlighted.
Now ,, PLease describe what are you trying to do...
Cheers
"Peace of mind through Technology"
|
|
|
|
|
I would like to know how to make it display my selection but not highlight it.
Now I set the focus to other button, it is alright.
Thanks!
|
|
|
|
|
ICopyHook::CopyCallback works for folders. I need to know how to determine whether a file is about to be deleted, copied, moved, etc, so that it may be stopped if so desired. Any article / API, Reference.
Samiran
|
|
|
|
|
cnez wrote: ICopyHook::CopyCallback works for folders. I need to know how to determine whether a file is about to be deleted, copied, moved, etc, so that it may be stopped if so desired. Any article / API, Reference. Samiran
you can try ReadDirectoryChangesW, but it will work after event is happened!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
cnez wrote: ICopyHook::CopyCallback works for folders. I need to know how to determine whether a file is about to be deleted, copied, moved, etc, so that it may be stopped if so desired. Any article / API, Reference. Samiran
article dealing with same :- http://www.codeproject.com/file/directorychangewatcher.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
Whats wrong with the following, actually my VC++ application is not calling ActiveX method it says "Object Reference Error", i can able to compile successfully.
brFileContent->Read (abData,0,2); //brFileContent is Binary Reader
Byte *pbManagedData = &(abData[0]); // Get starting point of Array (I can able to see Data and address here
axSimpleAdditionAtx1 ->FinalBy (pbManagedData); // Calling Activex
Method signature in ActiveX which is not getting called..
void VRMControl::FinalBy (BYTE* ByteValue, LONG Length) // Prototype
{
}
|
|
|
|
|
sivaprakashshanmugam wrote: Whats wrong with the following, actually my VC++ application is not calling ActiveX method it says "Object Reference Error", i can able to compile successfully.
brFileContent->Read (abData,0,2); //brFileContent is Binary Reader
Byte *pbManagedData = &(abData[0]); // Get starting point of Array (I can able to see Data and address here
axSimpleAdditionAtx1 ->FinalBy (pbManagedData); // Calling Activex
Method signature in ActiveX which is not getting called..
void VRMControl::FinalBy (BYTE* ByteValue, LONG Length) // Prototype
{
}
FinalBy (pbManagedData) //passing one parameter
FinalBy (BYTE* ByteValue, LONG Length) //required 2 parameters as length is not default argument.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
Yes i made mistake but still im getting same Object reference Error.
brFileContent->Read (abData,0,2); //brFileContent is Binary Reader
Byte *pbManagedData = &(abData[0]); // Get starting point of Array (I can able to see Data and address here
axSimpleAdditionAtx1 ->FinalBy (pbManagedData); // Calling Activex
++++++++++++++++++++++++++++++++
void VRMControl::FinalBy (BYTE* ByteValue) // Prototype
{
}
|
|
|
|
|
sivaprakashshanmugam wrote:
brFileContent->Read (abData,0,2); //brFileContent is Binary Reader
Byte *pbManagedData = &(abData[0]); // Get starting point of Array (I can able to see Data and address here
axSimpleAdditionAtx1 ->FinalBy (pbManagedData); // Calling Activex
++++++++++++++++++++++++++++++++
void VRMControl::FinalBy (BYTE* ByteValue) // Prototype
{
}
is there any Byte data type??
if not try to define as BYTE * or byte *
what is datatype of abData ?
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
datatype of abData is also Byte. Here is the declaration
System::Byte abData[] = new System::Byte[nLength];
|
|
|
|
|
sivaprakashshanmugam wrote: datatype of abData is also Byte. Here is the declaration
System::Byte abData[] = new System::Byte[nLength];
You have to make sure if System::Byte the same as BYTE ...
Maxwell Chen
|
|
|
|
|
sivaprakashshanmugam wrote: System::Byte abData[] = new System::Byte[nLength];
You have posted your question in wrong forum.
Read the how and where to post questions.
Knock out 't' from can't,
You can if you think you can
|
|
|
|
|
in wrong forum
C# ?!
Maxwell Chen
|
|
|
|
|
r u tamilan
do u know Milky s/o S. Doria Raj (Ex ARMY )
Town : Bitrgunta
if yes please kindly reply me
thanks
|
|
|
|
|
Thanks for ur responce
The town Bintragunta is in india boder of AP and tamil nadu
Bintragunta do u have any relatives there
if yes please kindly let me know !
Thanks & Regrads
|
|
|
|
|
Thanks for ur responce
The town Bintragunta is in india boder of AP and tamil nadu
Bintragunta do u have any relatives there
if yes please kindly let me know !
|
|
|
|
|
Hi,
i have a variable str in which i have file name with complete folder path
char str[100];
---
-----
--------code
---
final str will have a value C:/folder/folder/file.txt
then i have used
ShellExecute(NULL, "open", "str" ,NULL, NULL, SW_SHOWNORMAL);
but this statment has no effect its not opening the file.
i checked with example
ShellExecute(NULL, "open", "D:/folder/folder/file.txt" ,NULL, NULL, SW_SHOWNORMAL);
this code opens the file,can any one tell why the file is not opening in the first case...
do we have to convert char array to CString then pass it to ShellExecute ???
Regards,
Vinay Charan.
|
|
|
|
|
vinaycool wrote: ShellExecute(NULL, "open", "str" ,NULL, NULL, SW_SHOWNORMAL);
Use this instead:
ShellExecute(NULL, "open", str, NULL, NULL, SW_SHOWNORMAL);
Note I removed the quotes.
Steve
PS: Why use a char at all? You can replace the "str" variable with the CString variable and it will work, be simpler and also safer.
|
|
|
|
|
Hi Stephen Hewitt,
I have checked with this code
ShellExecute(NULL, "open", str ,NULL, NULL, SW_SHOWNORMAL);
no effect ,its not opening the file ....
since i get the file name input as c:\folder\folder\file.ext i have used 2 sting array to convert it to c:/folder/folder/file.ext
now i have to change char to CString ????
|
|
|
|
|
Be sure str is being "c:\folder\folder\file.ext " or not.
U may have to make str to "c:\folder\folder\file.ext "
"c:\\folder\\folder\\file.ext " chk ur String making Calculation.....
Saday Chand Sarkar
Software Engineer
Trek Technology(s)Pte.Ltd.
|
|
|
|
|
Hi Stephen
one question how to use modify button!?it seems dosent work for me
whitesky
|
|
|
|
|
I just press it and it works; sorry I can't be of more help.
Steve
|
|
|
|
|
thank you for information i know i cant use modify about 3 days ago
whitesky
|
|
|
|
|
Vinay wrote: one question how to use modify button!?it seems dosent work for me
What a lazy guy. Yesterday asked for same.
Knock out 't' from can't,
You can if you think you can
|
|
|
|