Click here to Skip to main content
15,914,384 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
T210222-Aug-10 1:27
T210222-Aug-10 1:27 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
Paul Michalik22-Aug-10 21:46
Paul Michalik22-Aug-10 21:46 
GeneralRe: problem with BOOST threads with mixed mode C++/CLI and Visual Studio 2010 Pin
T210223-Aug-10 3:38
T210223-Aug-10 3:38 
QuestionUnraveling the Mysteries of Writing a Winsock 2 Layered Service Provider Pin
Pascal Ganaye21-Jun-10 12:16
Pascal Ganaye21-Jun-10 12:16 
AnswerRe: Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider Pin
Pascal Ganaye22-Jun-10 14:26
Pascal Ganaye22-Jun-10 14:26 
GeneralRe: Unraveling the Mysteries of Writing a Winsock 2 Layered Service Provider Pin
Richard Andrew x6422-Jun-10 14:32
professionalRichard Andrew x6422-Jun-10 14:32 
QuestionAssembly info not showing up in explorer in managed DLL Pin
alleyes16-Jun-10 9:01
professionalalleyes16-Jun-10 9:01 
AnswerRe: Assembly info not showing up in explorer in managed DLL Pin
Nish Nishant19-Jun-10 7:25
sitebuilderNish Nishant19-Jun-10 7:25 
GeneralRe: Assembly info not showing up in explorer in managed DLL Pin
alleyes20-Jun-10 5:53
professionalalleyes20-Jun-10 5:53 
GeneralRe: Assembly info not showing up in explorer in managed DLL Pin
Nish Nishant20-Jun-10 5:54
sitebuilderNish Nishant20-Jun-10 5:54 
QuestionHow can I compile some parts of C++/CLI code as Native and some part as Managed? Pin
glitteringsound7-Jun-10 21:53
glitteringsound7-Jun-10 21:53 
AnswerRe: How can I compile some parts of C++/CLI code as Native and some part as Managed? Pin
Nish Nishant12-Jun-10 6:42
sitebuilderNish Nishant12-Jun-10 6:42 
QuestionExchange Autodiscover Service Pin
Steve Thresher7-Jun-10 6:41
Steve Thresher7-Jun-10 6:41 
QuestionWhy (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))? [modified] Pin
glitteringsound7-Jun-10 6:30
glitteringsound7-Jun-10 6:30 
AnswerRe: Why (LoadTypeLibEx failed : : Error loading type library/DLL. (Exception from HRESULT: 0x80029C4A (TYPE_E_CANTLOADLIBRARY))? Pin
Mircea Puiu25-Jun-10 0:58
Mircea Puiu25-Jun-10 0:58 
QuestionHow to Save Image from WebBrowser Control Pin
voo doo125-Jun-10 6:04
voo doo125-Jun-10 6:04 
Hi everybody. I'm tring to save image form webBrowser control. and i have the following code
mshtml::HTMLDocument^ document = dynamic_cast<mshtml::HTMLDocument^>(this->webBrowser1->Document->DomDocument); 

mshtml::IHTMLElementCollection^ collImages = document->getElementsByTagName(L"img");

for(int i = 0; i < collImages->length; ++i) 
{    
    mshtml::IHTMLImgElement^ img = safe_cast<mshtml::IHTMLImgElement^>(collImages->item(nullptr, i));

    mshtml::IHTMLElementRender^ render = dynamic_cast<mshtml::IHTMLElementRender^>(img);
    
    Bitmap^ bmp = gcnew Bitmap(img->width, img->height); 
   
    Graphics^ g = Graphics::FromImage(bmp);
    
    IntPtr hdc = g->GetHdc();    

    render->DrawToDC(hdc);  //Here is the Error 
  
    g->ReleaseHdc(hdc);
    
    delete g; 
    g = nullptr;
   
    bmp->Save(L"C:\\Test\\SaveImage.Jpg", System::Drawing::Imaging::ImageFormat::Jpeg);	
}


I get the following error message

Error C2664: 'mshtml::IHTMLElementRender::DrawToDC' : cannot convert parameter 1 from 'System::IntPtr' to 'mshtml::_RemotableHandle %'

is there any one who knows how to fix this?
AnswerRe: How to Save Image from WebBrowser Control Pin
Richard Andrew x647-Jun-10 1:52
professionalRichard Andrew x647-Jun-10 1:52 
Questionloop through comboboxes Pin
KlaasVersteeg4-Jun-10 0:06
KlaasVersteeg4-Jun-10 0:06 
AnswerRe: loop through comboboxes [modified] Pin
Richard Andrew x644-Jun-10 5:09
professionalRichard Andrew x644-Jun-10 5:09 
GeneralRe: loop through comboboxes Pin
voo doo125-Jun-10 6:12
voo doo125-Jun-10 6:12 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:17
KlaasVersteeg7-Jun-10 1:17 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:19
KlaasVersteeg7-Jun-10 1:19 
GeneralRe: loop through comboboxes Pin
KlaasVersteeg7-Jun-10 1:23
KlaasVersteeg7-Jun-10 1:23 
GeneralRe: loop through comboboxes Pin
Richard Andrew x647-Jun-10 1:40
professionalRichard Andrew x647-Jun-10 1:40 
QuestionMultiple forms problem C++ / CLI Pin
Piotrekneo1830-May-10 13:53
Piotrekneo1830-May-10 13:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.