Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Browsing all 3021 articles
Browse latest View live

CArchive load gives null lines

Hello all, I am trying to reuse some code from my Visual C++ 2005. I am using CArchive to ReadString the first line of a file into another string. However, I am seeing squares where there should be...

View Article


DLL Injection Question( Not for a malicious purpose)

First post on these forums, I have written plenty of code for *nix systems using c. Unfortunately I never got into windows programming which leads me to my question. I'm attempting to write a dll...

View Article


Has MSDN changed for everyone else or is it just me??

Up until a few days ago, MSDN used to offer two search tools. One was called Blekko and the other was a tool that only searched within MSDN. I could type in std::list or whatever and it would show me...

View Article

XL(Ez)Automation and Excel 2013

I have a C++ app that communicates with Excel using XL(Ez)Automation sample code as a starting point. My app has worked with Excel 2003 through 2010. Excel 2013 has broken it. I get three popup dialogs...

View Article

Not able to connect with Oracle 11 from VC++ in VS 2008 using Oracle ODBC...

I was using Windows XP 32 bit o/s and I had a 32 bit application that was connecting with Oracle 11g database using Oracle ODBC driver. Recently my company upgraded my machine to Window7, 64 bit SP1...

View Article


Updating the image on a botton

Hi I have created an application that has bunch of buttons on top and i want to change the image when I click on the button. But unfortunately I can't get it to work. Here is the code: if...

View Article

Error C2065: 'variable' : undeclared identifier on line of decleration of...

Hello there, I am making a form application with a serial interface. I am getting the "Error C2065: '_serialPort' : undeclared identifier on line of decleration of _serialPort. How can the software...

View Article

Cách tăng cân cho vóc dáng "cò hương".

Sao ngoại thích trang điểm mắt mèo (01/08/2013)Như Thảo chăm sóc lưng ong nuột nà (01/08/2013)Cách tăng cân cho vóc dáng "cò hương". (01/08/2013)Nhảy Zumba giúp giảm cân nhanh. (31/07/2013)Hàm răng ố...

View Article


C++ Math

I made a program that asks 18 questions in a do-while loop and then outputs either "correct" or "wrong" for each question. Is it possible to add a formula that will grade the questions that are...

View Article


Windows 7 Windows Explorer doesn't get refreshed

Hi All, I have created an application to burn my data files into DVD. The problem which I am facing is as follows: Suppose I have a folder "Doc_Files" present inside "D:\Data\" location for burning...

View Article

How to color back-ground of excel cell

Hi , I am saving my data in Excel File Format. I am using CDataBase class and its methods like OpenEx ,ExecuteSQL etc. The program is working fine. Now I need to change back-ground color of some data...

View Article

How to surround a memory allocation area by a try-catch block?

I am using new operator, I don't recall what the allocator's name is. But what is the corresponding Exception (or derived classes) any try-catch block can cope with? Thanks Jack

View Article

Selecting Subitem in a list view control?

How would I go about selecting a subitem in a listview control with just pure Win32 API? I know it's possible with MFC... but I can't use MFC for this project. Right now, when you click on a subitem ,...

View Article


How to add images to toolbar buttons for activex control mscomctl.ocx

//#import "c:\windows\SysWow64\mscomctl.ocx" raw_interfaces_only //in window7 using namespace MSComctlLib; CComPtr<IButtons> pButtons; CComPtr<IButton> pButton; CComPtr<IImages>...

View Article

Upward casting (vector of boost::shared_ptr)

Code: // In my header file class Source {         // Whatever }; class FileSource : public Source {         // Whatever }; void SomeFunc(vector<boost::shared_ptr<FileSource>>& array);...

View Article


as HTML is to tag, C++ is to? (what do you call things like cout and cin, etc.)

in my IDE (codeblocks) if I type something in (such as num) it gives me a list of things that start with num (numpunct, numeric value or whatever) and other things that I don't know. What do you call...

View Article

ActiveX web browser control is not deleting session cookies even after it's...

HI , I have an C++ application which uses Microsoft Web browser ActiveX control to launch any URL within the application. The browser is embedded in C++ form and It's working fine with all the feature...

View Article


What directories can an application run by non-elevated user write to Win7?

I have a problem with my application reading and writing to any other than the User directory (C:\\Users\\MyName\\AppData\\MyCompany\\MyAppName - in Win7). What other directories are open to the...

View Article

Moving mouse position

I am writing a program to map keyboard and mouse to an xbox 360 controller with win32 and xinput. I have everything going fine but when im trying to control the mouse with the thumbsticks I get...

View Article

create webbrowser with ATL

Hi, I'm trying to create a simple webbrowser at my app. code sample: .... ATL::CAxWindow m_wndContainer; ATL::CComPtr<IWebBrowser2> m_spWebBrowser; HWND hWnd = m_wndContainer.Create(NULL,...

View Article
Browsing all 3021 articles
Browse latest View live