|
Rage wrote: Are you keeping statistics ?
no, simply i answered him the 4 times he asked this, and still he keeps asking...
same question => same answers
Rage wrote: I rarely check names when I answer a thread
i don't do it every time, but i do it often ; as far as i also check sometimes the guys profiles to know if they are beginners or not (looking at their birth date when provided, their member level too, etc...), to respond in consequence...
here is my secret
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
-- modified at 6:27 Tuesday 10th January, 2006
|
|
|
|
|
not for you dear ~Rage, but :
Who are you sucker who vote anonymously all my posts to '1' without even justifying your act ? bastard
come on, show me your face stupid boy
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
-- modified at 10:29 Tuesday 10th January, 2006
|
|
|
|
|
For MDI Application refer Jeff prosise book for MFC PROGRAMMING.
|
|
|
|
|
I completely agree with Yuwraj: The Prosise book got me started on MFC. Mind you, I'm not a big fan of the framework, but it's usable and Prosise makes it accessible.
"we must lose precision to make significant statements about complex systems."
-deKorvin on uncertainty
|
|
|
|
|
I have imported the dll org.mentalis.security.dll but while compiling
it gives the following error.
fatal error C1083: Cannot open type library file: 'c:\mentalis\seclib-1.0\signed_builds\1.1\org.mentalis.security.dll': Error loading type library/DLL.
Yuwraj
|
|
|
|
|
|
In the following short program, CreateIoCompletionPort fails and GetLastError says invalid handle was supplied. Return values from CreateFile is not INVALID_HANDLE_VALUE so I guess that IOCP doesn't accept handles for consoles.
I just want to confirm that it is true or I made a mistake in this program. I intended to receive console inputs via IOCP.
#include <stdio.h>
#include <windows.h>
int
main( void )
{
HANDLE stdin_handle, iocp, stdout_handle;
stdin_handle = CreateFile( "CON",
GENERIC_READ, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED, NULL );
stdout_handle = CreateFile( "CON",
GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL,
OPEN_EXISTING,
FILE_FLAG_OVERLAPPED, NULL );
iocp = CreateIoCompletionPort( stdin_handle, NULL, 0, 1 );
if( iocp ) {
CloseHandle( iocp );
puts( "O.K." );
}
else {
printf( "Error = %lu, stdin=%p, stdout=%p invalid_handle=%p\n",
GetLastError(), stdin_handle, stdout_handle, INVALID_HANDLE_VALUE );
}
return 0;
}
-- modified at 4:02 Tuesday 10th January, 2006
|
|
|
|
|
the completion key should not be 0.
besides, i always create a iocp with no handle, and then attach stuff to it.
|
|
|
|
|
Though I supply non-zero value for the completion key ( the 3rd arg. ), the result is the same. And I couldn't find restrictions for the value of the completion key mentioned in MSDN.
And supplying INVALID_HANDLE_VALUE for the 1st arg is not compatible for NT 3.5 or below.
|
|
|
|
|
so maybe instead of CreateFile(CON) u acquire the handle u want from GetStdHandle ?
|
|
|
|
|
At the first time I tried to use GetStdHandle but IOCP was not created. So I tried to use CreateFile to supply FILE_FLAG_OVERLAPPED for the console handle.
Finally I concluded that IOCP cannot be used for console I/O.
|
|
|
|
|
Oops..
You are right!
The documentation for CreateFile says that the dwFlagsAndAttributes argument is ignored on console objects.
|
|
|
|
|
Hi All,
Recently I tried to write a little player with the help of WMP10 SDK. To start with, I read the information provided from MSDN and try to follow the steps provide. Using the Windows Media Player Control in a C++ Program
All things work well until to the section of non-wrapper class, I find that when I copy and paste the code provided to have a test error reported.... would anyone mind to advise me on what I have missed? (For the wrapper class there is no problem ...)
Really thanks!;)
|
|
|
|
|
I have an ActiveX Component created with Visual C++ 6.0 and I need to change the UUID of the component. I know i can generate UUID with uuidgen.exe, but How will I change the UUID of the ActiveX Component? I searched the project for UUID and there are about 98 results, each a different uuid. How do I set the UUID of the ActiveX Component to something new?
Thanks and regards,
Aljechin Alexander
|
|
|
|
|
Aljechin wrote: I need to change the UUID of the component
Why would you do that ?
~RaGE();
|
|
|
|
|
If i tell you why can you please give me the solution? I have to install 3 copies of the same activex component in a machine, according to the order in which the 3 get loaded, they do a different task. But when the UUID are same, if i register one (after renaming it) it replaces the other one. Renaming is not enough, clearly i learned. So, how to change the UUID of an activeX component? I have generated 2 different ids with UUID gen. How to use it now?
Thanks and Regards,
Aljechin Alexander
|
|
|
|
|
Hello,
It is strange to see that you have 1 active X control, that has to be installed 3 times and has different behaviour depending on the order in which they get loaded.
I find this strange, since you as a developer has absolutly no idea what happens when you load the component during the development stage. You cannot depend on certain behaviour since it might be different during every startup.
If you still think that this is the way to go, you can consider hiding the behaviour behind the control. Make 3 classes that have the different behaviour and you can use shared memory / registry / mutex / ... to determine what class has to be instantiated at startup.
Hope this helps
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
I am not allowed to explain anything more than this, Leave it plain as it is, please tell me how to change the uuid of an activex object, will you please?
|
|
|
|
|
Hello,
There is no need to explain more on this. Given the provided information, I drew a conclusion and offered you a possible solution. You should decide (or talk to one who can decide for you) if that solution should be implemented or not. My objective was to make you think about an other solution, which is IMHO more subtle than 3 different UUID, which has to be carried around. The way I see it, is that you expose implementation details which should be hidden from the user.
Anyway, I don't know how to change the UUID of an ActiveX control.
Behind every great black man...
... is the police. - Conspiracy brother
Blog[^]
|
|
|
|
|
Aljechin Alexander wrote: How to change the UUID of an ActiveX Control?
Bob Stanneveld wrote: Anyway, I don't know how to change the UUID of an ActiveX control.
|
|
|
|
|
Aljechin wrote: If i tell you why can you please give me the solution
I honestly do not know how to do it, since I do not have any experience with such controls. I only wanted to point out that it may not be a good idea to have three times the same component with three different ids, for an UUID should represent some ... unique entity.
~RaGE();
|
|
|
|
|
That would depend of how the ActiveX control was written. If it's in ATL you would change the IDL and RGS files then recompile. Can you give more info?
Steve
|
|
|
|
|
No ATL. It is a MFC Project, final output is an OCX
|
|
|
|
|
Change GUIDs in:
- The .ODL file; and
- Type library ID in the Project.cpp file (to match change in the .ODL file); and
- Class and interface IDs in the ProjectCtl.cpp file.
To make things worse you'll have to break up the GUIDS with commas; follow the existing pattern. I find ATL more civilized for most of my COM work.
I suspect that there may be a more elegant way of solving your problem then duplicating the control with different GUIDs (or am I misunderstanding you intentions here?).
Steve
|
|
|
|
|
change the UUID of Interface in Project.idl and interface.rgs file. please note you have diffrent .rgs file for diffrent interface you exposed through the Component
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|