|
Hi,
I'm working on an Outlook Add-in written in VC++. My problem is that I have to add some buttons to a toolbar, and the only way (I know) to set icons to them is using PasteFace. By doing this, I have to use the clipboard, and I loose everything that I had in there. Is there any way I can somehow save this data (from the clipboard) in a buffer, and after pasting the images, to put the initial data back into the clipboard.
Any ideas or suggestions would be most welcome.
Thanks,
Doru
|
|
|
|
|
If the clipboard data is in a format/formats you understand, then yeah, you could probably hack it. Since just about anyone can put just about anything in the clipboard though, it's unlikely you'll get this working across the board without a huge amount of effort.
Shog9
I'm not the Jack of Diamonds... I'm not the six of spades.
I don't know what you thought; I'm not your astronaut...
|
|
|
|
|
This is a rather vague question so my answer may not be totally applicable. Use AppWixard to create a dialog-based application. On the dialog template, put an edit box and a button. Use ClassWizard to assign member variables, CEdit and CButton respectively, to these controls. Provide a handler function for the button. In that function, obtain the search text from the edit control by using CEdit::GetWindowText() . Once you get this far, we can then discuss how to search a database.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
hum, i can't find the english word that express my thinking, so, smileys will represent my mind :
i'm felling Mr Crow (Deyyyvid Crow) is a little bit about Mr Zumbi...
am i so far of the reality ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Your atrocious spelling aside, I am far from angry with zumbi. Unless my answer to him was just totally incorrect (it's been known to happen), why on Earth would you even entertain such a thought?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
i just couldn't explain what i was thinking in a correct english...
sorry, it was the only smiley i found to say this.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
zumbi wrote:
We need the answer (code) soon becouse its our schoolwork.
The only reason to ever include statements such as this is to inform any potential responder that you may not be as well-versed in the language as them and that extra details might be necessary. To qualify it by saying "hurry," "soon," or "ASAP" will almost assuredly get you nowhere fast.
That said, have you visited this site?
"Lack of planning on your part does not constitute an emergency on my part." - Anonymous
|
|
|
|
|
Hi.
I'm using a DLL provided by someone else which throws up a message box in case of an error in some function within the DLL. Is there some way I can suppress these message boxes? Asking the person who wrote the DLL to get rid of them doesn't work. Any useful suggestions would be appreciated.
Thanks,
Sandhya.
|
|
|
|
|
This would the nearest i can think of ...
1.Before you call any function of that DLL ,call
SetWIndowsHookEx(WH_CBT,CBTProc ,GetApp()->m_hInstance , GetcurrentThreadId())
You need to write the CBTProc Function .refet MSDN for it .In that function you can trap any messages for all the windows create din ur application .
2.AFter you are thru with calling the DLL function ,call UnhookWindowsHookEx()
To read more ,there is en excellent article by Nishant and SHog .If you follow the MFC way ( CDelayMessageBox 2 ) ,you can do this easily .
Click This to know more ..
Cause is my effort;
Effect is God's effort
|
|
|
|
|
Thanks to generous help, I have nearly finished my little project and have one more query. If I want to send a new line command how is it done? I have tried \n but that doesn't do it.
Hopefully the code below will explain better what i am trying to do.
// TODO: Add your command handler code here
CEdit &edit = GetEditCtrl();
CString strText;
CString msg = " Line is ";
edit.GetWindowText(strText);// text XYZ is on 1 line
while (!string.IsEmpty())
{
_strrev(strText); //line 1 is reversed ZYX
// display 1 character per line
// Z // Y // X
}
edit.SetWindowText(msg+strText);
GetDocument()->SetModifiedFlag(TRUE) ;
}
Thank you once more!
|
|
|
|
|
|
|
Hi,my name is kritharan krishnan....
I'm a final year E&E undergraduate from malaysia....
i'm doing a PC based 'Digital IC Tester' for my final year project.
I planed to write the test program in VC++ , but got NO idea on how to start it...
The IC Tester-will only test TTL(transistor- transistor logic) IC's.
Can anyone HELP me on this project???
I really need some guide.... PLZ HELP ME.
I would really appreciate uf u can help me
my e-mail add : krit_82@hotmail.com
|
|
|
|
|
hum, it depends on many parameters we don't have here ...
what sort of ICs are they ?? logical operators and such things ?
do you already have an electronic test bench outside the PC to connect the IC to test ?
if so, can we know how the test is about to proceed (any schemas are welcomed, be as i'm not sure you can post it here, you can either post it on a site we can all visit, or you send me a mail)...
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello!
Using Windows2000 and MFC6.0 does anybody know of a way to change the GUI look of the ComboBox style that are standard used in MFC? Into anything that looks similar to a ComboBox under Windows XP forinstance.
Best regards,
RIH
|
|
|
|
|
I'm not sure how you would do it in Windows 2000 except with an owner-draw control and a whole lot of work, but you can make your controls use the Windows XP common control styles when your program runs on Windows XP.
You can do this through the use of manifests to tell the program to use a certain version of the Windows common controls, when they are available.
Here's a manifest that will give your program XP-style controls when it runs under Windows XP:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" processorArchitecture="x86" name="App" type="win32" />
<description>Application</description>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="x86" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
</assembly>
To use this in your program, follow these steps:
1. Copy all the code above and paste into a text file. Name the text file "xpcontrols.manifest" or something like that. It doesn't really matter what the filename is.
2. Place the xpcontrols.manifest file in the resource directory of your Visual C++ 6.0 project.
3. In Visual C++ 6.0, import the xpcontrols.manifest file into your project as a resource. When it asks you what kind of resource it is, enter "24".
4. Change the resource's ID to "1".
That should do it!
|
|
|
|
|
Hi,
I'm laying out the ideas for my complete revamp of the Quake 3 AI system, and to get there i need to test out pathfinding algorithms... and to get there i need to improve my programming.
Since i'm pretty new to all this, can someone please point me in the right direction?
This is want i want to be able to do:
Draw a basic 2d "map" that i can chuck all the results from the pathfinding simulation on.
The map includes:
--> Starting and ending point
--> waypoints
--> numbers, colors etc
--> basic lines, pictures
I take it those are just diffrent objects? i'm not quite sure how the objects work either...
Thanks in advance...
Serrix
The Multidisoctinal Metalobilist...
If you were wondering... those are random madeup words...
|
|
|
|
|
Hi All,
In Windows 2000 operating system, where I can store the data secured? For Example I want to store the user name and password information in one of my application. Where can I store this? Registry or anywhere else?
Any links, sample applications, articles will be helpful.
Thanks & Regars,
Pearl
|
|
|
|
|
yes, i think the registry is a good place for that, but you might encrypt the datas to avoid people reading a password to easily...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Yaahhh...
toxxct is right. But in my opinion even though win2k is a secured one, registry is not a correct choice. There mya be some other solutions also
|
|
|
|
|
so where ??
any suggestions would be appreciated...
cheers,
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
The applications database!? Ensure that you encrypt the data, this has already been suggested.
Ant.
I'm hard, yet soft. I'm coloured, yet clear. I'm fruity and sweet. I'm jelly, what am I? Muse on it further, I shall return! - David Walliams (Little Britain)
|
|
|
|
|
For most applications, storing it in the registry is fine. Two extra steps that I would take are encrypting the password, and making the name of the value or key something not obvious. Folks are going to snoop around in the registry for one reason or another. Making key and value names obvious is a sure-fire recipe for your application to be tampered with.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Take a look at LsaStorePrivateData and LsaRetrievePrivateData
|
|
|
|
|
and where does these functions write the datas ???
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|