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
C

chepuri_uk

@chepuri_uk
About
Posts
22
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Calling C++ DLL ( not MFC) from another C++ DLL ( not MFC)
    C chepuri_uk

    Hi, I have a C++ DLL ( not MFC )which has a static method say class Test { static GetData(); Static GetParams(); bool TestDatat(); }; I am exporting this class and using in another DLL. I built Test.dll,Test.lib. Now i included in another DLL(say Samp.DLL): Test.dll,Test.lib abd Test.h in Samp.h file i inclued "Test.h" and linkedTest.lib and Placed Test.dll in Release/Debug folder. I am calling Test::GetData() in Samp.DLL. But after compiling Samp.DLL giving error like: "error LNK 2001: unresolved external symbol. _declspec(dllimport) public:static bool _stdcall Test::GetDatta(char const *,bool)(_imp_?GetData@Test@SG_NPBD_N@Z)". while building if i change project setttings "_cdecl*" in calling conventions, DLL is building fine,but failing to call a value from Samp.DLL by passing value to Test.DLL. If i what to build my Samp.DLL by "_stdcall" convention how can i build this ? Any help on this.. Thank you.

    C / C++ / MFC c++ help question debugging announcement

  • About MFC Context-Sensitive Help
    C chepuri_uk

    Hello, I have a already built application using MFC. This application uses Context-Sensitive help ( While building they choosen a Context-Sensitive help option for Dialogbased application). The hlp folder of this application contains "afxdlg" rich text document ( this comes by default ). I want to modify this file to add my own document. But when i modified and recompiled using Help Work Shop the following error is coming : C5011: Error: D:\MFC_help\HelpTest\hlp\afxdlg.rtf : Cannot open the file "{\rtf1\ansi\ansicpg1252\uc1 \deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman." How can i avoid this and compile with out any error ? Thank you.

    C / C++ / MFC help question c++

  • .OutLook & Mapi problem
    C chepuri_uk

    The following sample is MAPI from MSDN. While runnin this is giving error: Any help on this : #include "mapix.h" #include "mapiutil.h" #include HRESULT GetMAPIStatus(LPMAPISTATUS *pStatus, LPMAPISESSION pSession); int main(int argc, char* argv[]) { LPMAPISESSION pSession = NULL; //MAPI Session Pointer LPMAPISTATUS pStat=NULL; //MAPI Status Pointer LPMAPISUP pSupport=NULL; HRESULT hRes = S_OK; //Initialize MAPI. hRes = MAPIInitialize(NULL); //Log on to MAPI and get a session pointer. hRes = MAPILogonEx(0, NULL, NULL, MAPI_LOGON_UI | MAPI_NEW_SESSION, &pSession); if (hRes == S_OK && pSession) //if logon OK get a status pointer. { //Call function to get the status pointer. hRes = GetMAPIStatus(&pStat, pSession); if(hRes == S_OK && pStat) //if we successfully got a status pointer call FlushQueues on it. { //Flush inbound and outbound messages. hRes = pStat->FlushQueues(NULL, 0, NULL, FLUSH_UPLOAD | FLUSH_DOWNLOAD); if(hRes == S_OK) MessageBox(NULL, "FlushQueues OK!", "FlushQueues", MB_OK); else MessageBox(NULL, "FlushQueues Failed!", "FlushQueues", MB_OK); } else MessageBox(NULL, "GetMAPIStatus Failed!", "FlushQueues", MB_OK); pSession->Logoff(NULL, 0L, 0); } else { MessageBox(NULL, "MAPI Logon Failed!", "FlushQueues", MB_OK); } //Clean up pointers. UlRelease(pStat); UlRelease(pSession); MAPIUninitialize(); // MessageBox(NULL, "End of MAPI ", "FlushQueues", MB_OK); return 0; } ///////////////////////////////////////////////////////////////// // Gets the spooler's status object from the session status table. ///////////////////////////////////////////////////////////////// HRESULT GetMAPIStatus(LPMAPISTATUS *pStat, LPMAPISESSION pSession) { LPMAPITABLE pTbl = NULL; LPSRowSet pRow = NULL; HRESULT hRes; SRestriction sres; SPropValue spv; ULONG ulObjType; LPMESSAGE lpMsg = NULL; const static SizedSPropTagArray(2,sptCols) = {2,PR_RESOURCE_TYPE,PR_ENTRYID}; if (FAILED(hRes = pSession -> GetStatusTable(0,&pTbl))) { MessageBox(NULL, "GetStatusTable Failed!", "GetStatusTable", MB_OK); goto Quit; } sres.rt = RES_PROPERTY; sres.res.resProperty.relop = RELOP_EQ; sres.res.resProperty.ulPropTag = PR_RESOURCE_TYPE; //sres.res.resProperty.ulPropTag = PR_STATUS; sres.res.resProperty.lpProp = &spv; spv.ulPropT

    C / C++ / MFC help

  • MAPI problem
    C chepuri_uk

    The following code is from MSDN MAPI sample: after compiling and running it's giving error: Any help on this... #include "stdafx.h" #include "mapix.h" #include "mapiutil.h" HRESULT GetMAPIStatus(LPMAPISTATUS *pStatus, LPMAPISESSION pSession); int main(int argc, char* argv[]) { LPMAPISESSION pSession = NULL; //MAPI Session Pointer LPMAPISTATUS pStat=NULL; //MAPI Status Pointer HRESULT hRes = S_OK; //Initialize MAPI. hRes = MAPIInitialize(NULL); //Log on to MAPI and get a session pointer. hRes = MAPILogonEx(0, NULL, NULL, MAPI_LOGON_UI | MAPI_NEW_SESSION, &pSession); //hRes = MAPILogonEx(0, "umakanthch", "chepuri_uk", MAPI_LOGON_UI | MAPI_NEW_SESSION, &pSession); if (hRes == S_OK && pSession) //if logon OK get a status pointer. { //Call function to get the status pointer. hRes = GetMAPIStatus(&pStat, pSession); if(hRes == S_OK && pStat) //if we successfully got a status pointer call FlushQueues on it. { //Flush inbound and outbound messages. hRes = pStat->FlushQueues(NULL, 0, NULL, FLUSH_UPLOAD | FLUSH_DOWNLOAD); if(hRes == S_OK) MessageBox(NULL, "FlushQueues OK!", "FlushQueues", MB_OK); else MessageBox(NULL, "FlushQueues Failed!", "FlushQueues", MB_OK); } else MessageBox(NULL, "GetMAPIStatus Failed!", "FlushQueues", MB_OK); pSession->Logoff(NULL, 0L, 0); } else { MessageBox(NULL, "MAPI Logon Failed!", "FlushQueues", MB_OK); } //Clean up pointers. UlRelease(pStat); UlRelease(pSession); MAPIUninitialize(); // MessageBox(NULL, "End of MAPI ", "FlushQueues", MB_OK); return 0; } ///////////////////////////////////////////////////////////////// // Gets the spooler's status object from the session status table. ///////////////////////////////////////////////////////////////// HRESULT GetMAPIStatus(LPMAPISTATUS *pStat, LPMAPISESSION pSession) { LPMAPITABLE pTbl = NULL; LPSRowSet pRow = NULL; HRESULT hRes; SRestriction sres; SPropValue spv; ULONG ulObjType; int cbEID; LPENTRYID pbEID; const static SizedSPropTagArray(2,sptCols) = {2,PR_RESOURCE_TYPE,PR_ENTRYID}; if (FAILED(hRes = pSession -> GetStatusTable(0,&pTbl))) { MessageBox(NULL, "GetStatusTable Failed!", "GetStatusTable", MB_OK); goto Quit; } sres.rt = RES_PROPERTY; sres.res.resProperty.relop = RELOP_EQ; sres.res.resProperty.ulPropTag = PR_RESOURCE_TYPE; sres.res.resProperty.lpProp = &spv;

    C / C++ / MFC help

  • URGENT:How to write XML header in C++
    C chepuri_uk

    Is this helpfule ? HRESULT hr=pIXMLDOMDocument->createProcessingInstruction(_T("xml"), _T("version='1.0'"),&pIXMLDOMProcessingInstruction);

    C / C++ / MFC c++ xml tutorial question

  • How to get the path name of COM DLL
    C chepuri_uk

    place the DLL in Winnt/system32 and use this path

    ATL / WTL / STL com tutorial

  • How to embedded with IE?
    C chepuri_uk

    Either you can Embedd Web Browser component and load respective html page or use following in a DialogBox for invoking Html page: HWND h = FindWindowEx(NULL,NULL,NULL,"Microsoft Internet Explorer"); ShellExecute(h,"open","http:\\\\www.funducode.com",NULL,NULL,SW_SHOWNORMAL);

    C / C++ / MFC html hardware tutorial question

  • Filesize?
    C chepuri_uk

    GetFileSize()

    C / C++ / MFC question c++

  • Button without focus?
    C chepuri_uk

    For example: CButton* bt = (CButton*)GetDlgItem(IDC_BUTTON1); void XDlg::OnButton1() { bt->EnableWindow(FALSE);//For Focusless } void XDlg::OnRbuttonDown() { bt->EnableWindow(TRUE);//For back to Focus; } Is this helpful to you.

    C / C++ / MFC help question

  • how to attach the htmlhelp to an exisiting application
    C chepuri_uk

    Hello, Please check following for adding Help to the application, may be helpful to you: http://www.codeguru.com/controls/index.shtml

    C / C++ / MFC question html help tutorial

  • Edit At Design-time
    C chepuri_uk

    In the Development of ActiveX control using VB we have a property called "EditAtDesignTime", is there any similar property like this in VC++ ActiveX control ?

    C / C++ / MFC c++ com design question

  • Graphics
    C chepuri_uk

    I was drawn ploygon using Mouse on a DialogBox(not by Graphics commands of polygon), now i want to save this drawing to a file and restore it to back, how can i do this ? Thank you -Umakanth

    C / C++ / MFC graphics question

  • Checking a Language !
    C chepuri_uk

    Hi, Check this in MSDN, may be helpfult to you: The GetUserDefaultUILanguage function retrieves the language identifier (LANGID) for the current user language. LANGID GetUserDefaultUILanguage(void);

    C / C++ / MFC game-dev question html database com

  • make a screensaver with C++
    C chepuri_uk

    Hi, Check this link: http://www.funducode.com/freevc.asp

    C / C++ / MFC c++ tutorial question

  • How to send data from one application to another
    C chepuri_uk

    try with ShellExecute function. In ADO i'm not sure.

    C / C++ / MFC database tutorial question

  • ActiveX control
    C chepuri_uk

    Drawing on the ActiveX Control in design-mode, is this possible ? i.e After placing the ActiveX control on a DialogBox, i want to draw on the Control. Thank you

    C / C++ / MFC com graphics design question

  • Drawing on ActiveX Control in Design-mode
    C chepuri_uk

    I want to draw on the ActiveX control in Design Mode i.e I placed a ActiveX control on the DialogBox, now i want to draw something on the control . How can i do this ? Any help... Thank you.

    C / C++ / MFC question com graphics design help

  • How to Draw on a ActiveX Control ?
    C chepuri_uk

    I want to draw on the ActiveX Control in Design Mode i.e I placed a ActiveX control on the DialogBox, now i want to draw something on the control . How can i do this ? Any help... Thank you.

    C / C++ / MFC question com design help tutorial

  • ActiveX Control
    C chepuri_uk

    I designed a small activex control with a Property page. The property page has a button control. Suppose if a place this control on a Dialog Box by right clicking on the Control and selecting properties..., it displays the property page with button control. when i click a button the focus will change to ActiveX control window , where i can draw using mouse . Any help ... Thank you.

    C / C++ / MFC com help

  • XML & VC++
    C chepuri_uk

    How can i create a *.xml using msxml.dll in vc++ ? Any help links.. Thank you.

    XML / XSL question c++ xml help
  • Login

  • Don't have an account? Register

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