|
Thanks, my problem is resolved, though now I need to iron out the bugs that appeared due to my hasty switchover to Unicode. I'll start building my programs using Unicode from the start next time.
Thanks again.
Jeffrey
|
|
|
|
|
JJeffrey wrote: I'll start building my programs using Unicode from the start next time.
That's wise!
JJeffrey wrote: Thanks again.
My pleasure, and glad to be of help.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i can't use my local msdn library after i installed it with VS2008.
it says can't find the server. i save a screenshot here:msdn_error1.bmp.html[^]
but i don't know why. And the problem still there even though i reinstall msdn
|
|
|
|
|
I am not sure if i understood your problem correctly.
Are you facing some problem with associating MSDN with VS2008?
If yes there should be some option to associate in settings of VS2008.
At least it is there is VS6.0 under Tools->Options->Help System. so you can try to find in VS2008.
I hope it helps.
Regards,
Sandip.
|
|
|
|
|
did you see the image of my error screenshot? You know, when you press F1 in VS editor, the helper process(MSDN) will be started automately. Of course you can select to start it from the programs menu.
My problem is that, the helper can't show any useful documents although it has been started successfully.
Thanks
|
|
|
|
|
kcynic wrote: did you see the image of my error screenshot?
No site is blocked in my office
kcynic wrote: when you press F1 in VS editor, the helper process(MSDN) will be started automately
If it starts automatically then it is associated properly.. I just guessed that it might be problem when you install VS and MSDN separately.
Regards,
Sandip.
|
|
|
|
|
I really don't know why. if so, im afraid i'll have to use msdn online, until i reinstall my os when some fatal errors occur on it.
Thanks all the same.
|
|
|
|
|
It works well now!
I just simply updated my IE to IE8.
Thanks.
|
|
|
|
|
Hello,
I am trying to draw a video stream from a webcam or from another computer webcam on a Direct X surface. Can anyone give me some suggestion about any library or SDK I can use to do that. I know the part how to put a bitmap data on the Direct X surface, but need some suggestion about getting video data from the webcam and from the network.
Thanks!
Nacho
|
|
|
|
|
You can use windows media encoder to get the desire result . Also you must read directshow which having all the functionality of streaming and drawing on directx surface
Rajesh
|
|
|
|
|
Hi everyone,
I am facing some issues when i am porting my code from VC++6.0 to VC++9.0. Here is the list.
1. ByteVector::iterator it = (BYTE *)"ACI";
2. Error 3 error C2440: 'initializing' : cannot convert from 'BYTE *'
to 'std::_Vector_iterator<_Ty,_Alloc>'
hdr = *(ACI_HEADER *)it;
hdr is of type ACI_HEADER.
I tried de coupling the iterator and the ACI_Header but it dosent work.
hdr = (ACI_HEADER)(*it). This type of decoupling worked for unsigned char conversions but not
ACI_HEADER.
3. Error 17 error C2664: 'ComPtr<T>::ComPtr(const ComPtr<T> &)' : cannot
convert parameter 1 from 'int' to 'const ComPtr
ComPtr<CEventMsg> CEventMsg::FromBuffer(DataBuffer &buffer)
{
.....
.....
return NULL;
}
Any advices on these issues will be helpfull.
Thanks,
Pratap
|
|
|
|
|
Issues 1 and 2 - std::vector iterators used to be ordinary pointers. But they're not any more. I suspect this implies that your conversion from pointer to iterator (and vice versa) was (in terms of the C++ standard) erroneous, and you need to reformulate it in ways that are valid C++.
Issue 3 - try returning 'ComPtr<CEventMsg>(NULL) ' or 'ComPtr<CEventMsg>() '?
|
|
|
|
|
Thanks for the suggestion. Issue 3 is solved but a similar type araised
ComPtr<CDMPPacket> CDMPSession::NewRecvPacket()
{
return new CDMPPacket; //Error
}
Error 1 error C2664: 'ComPtr<t>::ComPtr(const ComPtr<t>&)' : cannot convert parameter 1 from 'CDMPPacket *' to 'const ComPtr<t>&
|
|
|
|
|
pratap1980 wrote: return new CDMPPacket;
should be replaced with return ComPtr<CDMPPacket>(new CDMPPacket); . It's the same pattern.
|
|
|
|
|
An iterator on an element in a collection is not the same as a pointer to that element. VC6 let you do that, and it happened to work, even though it was wrong to assume that the two were equivalent. Use &*it to convert an iterator to a pointer.
|
|
|
|
|
|
I'm trying to interpret the bCertificate member of the WIN_CERTIFICATE struct (for a debugging tool I'm writing). Does anyone have a code sample or link to a spec that shows how to interpret this data member?
|
|
|
|
|
You can view the authenticode signature documents here:
http://www.microsoft.com/whdc/winlogo/drvsign/Authenticode_PE.mspx[^]
The bCertificate member is described on page 13 as:
"bCertificate is set to a variable-length binary array that contains the Authenticode PKCS #7 signedData"
I believe page 7 contains the signedData structure which is associated with the bCertificate member. It looks like you will have some additional research ahead of you as there is little documentation in this particular area.
Best Wishes,
-David Delaune
|
|
|
|
|
Okay, I have a little war going on in my development, and I want y'all to weigh in with your thoughts. When I add a class to a project, let's call it the filter algorithm, we will know this as class CFilter. Now, do you name this file filter.h/cpp or cfilter.h/cpp?
Curious
Charlie Gilley
Will program for food...
<italic>Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin
|
|
|
|
|
charlieg wrote: Now, do you name this file filter.h/cpp or cfilter.h/cpp?
By default for a class CFilter , the class wizard generates Filter.h/cpp . And for me it make more sense than cfilter.h/cpp . IMHO, Hungarian notations are best for source code, not for filenames.
Regards,
Jijo.
_____________________________________________________
http://weseetips.com[ ^] Visual C++ tips and tricks. Updated daily.
|
|
|
|
|
My vote goes for Filter.h/cpp too.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
|
|
|
|
|
so the topic is not related to C but to C++, right ?! ^^
my prefered choice : filter.* containing CFilter class definition/implementation...
|
|
|
|
|
Why do you call it CFilter ? I.e. (if the filter is your own class then) have you a special reason to emulate MFC 's class naming scheme?
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]
|
|
|
|
|
Well, the play on words with C or not.. had to do with the prefix of the class, not the language.
As to how I got into this mess? Dang if I know.
Charlie Gilley
Will program for food...
<italic>Hurtling toward a government of the stupid, by the stupid, for the stupid we go. —Michelle Malkin
|
|
|
|
|
Hi,
I am enhancing my VC6 Application to new MFC Feature pack, i am using CMFCToolBar to replace CToolBar but it is not working with CDialog, i am getting any exception or error but toolbar is not visible in Dialog.
Thanks in advance for any suggestion or help.
|
|
|
|