Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

ritz1234

@ritz1234
About
Posts
109
Topics
51
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HOOKING WINSOCK FUNCTIONS in C#?
    R ritz1234

    Hello friends, I've an application which requires the interception of the network communication functions like send() & recv() and to get the data of these functions. Can anybody please provide the link for the source code on how to achieve this in C#. Thanks in Advance.

    ritz1234

    C# csharp sysadmin tutorial question

  • How to get the Left,Top and Height,Width of perticular region within an running application?
    R ritz1234

    Hi rootjumper, Thanks for the response. The problem is that it is the SKYPE which shows the video while we do the video call.And I don't think it use any control for the video so how to get the handle of the region or the location of the video region? Thanks

    ritz1234

    C# question csharp tutorial

  • How to get the Left,Top and Height,Width of perticular region within an running application?
    R ritz1234

    Hello Dear Friends, I've an application which shows the video from the webcam. I want to create a C# application which can capture the part of the first application that shows the video in it. Can anybody suggest the way to do this. One way to do this is as described below 1) From the first running application that shows the video in it we can get handle of the window and from that window handle we can get the left,top, right,bottom of the area of the application that shows the video. I've HWND of the first running application but how do I get the left,top,height,width of the area which shows the video. Is there any other way to achieve this or suggestion for this. Thanks in Advance,

    ritz1234

    C# question csharp tutorial

  • How to get the child window position embeded in another window?
    R ritz1234

    Hello friends, How do we get the position(top,left,height,width) of the child window control embedded in another window. The problem that I need to solve can be described below. 1)In skype when we have the video call we can see the video of the calling party in the window embedded in the main messenger window 2)I want to capture the video of the embedded video window of the main messenger window 3)From the process Skype.exe we can get the handle of the Skype main window and from that handle of the main window I want to find out the top,left and height,width of the embedded video window of the main messenger window. How I can achieve this? Any suggestions or alternate ways to do this? Thanks in Advance

    ritz1234

    C# hardware help tutorial question

  • Gadjet integration with IE toolbar?
    R ritz1234

    Hello Friends, I am creating a IE toolbar. I want to develop feature like "Google Toolbar" which allow us to add google's Gadgets in the toolbar. How does a toolbar notified by the webpage that user has selected(by clicking on the "Add" button on webpage) a perticular gadget? Please suggest the way in which this can be achieved.

    ritz1234

    C / C++ / MFC question

  • Assign Hotkey to Explorerbar?
    R ritz1234

    Hi Friends, I've created a FindBar using the deskband. I want to assign hotkey to Findbar, so that when user press 'Ctrl+f' key the findbar popsup in IE. How can I do that? Please help me.

    ritz1234

    C / C++ / MFC question help

  • IE Toolbar development?
    R ritz1234

    Hi Mahesh, Thanks for the reply I've already taken help from this link and I've also developed the IE toolbar. But the thing is I want to develop the Findbar which resides at the bottom of the IE like google Findbar.I want to know how can I do that? :rose:

    ritz1234

    C / C++ / MFC tutorial question

  • IE Toolbar development?
    R ritz1234

    Hello Dear Friends, How to develop the toolbar that resides on IE status bar. For example if I've Google Toolbar installed in pc pressing Ctrl + F open up the search toolbar just above the IE status bar. How can I achieve this.Any refrence materials or code would be appreciated.

    ritz1234

    C / C++ / MFC tutorial question

  • How to play LiveTV in MFC application?
    R ritz1234

    Can't you people simplify the problem? What my idea is to use the activeX component if possible for this purpose, however I accept that I can be completely wrong. But I also want you people to give better idea. Cheers.

    ritz1234

    C / C++ / MFC com tutorial c++ question announcement

  • How to play LiveTV in MFC application?
    R ritz1234

    Hello Dear Friends, I am working on application which should play TV in a dialogbox. For example http://www.livewtv.com/news/skynews.htm[^] contains a live TV. I want to use some control(ActiveX) and want to assign this url to that control which should play this link. Please correct me if I am wrong or any other alternatives or example code will be appreciated.

    ritz1234

    C / C++ / MFC com tutorial c++ question announcement

  • XMLHttpRequestPtr creation failed in thread?
    R ritz1234

    Hello Dear Friends, 1) I am creating an application which allows its user to log in to website. 2) For that I call the webservice(Written in C#.NET) from the MFC. 3) To call the webservices I use the XMLHttpRequest and it is working fine if I call the webservice using XMLHttpRequest with the member function of the class, However this method doesn't allow the parent program to continue until I get the webservice response. 4) So I am creating a thread and calling the webservice from the thread the problem is in the thread it won't allow to create the COM object of XMLHttpRequestPtr.Can anybody tell me what could be the reason that the creation of the COM object fails. 5) Please see the code below.

    void LOGINTOWEB(void *Params)
    {
    CMFToolbar *m_pToolbar=(CMFToolbar*)Params;
    try
    {
    CSingleLock m_lock(&(m_pToolbar->m_sema));
    m_lock.Lock();
    m_pToolbar->LoginToWeb1(m_pToolbar->m_strqpWebUser,m_pToolbar->m_strqpWebPass,m_pToolbar->m_strqpWebOrg,m_pToolbar->m_strqpWebUrl);
    m_lock.Unlock();
    _endthread();
    }
    catch(...)
    {
    }
    }

    And here is the member function of the class I've debug the code it fails in the creation of the COM object IXMLHttpRequestPrt

    bool CMFToolbar::LoginToWeb1(CString UserName,CString Password,CString Organization,CString Url)
    {
    bool bFlg=false;
    try
    {
    CString params;
    /* Here the exception is generated when called from the thread. When this function called without any thread it will run.Why it fails in thread?????*/
    MSXML::IXMLHttpRequestPtr httpReq(__uuidof(XMLHTTPRequest));

    	\_bstr\_t  HTTPMethod ;
    	\_variant\_t noAsync = \_variant\_t( (bool)false );
    	\_variant\_t user=\_variant\_t((CString)UserName);
    	\_variant\_t pass=\_variant\_t((CString)Password);
    
    	CString strUrl=Url;
    	strUrl+=QPWEB\_SUFFIX;
    	
    	//MessageBox(strUrl);
    	\_bstr\_t url(strUrl.GetBuffer(strUrl.GetLength())); 
    
    	HTTPMethod = \_bstr\_t("GET");
    	httpReq->open(HTTPMethod,url,noAsync,vtMissing,vtMissing);
    	httpReq->setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
    	httpReq->setRequestHeader("Content-Length","0");
    	
    	params.Empty(); 
    	params="UserName=";
    	params+=UserName;
    	params+="&Password=";
    	params+=Password;
    	params+="&Organization=";
    	params+=Organization;
    
    	//MessageBox(params);
    
    	VARIANT vRequest;
    	vRequest.vt = VT\_BSTR;
    	vRequest.bstrVal = params.AllocSysString();
    
    	httpReq->send(vRequest);
    	BSTR strText;
    	int nPos1,nPos2;
    	CSt
    
    C / C++ / MFC csharp c++ com debugging help

  • How to change background color fot an IE toolbar?
    R ritz1234

    Hello friends, I am developing an IE toolbar as per the Erik thompson deskband tutorial http://www.codeproject.com/KB/shell/ietoolbartutorial.aspx[^]. I want to change the background color of the IE toolbar how to achieve that???? :doh:

    ritz1234

    ATL / WTL / STL tutorial com linux question

  • IXMLHttpRequest sending request?
    R ritz1234

    Hello friends, I've an IE Toolbar with VC 6.0. I am calling a webservice from the application which result in HTTP 400 i.e "Bad Request".However calling webservice works for the first time successfully but after that whenever I call the webservice it results in "Bad Request".If I close the browser and reopen it will work again for one time only, Can anybody tell me what could be the problem?

    vRequest.vt = VT_BSTR;
    vRequest.bstrVal = szRequest.AllocSysString();

    	MSXML::IXMLHttpRequestPtr httpReq( \_uuidof(XMLHTTPRequest));
    
    	HTTPMethod = \_bstr\_t("POST");
    	//httpReq->open(HTTPMethod ,"http://localhost/common/webservicedownload.asmx",noAsync,vtMissing,vtMissing);
    	httpReq->open(HTTPMethod ,SERVER\_URL,noAsync,vtMissing,vtMissing);
    	httpReq->setRequestHeader("Content-Type","application/soap+xml");
    	
    	
    	HRESULT hr=httpReq->send(vRequest);
    	if (httpReq->readyState == 4 )
    	{
    		if(httpReq->status==200)
    		{
    			bsResponse = httpReq->responseText;
    		}
    		else
    		{
    			\_bstr\_t strline=httpReq->statusText;
    			CString strstatus;
    			strstatus=strline.copy();
    			MessageBox(strstatus);
    		}
    	}
    	response.Empty();
    	response=bsResponse.copy();
    

    I parse the response for getting the "true" or "false" value. I get the correct response for the first time but after that the response is empty and statusText result in "Bad Request".

    ritz1234

    C / C++ / MFC xml wcf sysadmin help question

  • calling webservices?
    R ritz1234

    Hello friends, I've a IE toolbar in which I call the webservices written in C#. There is one webservice for uploading a file. Everything works fine in XP but in Vista after uploading 1 file successfully I am not able to upload any other files and the responseText for all the remaining file is empty?Can anybody help me out.

    MSXML::IXMLHttpRequestPtr httpReq( _uuidof(XMLHTTPRequest));

    	\_bstr\_t  HTTPMethod;
    	\_variant\_t noAsync = \_variant\_t((bool)false);
    
    	HTTPMethod = \_bstr\_t("POST");
    	httpReq->open(HTTPMethod ,"https://localhost/common/qptwebservicedownload.asmx",noAsync,vtMissing,vtMissing);
    	httpReq->setRequestHeader("Content-Type","application/soap+xml");
    		
    	data = NULL;
    	strBase64.Empty(); 
    
    	CString defaultJpgAlertCasheFilename=ob.FilePath;
    	unsigned \_\_int64 AttachmentSize=SubGetFileSize(defaultJpgAlertCasheFilename);			
    	
    	CFile sourceFile;
    	sourceFile.Open(defaultJpgAlertCasheFilename,CFile::modeRead);
    	
    	data = new BYTE \[AttachmentSize\];
    	sourceFile.Read(data, AttachmentSize);
    	sourceFile.Close();
    			
    	CBase64 ob1;
    	ob1.Encode(data,AttachmentSize);
    	ob1.m\_pEBuffer; 
    		
    	strBase64=CString(ob1.m\_pEBuffer);
    	Part1="<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?> \\
    	<soap12:Envelope xmlns:xsi=\\"http://www.w3.org/2001/XMLSchema-instance\\" xmlns:xsd=\\"http://www.w3.org/2001/XMLSchema\\" xmlns:soap12=\\"http://www.w3.org/2003/05/soap-envelope\\"> \\
    	<soap12:Body>\\
    	<UploadFile xmlns=\\"http://rigelnetworks.net/\\">";
    
    	Part2="<ByteArr>";
    	Part2+=strBase64;
    	Part2+="</ByteArr>";
    
    	Part2+="<FormletDocletID>";
    	Part2+=ob.FormletId;
    	Part2+="</FormletDocletID>";
    
    	Part2+="<IsFormlet>";
    	Part2+=ob.BitField;
    	Part2+="</IsFormlet>";
    	
    	Part3="</UploadFile>\\
    	</soap12:Body>\\
    	</soap12:Envelope>";
    
    	szRequest=Part1;
    	szRequest+=Part2;
    	szRequest+=Part3;
    	
    	vRequest.vt = VT\_BSTR;
    	vRequest.bstrVal = szRequest.AllocSysString();
    
    	HRESULT hr=httpReq->send(vRequest);
    
    	\_bstr\_t bsResponse = httpReq->responseText;
    
    	CString response;
    	response=bsResponse.copy();
    
    	nPos1=response.Find("<UploadFileResult>");
    	nPos2=response.Find("</UploadFileResult>"); 
    	nPos1+=18;
    	szResult=response.Mid(nPos1,(nPos2-nPos1)); 
    	
    	if(szResult.GetLength()>0)
    	{
    		szResult.MakeLower();
    		if(szResult=="true")
    			bFlg=true;
    	}
    

    In Vista the _bstr_t bsResponse = httpReq->responseText; contains vali

    Windows API csharp xml wcf help question

  • How to findout which OS is installed?
    R ritz1234

    Hello friends, How can the program findout which OS is installed? I want to get the name of the OS which runs in current PC. Any API or sample code would be appreciated. Thanks in Advance.

    ritz1234

    C / C++ / MFC json tutorial question

  • calling webservice problem?
    R ritz1234

    Hello friends, I've an application that calls the webservice to upload file on server. I've used MSSOAP toolkit 3.0, everything works fine for Windows XP. The same code fails under Vista the code is as below.

    ISoapConnectorPtr Connector;
    hr = Connector.CreateInstance(__uuidof(HttpConnector));
    if(hr != S_OK)
    {
    strErrMessage="Can't create Http Connector.
    }
    Connector->Property["EndPointURL"] = QPTLOGIN_URL;
    hr = Connector->Connect();

    In the code above hr = Connector.CreateInstance(__uuidof(HttpConnector)); fails on Vista and working fine in XP. Can anybody please help me to solve this problem for Vista or any suggestions for calling webwservice in Vista OS. Thanx in Advance.

    ritz1234

    C / C++ / MFC help sysadmin question

  • How to change Regional Settings(API)?
    R ritz1234

    Hello dear friends, Is there any API for changing the "Language support for non-Unicode language"? This is required because I've to add Russian language support in my application.I've created a string table in which I copy/paste the russian strings from excel.The problem is all characters become ???. When I go to Control Panel->Regional and Language options->Advance tab and changing the language to Russian solves the problem and all the strings of russian displayed without any problem but this changes require to reboot the PC.I want to set this options from the API's so is there any API for this thing or any other way to do this? Thanks in advance.

    ritz1234

    C / C++ / MFC json help tutorial question

  • String table with Russian strings?
    R ritz1234

    Hello dear friends, I am creating multi-lingual IE toolbar in VC 6.0? I've done with french,Italian,Dutch,German etc. When I add any Russian string as label they are converted in string with sequence of '?' characters.I think its a Unicode related problem bu I am not clear with the way of solving the problem.Will you guys help me out?:rose::rose::rose: Thanks in Advance to all of you.

    ritz1234

    C / C++ / MFC help question

  • About C++ on different OS?
    R ritz1234

    Hello dear friends, Sorry,if asking this question on this forum looks stupid. Can we write program that runs on MAC OS using c++? Please advise. Any refrence material link or suggestion is appreciated. Thanks in Advance. :rose: :rose: :rose:

    ritz1234

    C / C++ / MFC question c++

  • Controlling Sound?
    R ritz1234

    As in the windows xp media player we can play/pause the song this what I want should be handled from the application.

    ritz1234

    C / C++ / MFC question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups