|
O.K. Scriptkiddies!
I was hoping that someone might want a challenge.
I have been looking at AngelCodes Desktop Overlay code that allows for a directdraw screen animation to be displayed onto the win32 desktop.
http://www.angelcode.com/dev/overlay/
"This demo will show an animated image like an old TV without signal on your desktop, under your windows and icons. It does this by using DirectDraw overlay surfaces that are masked to the desktop background color. DirectX 7 or later is needed to run the demo. "
Now for the newbee question and hopefully one might be up for this challenge (NOTE: do not care about being a resource hog).
I would like to know how to draw a very very basic box, 3d object, or load a image into that code instead of the static screen the code shows.
Exmaple: http://www.cplusplus.com/src/direct3d.zip
AngelCode does not have the time as he is very busy.
Now, I have searched and searched the web with only answers like "Just use Active Desktop", but I do not want to do a gif/flash animation.
I would like to get a code sample to show a simple 3d box on the desktop.
Very Very basic so that my little brain can get that light bulb going to go "OH THATS HOW THEY DO IT!"
I hope that one of you would like a challenge, or even help out a newbee at this to get my brain, and coding in the right direction.
Sure it might be a dumb thing to do, but I would realy like to learn how anyways.
Thank You
|
|
|
|
|
Is no up to this challenge?
Even if you happen to have some links that would be great.
|
|
|
|
|
Hello, Somebody knows a good and easy tutorial for C++ ActiveX??? I made one that I think that works as well but I don't know how to include this inside my HTML page, I don't know how to register my OCX file and what is the ClassId... Can anybody help me?
Wender Oliveira
.NET Programmer
|
|
|
|
|
How on earth can it work if you don't register it ?
Christian
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
|
|
|
|
|
Just using FrontPage or any HTML editor, you can insert your ActiveX control to web page. I dont know which version of FP that you are using but I have FP 2002. Here is command:
Insert -> Web Component -> Advanced Controls -> ActiveX Control -> Your ActiveX Control.
To register an ActiveX control, you can issue command: regsvr32 ocxfile or make a cab file that can be downloaded from network server.
|
|
|
|
|
I know how to register my OCX file, the problem is that I don't know the ClassID to add my object tag inside my HTML.
Wender Oliveira
.NET Programmer
|
|
|
|
|
hi,
Can we draw or aquire input from the desktop of a windows system.
|
|
|
|
|
Check this
http://www.codeproject.com/bitmap/DeskShoot.asp
|
|
|
|
|
Hi,
I am using VC++ 6.0 to access a webservice. The returned XML data contains strings with french characters (éèà...). I use a CString to store these strings then add the strings to a list control. The problem is that those characters do not display correctly. For example the word 'Marché' displays as 'Marché'.
I guess it is because the strings are encoded someway (unicode ?).
How can I convert those strings to display properly ?
|
|
|
|
|
hey guys,
I am trying to create an openGL window in which I want to display a BMP image of any size and then I want to do some processing on that image and I am trying to do this in VC++ using GL library. Can anybody help me out how I can read the data in the image after I read the image for displaying so that i can do processing on it.
One more thing I want to know is whether we can display a BMP image using glut library directly.
thanks in advance,
Pavan.
Pavan Kumar N Tiruveedhula
2382 Duncan Dr #4
Fairborn, Ohio-45324
1 (978) 473-1244
|
|
|
|
|
I know one site that does have some very cool examples to learn from:
http://nehe.gamedev.net/
I hope that helps!
|
|
|
|
|
hi,
yeah i appreciate your advice but i have already gone throught that site and i think that it is not having anything relating to access the data of the image after reading the image...that's wht i actually want
thanks,
pavan.
Pavan Kumar N Tiruveedhula
2382 Duncan Dr #4
Fairborn, Ohio-45324
1 (978) 473-1244
|
|
|
|
|
Hi,
On a similar note, I am also have trouble accessing a .bmp image. This is what I have got so far,
Let file.bmp be the target .bmp file. It can be accessed as follows,
---------------------------------------------------------
BITMAP bm;
HBITMAP hbitmap = (HBITMAP)::LoadImage(NULL,"file.bmp",IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
GetObject(hbitmap,sizeof(BITMAP), &bm);
--------------------------------------------------------
The above 3 lines gets you from file.bmp to a BITMAP data structure you can access and manipulate. The BITMAP data structure can be seen at MSDN via http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/bitmaps_2h6a.asp
BITMAP is just a struct, not a class, and so is accessed directly.
The above lines require #include <windows.h>
I was able to get to the BITMAP data structure, but have yet to decode what everything in the data structure means. This is not much, but it's a start.
Any additional help on the data structure would be greatly appreciated. Thanks in advance.
Victor
|
|
|
|
|
Hi to all in bit crunch land.
I am not very advanced with the VStudio.net platform so don't fall over hurting yourself laughing that this!
I am trying to polish off a program that will read an .ini file for its parameters and locate a registry key value based on these parameters and replace the subject key with the supplied data.
The problem I seem to have is in using a pointer to the key value in the statement: lRet = RegOpenKeyEx(HKEY_LOCAL_MACHINE, reg_key_tree, 0, KEY_QUERY_VALUE, &hKey);
reg_key_tree is defined as: char reg_key_tree[1024];
lRet returns a 2 on this branch unless I have previously opened the registry on the same machine using the desktop GUI and then it returns the 0 for ERROR_SUCCESS. Once the registry has been opened, this program always works. I have reviewed code from Microsoft and on the face of it, it should work.
If I compile the program with the reg_key_tree variable written out and surrounded in quotes, it always works regardless if the registry had been opened in any other window.
Can someone teach an old dog this new trick? Thanks in advance.
Carpetbagger
|
|
|
|
|
Check my article about the little windows utility.
There you will find everything you can do with the win registry.
gabby
|
|
|
|
|
hello,
if i m not wrong ur problem is when
char *reg_key_tree = "Software\\microsoft\\etc"
lRet = RegOpenKeyEx(HKEY_LOCAL_MACHINE, reg_key_tree, 0, KEY_QUERY_VALUE, &hKey);
and when
lRet = RegOpenKeyEx(HKEY_LOCAL_MACHINE, "Software\\microsoft\\etc"
, 0, KEY_QUERY_VALUE, &hKey);
there is no prblm.
well, i tried out this with my application. there is absolutely no problem. check out ur pointer def...
ask_you
|
|
|
|
|
In Ada, the coder can access the first and last values of an enumeration using attributes as follows:
Some_Enum'FIRST
Some_Enum'LAST
No matter what the enumeration or type, the first and last values are returned.
Is there an equivelent ability in C/C++?
|
|
|
|
|
That is not built into C++, you can simulate it with something like:
enum EColors
{
_firstColor,
Red, Blue, Orange, Mauve
_lastColor
}; Then to test whether a number is in the allowable range you test (n > _firstColor && n < _lastColor) I find it easier to do tests when the sentinel values are not legal enum values. If _firstColor were the same as Red , and Mauve the same as _lastColor , you also introduce a maintenance problem because you (and any other devs) have to remember to keep the definitions of _firstColor and _lastColor in sync with the enum values.
--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ
----
I even hear the Windows "OMG I booted up fine" sound.
-- Paul Watson diagnosing hardware problems.
|
|
|
|
|
Hello,
is there an option to always display the CTreeView Open, or expanded... i don't want to see the +, i want to see all the sections.
thanks!!
|
|
|
|
|
Hi!
I know how to load a bitman from a bitmap resorce, with the CStatic::GetBitmap function, but i don't know how to load a bitmap from a file.
any ideas?
thanks!!
|
|
|
|
|
Check the LoadImage function.
example:
HBITMAP hBmp = (HBITMAP)LoadImage( NULL, pcszFileName, IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE );
|
|
|
|
|
|
I have problems with a 32-bit client, a 64-bit server and a 32-bit server. These applications use sockets.
The applications were written in Visual C++ 6.0 and I use the Microsoft Platform SDK SP1 to compile the server code for the Itanium 64-bit platform.
It seems that sockets in 64-bit behave quite different than sockets in 32-bit. For example when I execute 20 clients trying to connect 100 times to a server this is what happens:
30% of the connections from the 32-bit clients to a 64-bit server fail, whereas on 32-bit it is less than 5%.
The server code is 32-bit and 64-bit compliant. So when i need the server in 32-bit i just compile it for 32-bit and the same with 64-bit.
Another problem that i'm having in 64-bit is that sometimes clients say they were connected but the 64-bit server does not accept their connection.
Any one with ideas?
Thank you very much.
|
|
|
|
|
First off, what I/O model? Secondly, describe more about what you mean by server not accepting connections.
Kuphryn
|
|
|
|
|
I'm creating a large string with CStringto be inserted in an web browser.
I'm mostly concatenating tags and text in the string, eventually, the string will become quite large, and performance will suffer a bit.
is using std::string faster ? if I use std::string::reserve to reserve some memory, even if it's really too much for small buffers, will that make operations faster ?
Also, I'd prefer not having to go back to C strings.
my "builder" class is something like
class Builder
{
CString sBuffer;
void beginRow() { sBuffer += "<tr>";} ;
void endRow() { sBuffer += "</tr>"; };
}
with some other basic html tags methods ...
Thanks.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|