|
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]
|
|
|
|
|
I think those two functions also stroing the value under the registry only.
|
|
|
|
|
Hello,
since VC++ 6 doesn't work anymore on my SP2 XP system, and I have to make
some changes to an old project I decided to convert it to .NET 2003.
So I clicked on the .dsw file and am getting those error messages:
"The project file 'XXX' has been corrupted and cannot be opened".
There are about 20 projects in that workspace and it seems (thanks to Microsoft),
that I cannot import them.
Is there any kind of converter program which I could use to convert all of those
.dsp files to .cvproj? It would take hours to rebuild the whole workspace.
Rainer
|
|
|
|
|
I think there is something wrong with your system.
1) Visual Studio 6 runs fine under WinXP SP2
2) When you try to open a VC6 project with Visual Studio.NET a messages comes up asking if you want to convert it to the new format and when you choose yes everything works fine.
So, to my experience, you have another problem.
MS
|
|
|
|
|
.dsw and .dsp files are text files. If you open them with a text editor, you'll see:
DSW:
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
Project: "blah"=.\blah.dsp - Package Owner=<4>
Package=<5>
{{{
begin source code control
$/path/to/blah
.
end source code control
}}}
Package=<4>
{{{
}}}
###############################################################################
Global:
Package=<5>
{{{
begin source code control
$/path/to/blah
.
end source code control
}}}
Package=<3>
{{{
}}}
###############################################################################
DSP:
# Microsoft Developer Studio Project File - Name="blah" - Package Owner=<4>
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Console Application" 0x0103
CFG=blah - Win32 Release
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
!MESSAGE use the Export Makefile command and run
!MESSAGE
!MESSAGE NMAKE /f "blah.mak".
!MESSAGE
!MESSAGE You can specify a configuration when running NMAKE
!MESSAGE by defining the macro CFG on the command line. For example:
!MESSAGE
!MESSAGE NMAKE /f "blah.mak" CFG="blah - Win32 Release"
!MESSAGE
!MESSAGE Possible choices for configuration are:
!MESSAGE
!MESSAGE "blah - Win32 Release" (based on "Win32 (x86) Console Application")
!MESSAGE "blah - Win32 Debug" (based on "Win32 (x86) Console Application")
!MESSAGE
# Begin Project
# PROP AllowPerConfigDependencies 0
# PROP Scc_ProjName "$/path/to/blah"
# PROP Scc_LocalPath "."
CPP=cl.exe
RSC=rc.exe
!IF "$(CFG)" == "blah - Win32 Release"
# PROP BASE Use_MFC 0
# PROP BASE Use_Debug_Libraries 0
# PROP BASE Output_Dir "Release"
# PROP BASE Intermediate_Dir "Release"
# PROP BASE Target_Dir ""
# PROP Use_MFC 0
continues... If you can't open it in a text editor, or there are odd characters in the file, the file has indeed become corrupted. You should restore from a known good backup - and run the Windows Memory Diagnostic[^] to ensure your system RAM is OK.
If your system RAM is OK, consider replacing your hard disk.
Stability. What an interesting concept. -- Chris Maunder
|
|
|
|
|
Dear Frineds,
I have a small Query in VC++ ,I will highly appreciate if you please
suggest me some solution.
I have an MDI, Document/View Architecture ,"Full Server Active Document Server " Application.
In this application I have 5 toolbars which I a docking side by side .
I am creating a document inside this application and saving it let us say "test.tsd"
Now when I open this document in MSWORD ,I see the item in MSWORD but I cannot see the toolbar docked side by side in MS Word Applciation.
Because when you double click any item in MSWORD then toolbars of MSWORD should be replaced by server Application but I am not able to see the toolbars docked side by side.
There is sample application in MSDN (Hiesvr) mfc_ole_hiersvr.zip . But this application does not
show how in dock toolbar side by side in case of In Place Activation
Can you please suggest any solution (or any sample if you have ) for this problem.
My email address is rajeevkanta@hotmail.com
with thanks
regards
Rajeev Garg
|
|
|
|
|
moved working application compiled on win 2k sp3 and visual C++ sp5 to win 2k sp4 compiled and run . the application fails immediatly with access violation.
try to put sp6 for visual did not help!
anyone can help?????????
attiasgabi@hotmail.com
|
|
|
|
|
moved working application compiled on win 2k sp3 and visual C++ sp5 to win 2k sp4 compiled and run . the application fails immediatly with access violation.
try to put sp6 for visual did not help!
anyone can help?????????
|
|
|
|
|
Likely a bug in your code that has always been there and decided today is the day to show up. Debuggers were created to help track down such problems and VC has a very good one.
Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"
|
|
|
|