|
I have tried with AfxGetInstanceHandle( ) to LoadCursor.. return value of LoadCursor is coming NULL.
|
|
|
|
|
Why are you calling ShowCursor Again you dont need to rite when you just changing the cursor?? OR are you hiding cursor before some where??
If you are hiding then try Showing cursor first and then set Wait cursor.
|
|
|
|
|
Cursor is not hidden anywhere.. I tried removing SetCursor also.. Cursor is not changing its shape.
|
|
|
|
|
Have you tried by removing ShowCursor() ??
|
|
|
|
|
Have you tried BeginWaitCursor() and EndWaitCursor() ?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks Rajesh.. It works now... Thanks a lot.
|
|
|
|
|
venkat.kupunaram wrote: Thanks Rajesh.. It works now... Thanks a lot.
You're welcome.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Hi all,
I want to use a static variable in a method. So I do it as follows.
class temp{
private:
static int count;
};
#include temp.h;
int temp::count = 10;
Is that ok, at the time it's working fine. I just want to know the way I tried is ok or not.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Look Okay.
Regards,
Paresh.
|
|
|
|
|
Thanks a lot.
I appreciate your help all the time...
CodingLover
|
|
|
|
|
Hello!
I want to program OpenGL with Visual C++ 2008.
How do I get the correct GL/glut.h files en library files installed on my pc? Where can I download the OpenGL library which belongs with the IDE?
Does Windows Vista already have this installed?
Please send me some hints.
Thank you, Ranger
|
|
|
|
|
GLUT is utility library provides windowing API for openGL, i believe it is not distributed with windows or platform SDK. you may need to download the latest distributable, can be from [GLUT download^]. if you mean open GL not GLUT, windows vista by default provides layered openGL over direct3D, it is not the fastest and supports upto openGL 1.4 only, but vista provides support to incorporate Vista-compatible ICDs(Installable Client Driver) to support latest advancements in openGL and those ICDs are provided by the hardware vendors. With platform SDK openGL headers are provided not GLUT. I believe OpenGL doesnot relate to VS IDE, if you installed or set the path to GL sdk you should be able to compile, for more info go to openGL.org.
|
|
|
|
|
Rajkumar R wrote: i believe it is not distributed with windows or platform SDK. you may need to download the latest distributable, can be from [GLUT download^].
I did download GLUT and put a headerfile and a DLL file in my Visual C++ folder with the other headerfiles and dll-files. And it works.
But what if I want to switch to DirectX it shouldn't be a problem I added two or three files to the programming environment? I mean I didn't delete anything!
I did notice that on my Vista PC there were already two OpenGL headerfiles present but it didn´t do what I wanted, and since I am a newbe in this matter I figured if I add the GLUT headerfile I can get the examples from the book I bought about computer graphics to work.
Thanks for your help...
|
|
|
|
|
Ranger49 wrote: But what if I want to switch to DirectX it shouldn't be a problem I added two or three files to the programming environment? I mean I didn't delete anything!
DirectX and OpenGL has no dependency, you need to use DirectX SDK headers, lib ... that works independently of OpenGL and vice versa
|
|
|
|
|
ClassVizard is an interface to add messge handler and variable in VC6.
I have used VC2005 for several days, but I still can not find the interface in VC2005.
Could you tell me how to display the dialog in VC2005?
VC2005 is really bad in use, I think Ms products become worse and worse because Microsoft has many funny developers now, they don't know differences between important and unimportant, just made VC inconvenient.
|
|
|
|
|
includeh10 wrote: I have used VC2005 for several days, but I still can not find the interface in VC2005.
See here.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I have a C++ application with a C++ DLL and a C# DLL. Both C++ modules can call methods in the C# DLL.
The C++ app tells the C# DLL to perform graphical operations. I then want the C++ DLL to read the results from the C# DLL. Unfortunately, it looks like the two C++ modules are communicating with separate instances of the C# DLL.
How can I make both C++ modules communicate with a single instance of the C# DLL? Thanks!
|
|
|
|
|
Alan Balkany wrote: Both C++ modules can call methods in the C# DLL.
It is difficult to understand the architecture from your post. Are these C# methods static and they read/write static C# variables?
led mike
|
|
|
|
|
No, nothing is static. I'll try a static variable and see if it works. Thanks.
|
|
|
|
|
Static variables worked! Thanks led mike!
|
|
|
|
|
Good day all :]
Hopefully this is in the right section T__T
A particular topic has really been getting to me lately, programming files with custom extensions.
For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world, so I want to create my own file type, such as data.rid (really important data for the acronym :p)
How would I go about doing something like that? I know it's simple enough to just rename a file, but how would I actually make it work with a program?
Cheers!
-Dia
|
|
|
|
|
That's not complicated at all: when you create the file, you simply gives the extension you want. The extension doesn't mean a lot of things. It's only used by window to associate certain files with certain programs. But a file is still of file, no matter what the extension is.
|
|
|
|
|
Diagathon wrote: For example, lets say I have a file with a lot of important data pertaining to a program. I obviously dont want this accessible to the world...
So do you want to encrypt it?
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
Thank you Cedrick! I now have a better understanding of that aspect :]
David:
I believe that is what I am referring to
How would I go about doing that?
If there is documentation somewhere that I could be pointed to, please share so I dont bother you with typing out a long example :]
Thank you for the fast replies as well! :]
|
|
|
|
|
For instance... you can start in the security section[^] here in CP.
Greetings.
--------
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
“The First Rule of Program Optimization: Don't do it. The Second Rule of Program Optimization (for experts only!): Don't do it yet.” - Michael A. Jackson
Rating helpfull answers is nice, but saying thanks can be even nicer.
|
|
|
|