|
Hi,
I am converting an VC 6.0 C++ DLL to ATL VC 7.0 DLL. I first converted the DLL to a VC 7.0 non-managed COM DLL. I tested this and everything works fine. Then I proceeded to add an ATL COM+ class to the project. The compiler compiles w/ no errors however it errors out when trying to regsvr32 the DLL w/ the following message...
[Performing registration
Project : error PRJ0019: A tool returned an error code from "Performing registration"]
What does it mean ???
Thanx & Regards,
Paul
Paul
|
|
|
|
|
I have exactly the same problem. If you look under the linker settings you probably have register output, as you would for an ATL project. Thing is this sets the post build event to run regsvr32 /s /c outputname. The ide interprets no output on the command line as being an error,. But /s silent was specified, hence why its confused. So in fact, it did register successfully, but took its silence as meaning something was wrong. Don't get me started on the /c, as its not even an option on regsvr32!
Personally can't see any way to fix it other than turning it off. So you have to regiser it yourself. Possibly, though have not tried it yet, is to pass it to a bat file, to echo something and keep it happy.
All I can say is VC++ team, fix this as its crap!!!!
If you allow me to rant on, another problem I've had recently is that even though I specify link to the Multithreaded debug dll version of the CRT, it will link to both the debug and release versions, giving me problems with heap allocation problems. Arrgh. You have to force it not to link. See LNK4098 I think.
And finally, wait until you see VS.NET get its knickers in a twist with Source Safe. Its really quite sad. Its like a whole load of stuff they have just not tested.
|
|
|
|
|
I wonder how I can find paint region of every window. You know that there a lot of windows with custom form (elipse, triangle, etc.).
Best regards,
Alex
|
|
|
|
|
Try Cwnd::GetWindowRgn(), the parameter is a HRGN
|
|
|
|
|
Hi, i need source code about TimeStamp Protocol ( i think RFC 3161 )
can anyone help me ? Any link with source code ?
thanks
luis
|
|
|
|
|
Luis Ricardo wrote:
Any link with source code ?
No, but have you tried Googling for it?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
|
You might consider e-mailing the authors of the RFC. They might have some code, or know of a link that does.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Try sourceforge.net:
http://sourceforge.net/projects/sipstack/
or
http://sourceforge.net/projects/timestamping/
Huey
|
|
|
|
|
In order for Luis to benefit from this, your reply should be directed to him.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Re-send:
Try sourceforge.net:
http://sourceforge.net/projects/sipstack/
or
http://sourceforge.net/projects/timestamping/
Huey
|
|
|
|
|
|
I want to convert a integer value to a CString.
I have been using 'itoa' or 'sprintf' to convert integer value to char string then convert the char string to CString.
Is there a better way to do it?
|
|
|
|
|
Check out the Format function (CString member)
|
|
|
|
|
As mentioned above:
int i=5
CString szI = "";
szI.Format("%d", i);
~Nitron.
ññòòïðïðB A start
|
|
|
|
|
Thanks all.
CString::Format is just what I need.
|
|
|
|
|
I want to create a new codec for windows media player for my own avi file. I have my own fourCC value and I would like WMP to recognize it and run the proper decoder for my file...
Any ideas???
Thanks,
JS
|
|
|
|
|
write a normal directshow filter.
Don't try it, just do it!
|
|
|
|
|
I have a Direct Show filter that I made which enables me to view my video using GraphEdit...
In GraphEdit, I can make a filter graph and render the avi... But, how can I make it so Windows Media Player will render my file, without any questions asked?
|
|
|
|
|
I am not expert in this area but this URL might help
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay/mmp_sdk/playerobject.asp
|
|
|
|
|
I finally got it to work!
I just had to change the merit value of my filter from MERIT_DO_NOT_USE to MERIT_NORMAL so the intelligent connect tries my filter when trying to load the file.
Thanks to everybody that tried to help me!
JS
|
|
|
|
|
Hi. I'm translating some menu options and I'm running into a problem with it.
I have this menu item, which is a popup menu, inside the Edit menu.
For setting menu item text, I have made the following function:
ASSERT( pMenu != NULL);
ASSERT( ::IsMenu( pMenu->GetSafeHmenu()) != FALSE);
UINT nFlags = pMenu->GetMenuState( nPos, MF_BYPOSITION);
UINT_PTR nNewID = 0;
if( nFlags & MF_POPUP)
{
CMenu *pSubMenu = pMenu->GetSubMenu( nPos);
ASSERT_VALID( pSubMenu);
nNewID = (UINT_PTR)pSubMenu->GetSafeHmenu();
}
else
{
nNewID = pMenu->GetMenuItemID( nPos);
}
return (pMenu->ModifyMenu( nPos, nFlags | MF_BYPOSITION, nNewID, inText) != 0);
This function works fine, I've been using the same function to translate some other menu items (I've added an item next to file, edit, etc.).
But for some reason these other menu options end up being empty. But when I try to retrieve the text, with GetMenuString, it shows what I entered in the resource... now, what the heck am I doing wrong here??
|
|
|
|
|
Not 100% sure what you mean in your question, but do you need to use the MF_STRING flag in the ModifyMenu call?
Roger Allen - Sonork 100.10016
Strong Sad: I am sad I am flying
Who is your favorite Strong?
|
|
|
|
|
I've tried that too, result is the same.
It's a bit of a strange case. I'm basically translating every menu option, and for the top level menus (file, edit, view, etc.) I'm using the function I posted in my original message.
The menu items that are there by standard (file, edit, etc.) are done fine, I can change the translation and it would show up differently. However, I've added one extra item called Production, when using the same function as all the others, I end up having an empty menu option.
Let me try to get a screenshot online:
Picture
Between Tools and Window there's an item missing: Production
And at the bottom of the picture, I'm obviously missing text...
But like I said, if I change the translation for like tools or something, which uses the same function, it does work..
|
|
|
|
|
One possible reason is that as your setting the test of a popup menu item, such items always have an ID of -1 or 0 (I forget which). This means that you may be corrupting the item by setting a new WM_COMMAND ID for the popup menu item to something other than -1/0.
Also, are you calling DrawMenuBar() after all your changes to the menu as you should do if you change the visual aspect of a menu item.
Roger Allen - Sonork 100.10016
Strong Sad: I am sad I am flying
Who is your favorite Strong?
|
|
|
|