|
If it ain't text, don't pretend it is text; use binary mode instead.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Hello Friends
Is there a way in which we can capture screenshot of a game built in direct x.
I registered a shortcut key using RegisterHotKey to display a test messagebox, launched Star Wars and pressed the shortcut key configured.
No messagebox appeared and hence it seems that the system wide shortcut keys of keyboard registered using RegisterHotKey do not work.
Or it means that Direct X creates it's own secure environment in which no other software made in directx or win32 or c++ can internein ?
Regards
|
|
|
|
|
Hi All,
I am working on my college project "Virtual Keyboard Video Mouse (vKVM) Server using C on LINUX". (Probably Server will have Graphics Data available in provided memory location)
I searched on Internet. It's similar to to "Virtual Networking Computing (VNC)" & "Remote Desktop". VNC uses Remote Frame Buffering (RFB) Protocol for it. I studied "LibVNCServer" but couldn't use it.
Please suggest me how to approach for this project? How should I start writing code for it? Initial requirement of project is Basic Server to transmit video/desktop data is also fine.
Please help me for that.
Thanks & Regards,
Aniket A. Salunkhe
|
|
|
|
|
Aniket Salunkhe wrote: I studied "LibVNCServer" but couldn't use it.
In that case you are going to have to write your own versions of the client and the server modules. I suspect that this is not a trivial task and an understanding of the existing libraries is a prerequisite. If you mean that you cannot understand these libraries then you probably need to reconsider the task you have set yourself.
I must get a clever new signature for 2011.
|
|
|
|
|
Well, for a college project it's probably easier going on without studying VNC protocols and libraries. I would study TCP/IP , design a basic, very simple, protocol and implement my own client and server (they won't be light-fast, but I suppose that's not required).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I agree with cpallini.... if you even look at vnc, then it should just be a glance at the architecture involved, not the implementation... I've seen other articles floating around with implementations of remote control software, try looking around for those...
|
|
|
|
|
Hi!
I've to get the installation path(i.e the user enters during installation) from C++. How to do this?
|
|
|
|
|
|
I am using Visual Studio 5 C++. The platform is Windows CE 6.0 R3.
I need to load a bitmap from file and need the HBITMAP handle to use in my program.
I have searched the Internet for this with no result.
SHLoadImagefile() I can't use.
OleLoadPicture() I may can use but gives me a unresolved external.
Maybe someone has encountered this problem before and want to share the solution with me.
|
|
|
|
|
|
LoadImage() is suppoted for Windows CE but dous not support load from file (LR_LOADFROMFILE) I am afreid.
Thanks for your answer.
|
|
|
|
|
Does SHLoadDIBitmap[^] work maybe?
[MSDN RANT]Is it me or does MSDN confuse the hell out of one? If you check it here[^] it says:
lpszName
...
If the fuLoad parameter includes the LR_LOADFROMFILE value, lpszName is the name of the file that contains the image.
fuLoad
[in] Set to zero.
...
So basicly this says: if you use LR_LOADFROMFILE then you can load a bitmap from file, but wait, you can't because you have to specify 0 for fuLoad. Gee, thanks. [/MSDN RANT]
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
Does SHLoadDIBitmap[^] work maybe?
No it does not work, but it compiled OK and the handle it returnes looks OK.
The LR_LOADFROMFILE is not supported for win CE and yes that MSDN article is confusing.
Thanks for your time.
|
|
|
|
|
If it compiles and gives you a good looking handle, what is wrong with it?
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> //TODO: Implement signature here<
|
|
|
|
|
I did something wrong. Now it works
(the handle was invalid by the time I started using it).
Thanks a lot.
hurrah there was a real good answer Now I have plenty of
time left.
|
|
|
|
|
there is some basic BMP reading code in our JpegFile[^] package. you could probably use it in VC5 without much difficulty.
|
|
|
|
|
Thanks for your reply
It is working now I used SHLoadDIBitmap()
hurrah...I have plenty of
time left.
|
|
|
|
|
Here I add a menu bar a menuitem.Now I want hide it accrodding according to a variable a .If a equals zero,then the menuitem is going to be hide,else just show it.
|
|
|
|
|
You can manipulate the menu in a handler for the WM_INITMENUPOPUP[^] message. In that handler, check your special conditions and add/remove/rename menu items as you please.
|
|
|
|
|
There is no hiding or showing a menu item.
You can add and remove them at your convenience.
Use InsertMenuItem to add a menu item and DeleteMenu to delete a menu item.
|
|
|
|
|
Hi all,
in dialog based application,i m using datetimepicker control.
using date in this format "01 Jan, 2011 10:05:06 AM"
i m using ParseDateTime to parse string of date time picker value in extern COleDateTime type variable.
when i m using English in regional settings its working fine.
but when i m using German in regional settings than parsedatetime function return false,so unable to complete the process.
please help me to resolve this.
if possible to explain me with example.
thanks in advance.
|
|
|
|
|
If you use the DTM_GETSYSTEMTIME [^] message, you should not need to do any parsing.
I must get a clever new signature for 2011.
|
|
|
|
|
hello guys... I was trying to start a process with appropriate argument (lets say Windows Media Player with path OR IE with URL). I have been looking but did not find anything useful. How can we do that? Also, if we can kill that process after specific time has elapsed.
|
|
|
|
|
|
To add some extra info to Cool_Devs answer, don't forget WaitForSingleObject is a blocking call... so make sure the thread you call it from is ok with being blocked... and USE A TIMEOUT! ...I've found so much code with no timeouts, that's asking for trouble!
|
|
|
|