|
plz
some one tell me how can i display bitmaps file in my app?
|
|
|
|
|
See if any of these articles help.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Hello,
I am currently writing a Windows Background Service and have run into some trouble.
So far things have been going well, but the only problem I have is that I need to set the state of the CAPS LOCK to on, which I am unable to achieve.
I have include winable.h and I am using the code:
::keybd_event( VK_CAPITAL, 0x45, KEYEVENTF_EXTENDEDKEY, 0 );
::keybd_event( VK_CAPITAL, 0x45, KEYEVENTF_EXTENDEDKEY | KEYEVENTF_KEYUP, 0 );
Which works in a regular console application, but I can't seem to get it to work in a windows service.
Is there some sort of security restriction that prevents me from changing the key state? Other then that, I have no idea.
Thanks in advance
|
|
|
|
|
Why do you need to alter the state of the CAPS LOCK key from within a service?
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
I do know that Windows Services run as the System user. When you create your service, are you giving it desktop privileges? Perhaps that's what's needed.
Check out the SERVICE_INTERACTIVE_PROCESS flag for the ::CreateService API on MSDN.
Note that chances are, the problem lies with the code that creates and registers your service, not the service itself.
"Fish and guests stink in three days." - Benjamin Franlkin
|
|
|
|
|
Hi!
I’ve used the java-program “Together” to generate a picture of my programming project, but now my license is out. Anyone got a tip of a good free alternative? I’m using VS.NET and would be very happy if I have a solution there…
...and justice for all
APe
|
|
|
|
|
|
I tried a few recently and Visual Paradigm seems to be as good as Visio proffesional.
Elaine
The tigress is here
|
|
|
|
|
I just gave it a quick look...
Which language does it support?
...and justice for all
APe
|
|
|
|
|
Hai all,
When I am using Dialog Bar with buttons in win CE, the dialog bar appears but I am not able to browse the button. Mouse move event is also not occur. if anybody tell me the solution or weblinks.
thank you all
DARWIN PAUL RAJ
|
|
|
|
|
hi all, i am developing a windows explorer like app, i took a SDI app, created 2 views, a splitter window and my problem is how do i get the drives to be displayed in the tree view ?? and the files and folders in List view.
appreciate all ideas..
regards,
Kapil
|
|
|
|
|
The left pane needs to be a CTreeView , and the right pane needs to be a CListView . I assume you've gotten at least that far.
The item(s) in the tree view should start out with just top level drives (e.g., drive C). When any of those drives are expanded, the top-level folders of that drive are displayed. With each folder that is expanded, the folders under it are displayed. This would continue on an as-needed basis. Otherwise, a full scan of the drive prior to displaying, would take way too long to be of any use.
When an item in the tree view is clicked on, the contents of that folder are displayed in the list view.
Here is a pseudo-example.
Here is a C# example. And another.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
Can we convert BMP to JPG image using VC++. If so what is the code that has to be written in VC++.
|
|
|
|
|
There are many solutions such as
CImage of MFC(or ATL), some third party libraries such as jpeglib.lib , CImageX etc.
Unmanaged in a .NET world
|
|
|
|
|
Take a look at the CxImage class here at cp.com
modified 12-Sep-18 21:01pm.
|
|
|
|
|
You also have the ability to do it in GDI+.
|
|
|
|
|
Hi,
I have a normal Doc/View application, and i see that even if i call AfxEnableControlContainer() the m_pOccManager of the AFX_MODULE_STATE remains NULL - and then all my OCX's crash...
any ideas? tried CoInitialize(NULL); as well, nothing seems to help
10x!
|
|
|
|
|
Hi All,
How to make Localised .dll for my project. I want to a separate .dll for Localisation. It will be loaded during application initialisation.
Waiting for your positive response.
Regards
Patra
|
|
|
|
|
You create an empty DLL, copy all the resources of the original project to it. Translate and compile.
In the application app-class InitInstance , call AfxLoadLibrary to load the DLL. Save the return value in a HINSTANCE member of the class. Call AfxSetResourceHandle with this HINSTANCE to use the localized DLL. Finally, in ExitInstance , call AfxFreeLibrary with the HINSTANCE .
|
|
|
|
|
|
Take a look at SmartTrans. It works well for single exe projects. It will take your .EXE and using a glossary you supply (english to other language), will create a new EXE with all the resources translated.
I've written an update to handle multiple dll projects, but not submitted it yet. Basically it will scan all the sub projects and create a single resource DLL with all the translated resources. Then you load this DLL when necessary.
|
|
|
|
|
Does anyone know where I can find an API to create snapshot documents (like Access does), but I want to use MFC/C++.
Cheers
|
|
|
|
|
whats a snapshot document?
like a screen capture?
|
|
|
|
|
A snapshot document is sort of like a PDF.
It's a self contained report document that includes text, formatting, pictures etc, and can be viewed on any Windows PC via the SnapShot Viewer (free download).
It's normally created from a report by Microsoft Access, but I thought there may be another way.
I could write a PDF file, but I don't really want to pay for a library to do it, and the free examples I've seen don't really cover everthing I need to do.
|
|
|
|
|
Hi,
We had the shortcuts in our program. However, after implementing the keypressed handler, we cannot use the shortcuts. We will be very glad if anyone proposes a solution.
Thanx in advance,
|
|
|
|