Hello I create a MFC aplication, and in my cpp file, i define a variable C++ string str; I know that, i can use CString, but i want to know why it appears "error link" when i compile project, it appears error (error link) like that "Linking... msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::~basic_string,class std::allocator >(void)" (??1?$basic_strin g@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@XZ) already defined in ocl.lib(ora.obj) msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string,class std::allocator >::basic_string,class std::allocator >(class basic_string,class std::allocator >::allocator const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAE@ABV?$allocator@D@1@@Z) already defined in ocl.lib(ora.obj) LINK : warning LNK4098: defaultlib "LIBCMTD" conflicts with use of other libs; use /NODEFAULTLIB:library Bin/BMSOracleView.exe : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. "
TrungHuynh
Posts
-
Error Link in VC++ -
VC and Crystal ReportI get an error "the library PDBDAO.DLL could not be found" when i show or print report.
-
VC and Crystal ReportThanks you vey much, but i live in VietNam, so the proxy not allow me to go out ( especially geocities.com) could you send to me that code thank a ton
-
VC and Crystal Reportcould you , show me where to download sameple code thank a ton
-
VC and Crystal ReportI have write an application, use VC++ connect to Oracle database, and use Crystal Report to view data and print Any one can help me, how to connect to Oracle and use Crystal report. thanks.
-
count Visitor without global.asaI have tried to write a asp page that count visitors on your web site at a point of time. Now i use global.asa (Session_OnEnd, Application_OnStart) but i don't want to use the global.asa, How can i do ? thanks.
-
Retreive TRUE IPI have devepled a webstatus module,(user on line, traffic...) I have a problem with this code segment: written in "javascript" (ASP file) ////////////////////////////////////////////////////////// var szIP szIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR"); if(szIP == "") szIP = Request.ServerVariables("REMOTE_ADDR"); ///////////////////////////////////////////////////////// szIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR"); it returns nothing ????? please help me.
-
ASP & JavaScriptI have an error: Microsoft JScript runtime error '800a01b6' Object doesn't support this property or method /aspforum/onetimesetup.asp, line 4 -------- <%@ Language=JavaScript %> <% // create the database Server.Execute("createdatabase.asp"); //<--- line 4 // createdatabase.asp is same directory with current asp file. OS:win98, install PWS
-
download itemsI have designed a web site. In page download, user can download items by click on hyperlink (download example). I implemented this by add hyperlink, but user click on, it always open the download file on browser. I want it show the save dialog. How can i do this. Thanks.
-
Not allow to save a web pageok, it's another aspect of problem, i only care about how to figure it out. Thank a ton.
-
Not allow to save a web pagehello I have designed a web site, and i had uploaded to server. I want the people who view my web site can't save it to local machine like www.msn.com (you can't save it to local host). (choose file,save or save as from menu of IE). Please help me. Thanks.
-
CComboBoxHello every body I'm writting a GUI TOol Kit for MFC control, for every controls of MFC CButton,... I replace with CBMSButton... and i use the DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct) function to draw. IT work fine with button,Titlebar, CheckBox, Radio But with CComboBoxEx i replace with CBMSComboBox and i call DrawItem but this function isn't called. I don't know why ? Please help me. Thank so much
-
Hide IPyes, the first i must write a program that can use the proxy ( it was exited). I think it's ok, because on this sites have alot source code of this problem. The big thing is that how can we change the private IP to another ip (how can we take this IP). I have an idea, if any one interested in this topic, can we do together.:) thanks.
-
Hide IPyou are right, but in some special situations,you must hide your IP address(mean thats: your IP alway exit but it becomes an IP in another country). For example, the www.hostdime.com website doesn't accept the connection from VietNam, or Chinna... So if your are in these country, you must change your proxy and your IP is something else (not in your country) to access these websites. I know some applications can do that: GhostSurf, AnonymousProxy... It can change your ip by change the proxy become another country. I want to konw, how can do that Thanks very much
-
Hide IPHello every body how can i hide my ip address on network. Have any software to do that, or some technology. thanks
-
rich edit questionok. I have a small app, that i have tested with DHTML control, and RichEdit. you give me your email address i will send it for you bye
-
how to insert a BMP resourse in resourcesOK, You right click on Resource, and then chose insert, chose Bitmap. IT's ok, if the bitmap is creater than 256 colors, it will not view on Editor, but when you run your app, and load your bitmap, you will see normally.
-
rich edit questionFirst you must init AfxInitRichEdit() in .h file you declare CString m_strRichEdit; with cpp file in DoDataExchange(CDataExchange* pDX) function DDX_Text(pDX, IDC_RECONTROL, m_strRichEdit); then you just do like that: m_strRichEdit = _T("Try"); UpdateData(FALSE); these steps you can do by wizard. CRichEditCtrl also has another function StreamIn: to load data from file to rich edit(MSDN)
-
Toolbar Editorit's ok you need left click on button that you want to remove and drag it away from IDE, the button tool bar will disappear.
-
Substitute Tite bar for windowHello I created a substitue title bar to replace the original title bar (gradient fill...) of Dialog or CMDIFrameWnd or CMDIChildWnd.First i remove the original titlebar of windows. Then i created a substitue window with style : WS_VISIBLE | WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN and i put this window as the same place as original title bar: RECT rcWnd; ::GetWindowRect(m_pParentWnd->m_hWnd, &rcWnd); // The m_pParentWnd is the CWnd of Dialog or // frame that i pass to this class. TITLEBARINFO tbi; tbi.cbSize = sizeof(TITLEBARINFO); ::GetTitleBarInfo(m_pParentWnd->m_hWnd, &tbi); RECT rcTitlebar = tbi.rcTitleBar; //Calculate the rect we need to create substitute // window for titlebar RECT rcSubstitute = {rcWnd.left, rcWnd.top, rcWnd.right, rcTitlebar.bottom}; //pszTitle is text on title bar //The CBMSTITLEBARDIALOG_CLASSNAME is already register before create window DWORD dwStyle = WS_VISIBLE | WS_POPUP | WS_CLIPSIBLINGS | WS_CLIPCHILDREN; BOOL bResult = CreateEx(WS_EX_TOOLWINDOW, CBMSTITLEBARDIALOG_CLASSNAME, pszWindowName, dwStyle, rcSubstitute.left, rcSubstitute.top, rcSubstitute.right - rcSubstitute.left, rcSubstitute.bottom - rcSubstitute.top, m_pParentWnd->m_hWnd, NULL, NULL ); If the parent window is CMDIFrameWnd or CMDIChildWnd, it's ok the substistute title bar is put the same place with the original titlebar and have these effects that i want. But with dialog the substistue title bar was wrong. (Not the same place with original title bar). ??? I think because the Dialog has WS_POPUP style, and the Substitue title bar that i create has the same WS_POPUP style. So it's wrong, is it right ? or some another reason. Please help me. Thanks