|
OnClick Event on cell you should
Get the Cell Client Rectangle
Create your Dynamic Combo box by passing the ClientRect
Delete the combo box once you finish.
modified on Tuesday, November 3, 2009 7:03 AM
|
|
|
|
|
Thakyou ,Can u give an example please......
|
|
|
|
|
Hello All,
I have developed an Executable in MFC which runs different instances for different number of users. Every thing works fine untill I am running that executable with account which is part of 'Administrators' group. but when I try to start it from a normal user with limited rights and even after giving the folder rights to be accessed by 'everyone' , the executable comes into action for a second and dissapears , also it is not making any log for the time duration it comes into picture . Can some body suggest me what must be happening .As I am totally sytuck here and have no idea as to what is happening
Kushagra
|
|
|
|
|
the admin-exe process has higher rights than the user-exe process so it got killed of course some security issues...
Vista or W7 ?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
The thing is that this is not getting executed even for restricted users in Windows XP and Windows 2003 , I am not able to find our why .
|
|
|
|
|
Kushagra Tiwari wrote: .As I am totally sytuck here and have no idea as to what is happening
Use the debugger to step into the code?
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
Finally I got the clue .. using restricted user failed to open certain registry sections in read-write mode... Sometimes u even forget that u always have debugger to help you out .thanks for help.
Kushagra
|
|
|
|
|
Kushagra Tiwari wrote: Finally I got the clue .. using restricted user failed to open certain registry sections in read-write mode... Sometimes u even forget that u always have debugger to help you out. thanks for help.
You're welcome. Always remember the debugger. No, really.
“Follow your bliss.” – Joseph Campbell
|
|
|
|
|
some tipps
- use of functions or dlls which arent supported in xp
- check whether the manifest or linker settings require admins rights
- debug in user mode
- take out functionality up till it works (that would i do)
The hard way:
if nothings works, consider making a new and empty porject and than stepwise adding the functionality and proof whether every step is destroying
good luck
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hello everybody !
I don't want to read the Text File,because the file is too large.
example , if the text file only have this characters ,like "12356789".
when I user this C++ code ,it will cover the old data.
<br />
FILE *pFile = fopen("1.txt","w");<br />
fseek(pFile,3,SEEK_SET);<br />
fwrite("4",1,strlen("4"),pFile);<br />
fclose(pFile);<br />
How to insert the character '4' into the text file ?
thanks for your reply !
Best Reguards !
|
|
|
|
|
wangningyu wrote: How to insert the character '4' into the text file ?
Create a temporary file and copy contents of 1.txt into this file up to the insertion point. Insert '4' into temporary file. Copy remainder of 1.txt into temporary file. Close both files. Delete 1.txt. Rename temporary file to 1.txt.
Make sense?
"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
|
|
|
|
|
|
Hi; I am stumped on what search terms to use to find information on this without getting far far too many 'false positives'.
My application embeds metadata in files that support embedded metadata. For files that DON'T support embedded metadata, I want to create a "sidecar" file.
There is a feature of Internet Explorer that works like this:
When you save a Webpage from Internet Explorer (in certain circumstances, I'm not sure which) it will create a folder with the same name as the file (without the extension of course) and store all the "assets" associated with the page in that folder. If you attempt to delete the folder of assets, it also deletes the .html file that refers to them... and vice versa.
so, there is some kind of hard-wired relationship between the HTML file and the folder full of assets.
I want to be able to make such a connection between a file that has been tagged, and the metadata that is associated with that file, such that if the file is moved, the metadata will be moved along with it, as an artifact of this OS-level "feature".
Perhaps its not an OS level feature on Windows, and some other jiggery-pokery is involved.
But the best I could come up with is to search terms and phrases like
"Webpage, complete" save from Internet Explorer files joined
and in place of "joined" using terms like "linked", "group" etc.
Can someone provide either a suggestion for the exact functionality I am trying to learn about, perhaps a code fragment that can be used to establish such a connection between a datafile and the metadata "sidecar" file?
Thanks in advance
|
|
|
|
|
|
Thanks for the reply... our software does install a shell extension to monitor changes to files, but I think what will need to be done is to change file properties in a manner that the operating system will consider the files "joined" so file move / copy / delete operations work on the files as a set.
I can't find any code examples or documentation on how Windows does this, and / or if it a fundamental part of the OS or if it is an IE "shell extension" (where the OS ends and IE begins is topic for another discussion) or if there is a accessible API for this at all.
That's what I'm asking. If there's an API that is common to all Windows PCs that can be used to "join" files in this manner so all file copy / delete / move operations on one file affect the other file(s) in the set. Part of this problem is that when I attempt to Google it (using terms relevant to the feature as it is implemented in Internet Explorer) i.e. "Webpage, Complete" save files joined Internet Explorer I get so many spammy / false-positive results I can't find what I need.
Thanks in advance for any help!
modified on Tuesday, November 3, 2009 9:19 AM
|
|
|
|
|
I'm guessing that this is an explorer feature.
You should be able to do this using your extension when a delete happens.
|
|
|
|
|
Member 3238438 wrote: so, there is some kind of hard-wired relationship between the HTML file and the folder full of assets.
This is something that can be configured by Windows Explorer. From the "Tools" menu select "Folder Options..." then select the "View" tab. Scroll down to the "Managing pairs of Web pages and folders" setting. There are three options. It sounds like you have "Show both parts but manage them as a single file" selected. (I think this is the default.)
Member 3238438 wrote: Perhaps its not an OS level feature on Windows, and some other jiggery-pokery is involved.
It's jiggery-pokery on the part of Windows Explorer rather than the Windows OS. If you try deleting the html file using the DOS command DEL I think you'll find the like-named directory still in place.
I'm not sure if this will get you closer to your goal, but I hope it helps.
BDF
People don't mind being mean; but they never want to be ridiculous.
-- Moliere
|
|
|
|
|
I'm working on a project inserting one record into sqlserver database with stored process.
The problem is that one of the record value is __int64 type which is adBigInt for ado.
how to do the type casting?
My code is below
_CommandPtr commandPtr;
__int64 value1 = 1234567890123;
int value2 = 1;
CommandPtr->Parameters->GetItem("@BusinBala")->Value = value1; (wrong ,can't casting)
CommandPtr->Parameters->GetItem("@BusinBala")->Value = value2; (ok)
what is the solution?
pls help
|
|
|
|
|
tyr2000 wrote: CommandPtr->Parameters->GetItem("@BusinBala")->Value = value1; (wrong ,can't casting)
I think Value is a VARIANT structure. Does that have a 64-bit member (e.g., llVal )?
"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
|
|
|
|
|
may be VARIANT doesn't have a 64-bit member. what shall I do ?
|
|
|
|
|
If it necessary for you to use 64 bit value then better is store in by converting BSTR.
Величие не Бога может быть недооценена.
|
|
|
|
|
in msdn of vs2005, the _variant_t class has overlapped
variant_t& operator=(
unsigned __int64 ui8Src
);
why i can't use the function?
|
|
|
|
|
Please check the
C:\Program Files\Microsoft Visual Studio\VC98\Include\COMUTIL.H file, and check whether
variant_t& operator=(
unsigned __int64 ui8Src
);
is available in this file.
Величие не Бога может быть недооценена.
|
|
|
|
|
Adam Roderick J 09 wrote: Please check the
C:\Program Files\Microsoft Visual Studio\VC98\Include\COMUTIL.H file...
Isn't that VS6 specific? I would think C:\Program Files\Microsoft Visual Studio 8\VC\include\comutil.h would be more in line with the OP's version.
"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
|
|
|
|
|
Yes,
Since am a VC6.0 fan i gave VC6 path reference
so i am changing this
C:\Program Files\Microsoft Visual Studio\VC98\Include\COMUTIL.H
as
..\VC\Include\COMUTIL.H
Величие не Бога может быть недооценена.
modified on Friday, November 6, 2009 7:17 AM
|
|
|
|